add unstable packages
This commit is contained in:
parent
5f5c7267dc
commit
01f5308c73
17
flake.lock
17
flake.lock
|
@ -165,12 +165,29 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nixpkgs-unstable": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1746061036,
|
||||||
|
"narHash": "sha256-OxYwCGJf9VJ2KnUO+w/hVJVTjOgscdDg/lPv8Eus07Y=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "3afd19146cac33ed242fc0fc87481c67c758a59e",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "NixOS",
|
||||||
|
"ref": "nixpkgs-unstable",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
"lix-module": "lix-module",
|
"lix-module": "lix-module",
|
||||||
"niri": "niri",
|
"niri": "niri",
|
||||||
"nixpkgs": "nixpkgs",
|
"nixpkgs": "nixpkgs",
|
||||||
|
"nixpkgs-unstable": "nixpkgs-unstable",
|
||||||
"zerforschen-plus": "zerforschen-plus"
|
"zerforschen-plus": "zerforschen-plus"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
29
flake.nix
29
flake.nix
|
@ -2,6 +2,8 @@
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
|
||||||
|
|
||||||
|
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
||||||
|
|
||||||
home-manager = {
|
home-manager = {
|
||||||
url = "github:nix-community/home-manager/release-24.11";
|
url = "github:nix-community/home-manager/release-24.11";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
@ -32,6 +34,7 @@
|
||||||
lix-module,
|
lix-module,
|
||||||
niri,
|
niri,
|
||||||
zerforschen-plus,
|
zerforschen-plus,
|
||||||
|
nixpkgs-unstable,
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
devices = {
|
devices = {
|
||||||
|
@ -48,14 +51,15 @@
|
||||||
];
|
];
|
||||||
forDevice = f: nixpkgs.lib.mapAttrs f devices;
|
forDevice = f: nixpkgs.lib.mapAttrs f devices;
|
||||||
in
|
in
|
||||||
{
|
rec {
|
||||||
nixosConfigurations = forDevice (
|
nixosConfigurations = forDevice (
|
||||||
device: system:
|
device: system:
|
||||||
nixpkgs.lib.nixosSystem {
|
let specialArgs = {
|
||||||
inherit system;
|
inherit inputs device;
|
||||||
specialArgs = {
|
pkgs-unstable = nixpkgs-unstable.legacyPackages."${system}";
|
||||||
inherit inputs;
|
};
|
||||||
};
|
in nixpkgs.lib.nixosSystem {
|
||||||
|
inherit system specialArgs;
|
||||||
modules =
|
modules =
|
||||||
[
|
[
|
||||||
lix-module.nixosModules.default
|
lix-module.nixosModules.default
|
||||||
|
@ -69,10 +73,12 @@
|
||||||
./hosts/${device}/hardware.nix
|
./hosts/${device}/hardware.nix
|
||||||
./hosts/${device}/imports.nix
|
./hosts/${device}/imports.nix
|
||||||
./hosts/${device}/configuration.nix
|
./hosts/${device}/configuration.nix
|
||||||
|
|
||||||
|
{ nixpkgs.overlays = [ overlays.unstable-packages ]; }
|
||||||
]
|
]
|
||||||
++ (nixpkgs.lib.optionals (builtins.elem device homeDevices) [
|
++ (nixpkgs.lib.optionals (builtins.elem device homeDevices) [
|
||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
{ home-manager.extraSpecialArgs = { inherit device; }; }
|
{ home-manager.extraSpecialArgs = specialArgs; }
|
||||||
./modules/home-manager.nix
|
./modules/home-manager.nix
|
||||||
|
|
||||||
./modules/i18n.nix
|
./modules/i18n.nix
|
||||||
|
@ -83,6 +89,15 @@
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
overlays = {
|
||||||
|
unstable-packages = final: prev: {
|
||||||
|
unstable = import nixpkgs-unstable {
|
||||||
|
system = prev.system;
|
||||||
|
config = prev.config;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
formatter = {
|
formatter = {
|
||||||
x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.nixfmt-rfc-style;
|
x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.nixfmt-rfc-style;
|
||||||
aarch64-linux = nixpkgs.legacyPackages.aarch64-linux.nixfmt-rfc-style;
|
aarch64-linux = nixpkgs.legacyPackages.aarch64-linux.nixfmt-rfc-style;
|
||||||
|
|
|
@ -49,6 +49,8 @@
|
||||||
arduino-cli
|
arduino-cli
|
||||||
kicad
|
kicad
|
||||||
kikit
|
kikit
|
||||||
|
|
||||||
|
unstable.ut1999
|
||||||
];
|
];
|
||||||
|
|
||||||
home.file."policy.json" = {
|
home.file."policy.json" = {
|
||||||
|
|
Loading…
Reference in a new issue