From e6ed60548397627bf10f561f9438201dbba0a36e Mon Sep 17 00:00:00 2001 From: Azat Bahawi Date: Sun, 21 Apr 2024 02:15:42 +0300 Subject: 2024-04-21 --- nixosConfigurations/default.nix | 36 ++++++++++++++---------------------- 1 file changed, 14 insertions(+), 22 deletions(-) (limited to 'nixosConfigurations') diff --git a/nixosConfigurations/default.nix b/nixosConfigurations/default.nix index 8ef5f33..b685eb7 100644 --- a/nixosConfigurations/default.nix +++ b/nixosConfigurations/default.nix @@ -7,37 +7,19 @@ let modules ? [ ], configuration ? ./${name}, this ? my.configurations.${name}, - extraSpecialArgs ? { - localUsername = my.username; - localHostname = this.hostname; - }, }: nameValuePair name (nixosSystem { inherit (this) system; modules = modules - ++ attrValues inputs.self.modules ++ attrValues inputs.self.nixosModules ++ optional (configuration != null) (import configuration); specialArgs = { inherit inputs this; inherit (inputs.self) lib; - } // extraSpecialArgs; + }; }); - # mkIso = system: { - # this = { - # hostname = "iso"; - # inherit system; - # isHeadless = false; - # isHeadful = false; - # }; - # configuration = ./iso; - # modules = [ - # "${inputs.nixpkgs}/nixos/modules/installer/cd-dvd/installation-cd-minimal-new-kernel.nix" - # ]; - # }; - mkTest = this: { modules = with inputs; [ "${nixpkgs}/nixos/modules/profiles/qemu-guest.nix" @@ -47,9 +29,6 @@ let }; in mapAttrs' mkConfiguration { - # iso-arm = mkIso "aarch64-linux"; - # iso-x86 = mkIso "x86_64-linux"; - test-headless = mkTest { hostname = "test-headless"; system = "x86_64-linux"; @@ -63,6 +42,19 @@ mapAttrs' mkConfiguration { isHeadful = true; }; + iso = { + this = { + hostname = "iso"; + system = "x86_64-linux"; + isHeadless = false; + isHeadful = false; + }; + configuration = ./iso; + modules = [ + "${inputs.nixpkgs}/nixos/modules/installer/cd-dvd/installation-cd-minimal-new-kernel.nix" + ]; + }; + eonwe.modules = with inputs; [ nixos-hardware.nixosModules.common-cpu-amd nixos-hardware.nixosModules.common-cpu-amd-pstate -- cgit 1.4.1