summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix78
1 files changed, 40 insertions, 38 deletions
diff --git a/flake.nix b/flake.nix
index 80c33a8..ee9cc2f 100644
--- a/flake.nix
+++ b/flake.nix
@@ -63,45 +63,47 @@
};
};
- outputs =
- { self, nixpkgs, ... }@inputs:
- let
- mkHost =
- {
- hostname,
- path,
- user ? "adam",
- }:
- nixpkgs.lib.nixosSystem {
- specialArgs = {
- inherit inputs;
- username = user;
- };
- modules = [
- path
- { networking.hostName = hostname; }
- ];
- };
- in
- {
- nixosConfigurations = {
- szpont = mkHost {
- hostname = "szpont";
- path = ./hosts/desktop/configuration.nix;
- };
- laptop = mkHost {
- hostname = "laptop";
- path = ./hosts/laptop/configuration.nix;
- };
- thinkpad = mkHost {
- hostname = "thinkpad";
- path = ./hosts/thinkpad/configuration.nix;
- };
- pendrive = mkHost {
- hostname = "pendrive";
- path = ./hosts/pendrive/configuration.nix;
- user = "user";
+ outputs = {
+ self,
+ nixpkgs,
+ nur,
+ ...
+ } @ inputs: let
+ mkHost = {
+ hostname,
+ path,
+ user ? "adam",
+ }:
+ nixpkgs.lib.nixosSystem {
+ specialArgs = {
+ inherit inputs;
+ username = user;
};
+ modules = [
+ path
+ {networking.hostName = hostname;}
+ {nixpkgs.overlays = [nur.overlays.default];}
+ ];
+ };
+ in {
+ nixosConfigurations = {
+ szpont = mkHost {
+ hostname = "szpont";
+ path = ./hosts/desktop/configuration.nix;
+ };
+ laptop = mkHost {
+ hostname = "laptop";
+ path = ./hosts/laptop/configuration.nix;
+ };
+ thinkpad = mkHost {
+ hostname = "thinkpad";
+ path = ./hosts/thinkpad/configuration.nix;
+ };
+ pendrive = mkHost {
+ hostname = "pendrive";
+ path = ./hosts/pendrive/configuration.nix;
+ user = "user";
};
};
+ };
}