Compare commits

..

2 commits

Author SHA1 Message Date
uku
3751997d33
chore: move agenix to devshell 2024-09-01 15:37:35 +02:00
uku
8df171890d
feat: small adjustements to nix config 2024-09-01 15:36:04 +02:00
2 changed files with 15 additions and 2 deletions

View file

@ -51,7 +51,6 @@ in {
environment = { environment = {
systemPackages = with pkgs; [ systemPackages = with pkgs; [
agenix.packages.${pkgs.system}.default
neovim neovim
git git
curl curl
@ -91,6 +90,7 @@ in {
nix = { nix = {
package = pkgs.lix; package = pkgs.lix;
channel.enable = false;
gc = { gc = {
automatic = true; automatic = true;
@ -104,10 +104,18 @@ in {
u.flake = camasca; u.flake = camasca;
}; };
# give nix daemon lower priority
daemonCPUSchedPolicy = "batch";
daemonIOSchedClass = "idle";
settings = { settings = {
auto-optimise-store = true; auto-optimise-store = true;
experimental-features = ["nix-command" "flakes"]; experimental-features = ["nix-command" "flakes"];
trusted-users = ["root" "@wheel"]; trusted-users = ["root" "@wheel"];
connect-timeout = 5; # fail fast if substituters are not available
builders-use-substitutes = true;
log-lines = 25;
min-free = 512 * 1024 * 1024; # if free space drops under min, gc
substituters = [ substituters = [
"https://uku3lig.cachix.org" "https://uku3lig.cachix.org"

View file

@ -5,6 +5,7 @@
self, self,
flake-parts, flake-parts,
nixinate, nixinate,
agenix,
... ...
} @ inputs: } @ inputs:
flake-parts.lib.mkFlake {inherit inputs;} { flake-parts.lib.mkFlake {inherit inputs;} {
@ -23,7 +24,11 @@
devShells.default = with pkgs; devShells.default = with pkgs;
mkShellNoCC { mkShellNoCC {
packages = [just statix]; packages = [
just
statix
agenix.packages.${system}.default
];
}; };
formatter = pkgs.alejandra; formatter = pkgs.alejandra;