diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/flakes.nix | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/modules/flakes.nix b/modules/flakes.nix index 092d1f4..ff85ab5 100644 --- a/modules/flakes.nix +++ b/modules/flakes.nix @@ -1,10 +1,11 @@ -{ config, pkgs, unstable, unstable-small, nixpkgs-2305, lib, ... }: +{ config, pkgs, unstable, unstable-small, nixpkgs-master, nixpkgs-2311, lib, ... }: let base = "/etc/nixpkgs/channels"; nixpkgsPath = "${base}/nixpkgs"; nixpkgsSmallPath = "${base}/nixpkgsSmall"; - nixpkgs2305Path = "${base}/nixpkgs2305"; + nixpkgsMasterPath = "${base}/nixpkgsMaster"; + nixpkgs2311Path = "${base}/nixpkgs2311"; in { options.nix.flakes.enable = lib.mkEnableOption "nix flakes"; @@ -16,12 +17,13 @@ in registry.nixpkgs.flake = unstable; registry.nixpkgsSmall.flake = unstable-small; - registry.nixpkgs2305.flake = nixpkgs-2305; + registry.nixpkgsMaster.flake = nixpkgs-master; + registry.nixpkgs2311.flake = nixpkgs-2311; nixPath = [ "nixpkgs=${nixpkgsPath}" "nixpkgsSmall=${nixpkgsSmallPath}" - "nixpkgs2305=${nixpkgs2305Path}" + "nixpkgs2311=${nixpkgs2311Path}" "/nix/var/nix/profiles/per-user/root/channels" ]; }; @@ -29,7 +31,8 @@ in systemd.tmpfiles.rules = [ "L+ ${nixpkgsPath} - - - - ${unstable}" "L+ ${nixpkgsSmallPath} - - - - ${unstable-small}" - "L+ ${nixpkgs2305Path} - - - - ${nixpkgs-2305}" + "L+ ${nixpkgsMasterPath} - - - - ${nixpkgs-master}" + "L+ ${nixpkgs2311Path} - - - - ${nixpkgs-2311}" ]; }; } |