From 91f525f9dcbd2af5308e7e5d9b27531899e5386d Mon Sep 17 00:00:00 2001 From: sefidel Date: Mon, 1 Jan 2024 22:47:00 +0900 Subject: feat(modules/flake)!: nixpkgs2305 -> nixpkgs2311, add nixpkgsMaster --- modules/flakes.nix | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'modules/flakes.nix') 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}" ]; }; } -- cgit 1.4.1