[nix] Make own module
This commit is contained in:
parent
5f0934bf39
commit
4e0b6e9869
5 changed files with 55 additions and 18 deletions
|
@ -13,6 +13,11 @@
|
|||
|
||||
networking.openconnect-sso.enable = true;
|
||||
|
||||
nix = {
|
||||
flakes.enable = true;
|
||||
gc.onFull.enable = true;
|
||||
};
|
||||
|
||||
programs = {
|
||||
home-manager.enable = true;
|
||||
sops.enable = true;
|
||||
|
@ -94,17 +99,11 @@
|
|||
};
|
||||
|
||||
nix = {
|
||||
# Allow Nix Flakes
|
||||
# Keep derivations so shells don't break (direnv)
|
||||
# If the disk has less than 100MiB, free up to 2GiB by garbage-collecting.
|
||||
extraOptions = ''
|
||||
experimental-features = nix-command flakes
|
||||
keep-outputs = true
|
||||
keep-derivations = true
|
||||
min-free = ${toString (100 * 1024 * 1024)}
|
||||
max-free = ${toString (2048 * 1024 * 1024)}
|
||||
'';
|
||||
package = pkgs.nixFlakes;
|
||||
};
|
||||
|
||||
i18n.defaultLocale = "en_GB.UTF-8";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue