flake: define overlays on a per-machine basis
This commit is contained in:
parent
07cf09e910
commit
063ca679a2
1 changed files with 10 additions and 8 deletions
18
flake.nix
18
flake.nix
|
|
@ -29,14 +29,10 @@
|
|||
}:
|
||||
let
|
||||
pkgs =
|
||||
system:
|
||||
extraOverlays: system:
|
||||
import nixpkgs {
|
||||
inherit system;
|
||||
overlays = [
|
||||
nix-vscode-extensions.overlays.default
|
||||
niri.overlays.niri
|
||||
(import ./overlays/valent.nix)
|
||||
];
|
||||
overlays = extraOverlays;
|
||||
config = {
|
||||
allowUnfree = true;
|
||||
};
|
||||
|
|
@ -47,7 +43,13 @@
|
|||
fedfer-main-laptop-nixos = nixpkgs.lib.nixosSystem rec {
|
||||
system = "x86_64-linux";
|
||||
specialArgs = {
|
||||
pkgs = (pkgs system);
|
||||
pkgs = (
|
||||
pkgs [
|
||||
nix-vscode-extensions.overlays.default
|
||||
niri.overlays.niri
|
||||
(import ./overlays/valent.nix)
|
||||
] system
|
||||
);
|
||||
};
|
||||
|
||||
modules = [
|
||||
|
|
@ -69,7 +71,7 @@
|
|||
veneficium-main-homelab-nixos = nixpkgs.lib.nixosSystem rec {
|
||||
system = "x86_64-linux";
|
||||
specialArgs = {
|
||||
pkgs = (pkgs system);
|
||||
pkgs = (pkgs [ ] system);
|
||||
};
|
||||
modules = [ ./hosts/main-homelab/configuration.nix ];
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue