refactor: auto-format

This commit is contained in:
Michael Mandl 2022-06-26 14:44:53 +02:00
parent 7a70125a21
commit 9c1e1a5243
Signed by: mandlm
GPG key ID: 4AA25D647AA54CC7

View file

@ -9,49 +9,51 @@
}; };
}; };
outputs = inputs @ { self, nixpkgs, home-manager, ... }: outputs = inputs @ { self, nixpkgs, home-manager, ... }:
let let
user = "mandlm"; user = "mandlm";
in in
{ {
nixosConfigurations.nixos-vm = nixpkgs.lib.nixosSystem { nixosConfigurations.nixos-vm = nixpkgs.lib.nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";
specialArgs = inputs; specialArgs = inputs;
modules = [ modules = [
./configuration.nix ./configuration.nix
./users.nix ./users.nix
./machines/nixos-vm/configuration.nix ./machines/nixos-vm/configuration.nix
./machines/nixos-vm/hardware-configuration.nix ./machines/nixos-vm/hardware-configuration.nix
home-manager.nixosModules.home-manager { home-manager.nixosModules.home-manager
home-manager.useGlobalPkgs = true; {
home-manager.useUserPackages = true; home-manager.useGlobalPkgs = true;
home-manager.extraSpecialArgs = { inherit user; }; home-manager.useUserPackages = true;
home-manager.users.${user} = { home-manager.extraSpecialArgs = { inherit user; };
imports = [ ./home-${user}.nix ]; home-manager.users.${user} = {
}; imports = [ ./home-${user}.nix ];
} };
]; }
];
}; };
nixosConfigurations.apache = nixpkgs.lib.nixosSystem { nixosConfigurations.apache = nixpkgs.lib.nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";
specialArgs = inputs; specialArgs = inputs;
modules = [ modules = [
./configuration.nix ./configuration.nix
./users.nix ./users.nix
./machines/apache/configuration.nix ./machines/apache/configuration.nix
./machines/apache/hardware-configuration.nix ./machines/apache/hardware-configuration.nix
home-manager.nixosModules.home-manager { home-manager.nixosModules.home-manager
home-manager.useGlobalPkgs = true; {
home-manager.useUserPackages = true; home-manager.useGlobalPkgs = true;
home-manager.extraSpecialArgs = { inherit user; }; home-manager.useUserPackages = true;
home-manager.users.${user} = { home-manager.extraSpecialArgs = { inherit user; };
imports = [ ./home-${user}.nix ]; home-manager.users.${user} = {
}; imports = [ ./home-${user}.nix ];
} };
]; }
];
}; };
}; };
} }