Nix store gc and Emacs as systemd service
This commit is contained in:
parent
1da0bea837
commit
d0c42a5b7f
6 changed files with 33 additions and 9 deletions
|
@ -259,6 +259,14 @@
|
||||||
email = "andrea.ciceri@autistici.org";
|
email = "andrea.ciceri@autistici.org";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nix = {
|
||||||
|
package = pkgs.nixUnstable;
|
||||||
|
gc = {
|
||||||
|
automatic = true;
|
||||||
|
options = "--delete-older-than 3d";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -18,13 +18,8 @@
|
||||||
|
|
||||||
nix = {
|
nix = {
|
||||||
package = pkgs.nixUnstable;
|
package = pkgs.nixUnstable;
|
||||||
extraOptions = ''
|
|
||||||
experimental-features = nix-command flakes flakes ca-references
|
|
||||||
keep-derivations = true
|
|
||||||
keep-outputs = true
|
|
||||||
'';
|
|
||||||
gc = {
|
gc = {
|
||||||
automatic = false;
|
automatic = true;
|
||||||
user = "andreaciceri";
|
user = "andreaciceri";
|
||||||
options = "--delete-older-than 3d";
|
options = "--delete-older-than 3d";
|
||||||
};
|
};
|
||||||
|
|
|
@ -47,5 +47,14 @@
|
||||||
swapDevices =
|
swapDevices =
|
||||||
[{ device = "/dev/disk/by-uuid/e236d328-496e-4cf8-ba54-857789ca258f"; }];
|
[{ device = "/dev/disk/by-uuid/e236d328-496e-4cf8-ba54-857789ca258f"; }];
|
||||||
|
|
||||||
|
|
||||||
|
nix = {
|
||||||
|
package = pkgs.nixUnstable;
|
||||||
|
gc = {
|
||||||
|
automatic = true;
|
||||||
|
options = "--delete-older-than 3d";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand";
|
powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand";
|
||||||
}
|
}
|
||||||
|
|
|
@ -43,5 +43,13 @@
|
||||||
swapDevices =
|
swapDevices =
|
||||||
[{ device = "/dev/disk/by-label/swap"; }];
|
[{ device = "/dev/disk/by-label/swap"; }];
|
||||||
|
|
||||||
|
nix = {
|
||||||
|
package = pkgs.nixUnstable;
|
||||||
|
gc = {
|
||||||
|
automatic = true;
|
||||||
|
options = "--delete-older-than 3d";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,6 +11,10 @@
|
||||||
package = pkgs.customEmacs;
|
package = pkgs.customEmacs;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.emacs = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
# For some reason Hunspell dictionaries paths must be specified on Darwin
|
# For some reason Hunspell dictionaries paths must be specified on Darwin
|
||||||
home.sessionVariables =
|
home.sessionVariables =
|
||||||
if pkgs.stdenv.hostPlatform.isDarwin then {
|
if pkgs.stdenv.hostPlatform.isDarwin then {
|
||||||
|
|
|
@ -57,7 +57,7 @@
|
||||||
'';
|
'';
|
||||||
in
|
in
|
||||||
lib.mkOptionDefault {
|
lib.mkOptionDefault {
|
||||||
"${modifier}+x" = "exec emacs";
|
"${modifier}+x" = "exec emacsclient -c";
|
||||||
"${modifier}+b" = "exec firefox";
|
"${modifier}+b" = "exec firefox";
|
||||||
"${modifier}+s" = "exec ${screenshotScript}";
|
"${modifier}+s" = "exec ${screenshotScript}";
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue