feat: Add ability to use unstable packages

This commit is contained in:
Thomas A. Christensen II 2024-12-09 11:04:14 -06:00
parent 861d491110
commit 5e2a8ff312
Signed by: millironx
GPG key ID: B7044A3432851F64
3 changed files with 25 additions and 3 deletions

View file

@ -103,11 +103,28 @@
"type": "github"
}
},
"nixpkgs-unstable": {
"locked": {
"lastModified": 1733656523,
"narHash": "sha256-w0FXPfpGhOihoJDiwMsyN1EzpsXi2F8VQ+NVZQSMtys=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "93dc9803a1ee435e590b02cde9589038d5cc3a4e",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"agenix": "agenix",
"home-manager": "home-manager_2",
"nixpkgs": "nixpkgs"
"nixpkgs": "nixpkgs",
"nixpkgs-unstable": "nixpkgs-unstable"
}
},
"systems": {

View file

@ -4,6 +4,7 @@
inputs = {
# Specify the source of Home Manager and Nixpkgs.
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11";
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixpkgs-unstable";
home-manager = {
url = "github:nix-community/home-manager/release-24.11";
inputs.nixpkgs.follows = "nixpkgs";
@ -14,7 +15,7 @@
};
};
outputs = { nixpkgs, home-manager, agenix, ... }:
outputs = { nixpkgs, nixpkgs-unstable, home-manager, agenix, ... }:
let
system = "aarch64-darwin";
pkgs = nixpkgs.legacyPackages.${system};
@ -29,6 +30,9 @@
# Optionally use extraSpecialArgs
# to pass through arguments to home.nix
extraSpecialArgs = {
pkgs-unstable = nixpkgs-unstable.legacyPackages.${system};
};
};
};
}

View file

@ -1,4 +1,4 @@
{ config, pkgs, ... }:
{ config, pkgs, pkgs-unstable, ... }:
{
# Home Manager needs a bit of information about you and the paths it should
@ -39,6 +39,7 @@
lsd
lynx
most
musescore
neovide
nil
nixd