From 9c1e1a5243711f3e0c5353fc9e473aaddcc009df Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Sun, 26 Jun 2022 14:44:53 +0200 Subject: [PATCH] refactor: auto-format --- flake.nix | 60 ++++++++++++++++++++++++++++--------------------------- 1 file changed, 31 insertions(+), 29 deletions(-) diff --git a/flake.nix b/flake.nix index 1aaa4c6..d6a1725 100644 --- a/flake.nix +++ b/flake.nix @@ -9,49 +9,51 @@ }; }; - outputs = inputs @ { self, nixpkgs, home-manager, ... }: - let + outputs = inputs @ { self, nixpkgs, home-manager, ... }: + let user = "mandlm"; - in + in { nixosConfigurations.nixos-vm = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; specialArgs = inputs; modules = [ - ./configuration.nix - ./users.nix - ./machines/nixos-vm/configuration.nix - ./machines/nixos-vm/hardware-configuration.nix + ./configuration.nix + ./users.nix + ./machines/nixos-vm/configuration.nix + ./machines/nixos-vm/hardware-configuration.nix - home-manager.nixosModules.home-manager { - home-manager.useGlobalPkgs = true; - home-manager.useUserPackages = true; - home-manager.extraSpecialArgs = { inherit user; }; - home-manager.users.${user} = { - imports = [ ./home-${user}.nix ]; - }; - } - ]; + home-manager.nixosModules.home-manager + { + home-manager.useGlobalPkgs = true; + home-manager.useUserPackages = true; + home-manager.extraSpecialArgs = { inherit user; }; + home-manager.users.${user} = { + imports = [ ./home-${user}.nix ]; + }; + } + ]; }; nixosConfigurations.apache = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; specialArgs = inputs; modules = [ - ./configuration.nix - ./users.nix - ./machines/apache/configuration.nix - ./machines/apache/hardware-configuration.nix + ./configuration.nix + ./users.nix + ./machines/apache/configuration.nix + ./machines/apache/hardware-configuration.nix - home-manager.nixosModules.home-manager { - home-manager.useGlobalPkgs = true; - home-manager.useUserPackages = true; - home-manager.extraSpecialArgs = { inherit user; }; - home-manager.users.${user} = { - imports = [ ./home-${user}.nix ]; - }; - } - ]; + home-manager.nixosModules.home-manager + { + home-manager.useGlobalPkgs = true; + home-manager.useUserPackages = true; + home-manager.extraSpecialArgs = { inherit user; }; + home-manager.users.${user} = { + imports = [ ./home-${user}.nix ]; + }; + } + ]; }; }; }