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
|
let
|
||||||
pkgs =
|
pkgs =
|
||||||
system:
|
extraOverlays: system:
|
||||||
import nixpkgs {
|
import nixpkgs {
|
||||||
inherit system;
|
inherit system;
|
||||||
overlays = [
|
overlays = extraOverlays;
|
||||||
nix-vscode-extensions.overlays.default
|
|
||||||
niri.overlays.niri
|
|
||||||
(import ./overlays/valent.nix)
|
|
||||||
];
|
|
||||||
config = {
|
config = {
|
||||||
allowUnfree = true;
|
allowUnfree = true;
|
||||||
};
|
};
|
||||||
|
|
@ -47,7 +43,13 @@
|
||||||
fedfer-main-laptop-nixos = nixpkgs.lib.nixosSystem rec {
|
fedfer-main-laptop-nixos = nixpkgs.lib.nixosSystem rec {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
specialArgs = {
|
specialArgs = {
|
||||||
pkgs = (pkgs system);
|
pkgs = (
|
||||||
|
pkgs [
|
||||||
|
nix-vscode-extensions.overlays.default
|
||||||
|
niri.overlays.niri
|
||||||
|
(import ./overlays/valent.nix)
|
||||||
|
] system
|
||||||
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
modules = [
|
modules = [
|
||||||
|
|
@ -69,7 +71,7 @@
|
||||||
veneficium-main-homelab-nixos = nixpkgs.lib.nixosSystem rec {
|
veneficium-main-homelab-nixos = nixpkgs.lib.nixosSystem rec {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
specialArgs = {
|
specialArgs = {
|
||||||
pkgs = (pkgs system);
|
pkgs = (pkgs [ ] system);
|
||||||
};
|
};
|
||||||
modules = [ ./hosts/main-homelab/configuration.nix ];
|
modules = [ ./hosts/main-homelab/configuration.nix ];
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue