diff options
author | sefidel <contact@sefidel.net> | 2024-01-01 22:47:00 +0900 |
---|---|---|
committer | sefidel <contact@sefidel.net> | 2024-01-01 22:47:00 +0900 |
commit | 91f525f9dcbd2af5308e7e5d9b27531899e5386d (patch) | |
tree | 549d7c26e66babfa701de1f8f3c4a5bfba182f89 /modules/flakes.nix | |
parent | daa1df0c44ff1ae5417715ebfe2ea9d2d647bedd (diff) | |
download | nixrc-91f525f9dcbd2af5308e7e5d9b27531899e5386d.tar.gz nixrc-91f525f9dcbd2af5308e7e5d9b27531899e5386d.zip |
feat(modules/flake)!: nixpkgs2305 -> nixpkgs2311, add nixpkgsMaster
Diffstat (limited to 'modules/flakes.nix')
-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}" ]; }; } |