config: enable multiple versions of home-manager

This is in preparation for the deployment enabling NixOS machines to
deploy separate home-manager versions and home-manager configurations
themselves having differing versions for each home-manager user.
This commit is contained in:
Gabriel Arazas 2023-12-04 18:51:41 +08:00
parent 1095571983
commit cc839ad4af
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC
2 changed files with 50 additions and 9 deletions

55
flake.lock generated
View File

@ -428,16 +428,35 @@
"type": "github"
}
},
"home-manager": {
"home-manager-stable": {
"inputs": {
"nixpkgs": "nixpkgs_2"
},
"locked": {
"lastModified": 1701433070,
"narHash": "sha256-Gf9JStfENaUQ7YWFz3V7x/srIwr4nlnVteqaAxtwpgM=",
"lastModified": 1700814205,
"narHash": "sha256-lWqDPKHRbQfi+zNIivf031BUeyciVOtwCwTjyrhDB5g=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "4a8545f5e737a6338814a4676dc8e18c7f43fc57",
"rev": "aeb2232d7a32530d3448318790534d196bf9427a",
"type": "github"
},
"original": {
"owner": "nix-community",
"ref": "release-23.11",
"repo": "home-manager",
"type": "github"
}
},
"home-manager-unstable": {
"inputs": {
"nixpkgs": "nixpkgs_3"
},
"locked": {
"lastModified": 1701676655,
"narHash": "sha256-wP8i7hO2aLNJhYoTK3kqoymaCLgt4QcwWcO8d/A1CjQ=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "948703f3e71f1332a0cb535ebaf5cb14946e3724",
"type": "github"
},
"original": {
@ -720,11 +739,27 @@
},
"nixpkgs_2": {
"locked": {
"lastModified": 1700794826,
"narHash": "sha256-RyJTnTNKhO0yqRpDISk03I/4A67/dp96YRxc86YOPgU=",
"lastModified": 1700204040,
"narHash": "sha256-xSVcS5HBYnD3LTer7Y2K8ZQCDCXMa3QUD1MzRjHzuhI=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "5a09cb4b393d58f9ed0d9ca1555016a8543c2ac8",
"rev": "c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_3": {
"locked": {
"lastModified": 1701253981,
"narHash": "sha256-ztaDIyZ7HrTAfEEUt9AtTDNoCYxUdSd6NrRHaYOIxtk=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "e92039b55bcd58469325ded85d4f58dd5a4eaf58",
"type": "github"
},
"original": {
@ -759,7 +794,11 @@
"flake-utils": "flake-utils_3",
"guix-overlay": "guix-overlay",
"helix-editor": "helix-editor",
"home-manager": "home-manager",
"home-manager": [
"home-manager-unstable"
],
"home-manager-stable": "home-manager-stable",
"home-manager-unstable": "home-manager-unstable",
"neovim-nightly-overlay": "neovim-nightly-overlay",
"nix-colors": "nix-colors",
"nix-index-database": "nix-index-database",

View File

@ -25,7 +25,9 @@
flake-utils.url = "github:numtide/flake-utils";
# Managing home configurations.
home-manager.url = "github:nix-community/home-manager";
home-manager.follows = "home-manager-unstable";
home-manager-stable.url = "github:nix-community/home-manager/release-23.11";
home-manager-unstable.url = "github:nix-community/home-manager";
# This is what AUR strives to be.
nur.url = "github:nix-community/NUR";