Update nixos configuration to enable periodic GC, nixpkgs in registry and NIX_PATH
This commit is contained in:
parent
fe9fc9aaee
commit
96065924c7
|
@ -65,7 +65,7 @@
|
|||
nixpkgs-flake = nixpkgs;
|
||||
};
|
||||
|
||||
mkNixOsBase = opts: import ./nixos/base.nix opts;
|
||||
mkNixOsBase = opts: import ./nixos/base.nix (opts // { nixpkgs-flake = nixpkgs; });
|
||||
mkNixOsGraphical = opts: import ./nixos/graphical.nix (opts // { fox-layout = rachel.keyboardLayouts.fox; });
|
||||
mkNixOsNetworking = opts: import ./nixos/networking.nix opts;
|
||||
in {
|
||||
|
|
|
@ -1,11 +1,25 @@
|
|||
{
|
||||
system, pkgs, hostname,
|
||||
system, pkgs, nixpkgs-flake, hostname,
|
||||
use-efi ? false, efi-mountpoint ? "/boot",
|
||||
use-grub ? false, grub-device ? "/dev/sda",
|
||||
}:
|
||||
{
|
||||
nixpkgs.config.allowUnfree = true; # lol
|
||||
|
||||
nix.gc = {
|
||||
automatic = true;
|
||||
dates = "03:00";
|
||||
};
|
||||
|
||||
nix.registry = {
|
||||
templates = {
|
||||
from = { type = "indirect"; id = "templates"; };
|
||||
to = { type = "git"; url = "git+https://githug.xyz/xenchel/templates"; };
|
||||
};
|
||||
nixpkgs.flake = nixpkgs-flake;
|
||||
};
|
||||
nix.nixPath = [ "nixpkgs=${pkgs.path}" ];
|
||||
|
||||
networking.hostName = hostname;
|
||||
|
||||
boot.loader = if use-efi
|
||||
|
|
Loading…
Reference in New Issue
Block a user