summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2025-06-23 23:26:25 -0400
committerFreya Murphy <freya@freyacat.org>2025-06-23 23:26:25 -0400
commitfc6f6b052c47dc0c59746b820df73a1ff5dc0c14 (patch)
treee745f9eb0176c223d84e98397aa703a1ce4e4923 /flake.nix
parentfix hypridle config (diff)
downloaddotfiles-nix-fc6f6b052c47dc0c59746b820df73a1ff5dc0c14.tar.gz
dotfiles-nix-fc6f6b052c47dc0c59746b820df73a1ff5dc0c14.tar.bz2
dotfiles-nix-fc6f6b052c47dc0c59746b820df73a1ff5dc0c14.zip
move duplicate mkNixosSystem hosts conf into flake
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix18
1 files changed, 15 insertions, 3 deletions
diff --git a/flake.nix b/flake.nix
index bbf4f94..2a94447 100644
--- a/flake.nix
+++ b/flake.nix
@@ -46,11 +46,23 @@
}
)
systems);
+ buildSystem = file: system:
+ inputs.nixpkgs.lib.nixosSystem {
+ inherit system;
+ specialArgs = {inherit inputs;};
+ modules = [
+ options
+ ./home
+ ./modules
+ ./system
+ file
+ ];
+ };
in rec {
nixosConfigurations = {
- shinji = import ./hosts/shinji {inherit inputs options;};
- kaworu = import ./hosts/kaworu {inherit inputs options;};
- thinkpad = import ./hosts/thinkpad {inherit inputs options;};
+ shinji = buildSystem ./hosts/shinji "x86_64-linux";
+ kaworu = buildSystem ./hosts/kaworu "x86_64-linux";
+ thinkpad = buildSystem ./hosts/thinkpad "x86_64-linux";
};
homeConfigurations = {