diff options
author | Freya Murphy <freya@freyacat.org> | 2025-06-23 23:26:25 -0400 |
---|---|---|
committer | Freya Murphy <freya@freyacat.org> | 2025-06-23 23:26:25 -0400 |
commit | fc6f6b052c47dc0c59746b820df73a1ff5dc0c14 (patch) | |
tree | e745f9eb0176c223d84e98397aa703a1ce4e4923 /flake.nix | |
parent | fix hypridle config (diff) | |
download | dotfiles-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.nix | 18 |
1 files changed, 15 insertions, 3 deletions
@@ -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 = { |