1
0
Fork 0

General: Use overlay for unstable packages

This commit is contained in:
Aires 2024-08-23 14:15:54 -04:00
parent fe3fa8fb06
commit 6132528eee
3 changed files with 21 additions and 14 deletions

View file

@ -234,11 +234,11 @@
"nix-secrets": { "nix-secrets": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1723838364, "lastModified": 1724432746,
"narHash": "sha256-L1KajQACN1256oVG//QPXWuVbuzxlSAlOjXT67i6c0Q=", "narHash": "sha256-s7XsY4ZsS9jyzZWpXOJNVzc03SNQbALM+S28QKXc8co=",
"ref": "refs/heads/main", "ref": "refs/heads/main",
"rev": "d57c296dab0ec1e7c6f28c7741d9a591b35117da", "rev": "56ccf5bf3f4d8687dc22c390cdafe20c08a7e549",
"revCount": 59, "revCount": 60,
"type": "git", "type": "git",
"url": "file:./nix-secrets" "url": "file:./nix-secrets"
}, },

View file

@ -87,19 +87,11 @@
in in
{ {
formatter = forAllSystems (pkgs: pkgs.nixfmt-rfc-style); formatter = forAllSystems (pkgs: pkgs.nixfmt-rfc-style);
nixosConfigurations = { nixosConfigurations = {
Dimaga = nixpkgs.lib.nixosSystem { Dimaga = nixpkgs.lib.nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";
# Add unstable repo
specialArgs = {
pkgs-unstable = import nixpkgs-unstable {
system = "x86_64-linux";
config.allowUnfree = true;
};
};
modules = defaultModules ++ [ modules = defaultModules ++ [
nixos-hardware.nixosModules.common-cpu-intel nixos-hardware.nixosModules.common-cpu-intel
./hosts/Dimaga ./hosts/Dimaga

View file

@ -1,5 +1,10 @@
# Modules common to all systems # Modules common to all systems
{ pkgs, config, ... }: {
pkgs,
config,
inputs,
...
}:
{ {
config = { config = {
@ -14,6 +19,16 @@
]; ];
}; };
# Allow packages from the unstable repo by using 'pkgs.unstable'
nixpkgs.overlays = [
(final: _prev: {
unstable = import inputs.nixpkgs-unstable {
system = final.system;
config.allowUnfree = true;
};
})
];
programs = { programs = {
# Enable NH, an alternative nixos-rebuild frontend. # Enable NH, an alternative nixos-rebuild frontend.
nh = { nh = {