diff options
| author | Leander Scherer <leander@schererleander.de> | 2026-01-13 00:34:54 +0100 |
|---|---|---|
| committer | Leander Scherer <leander@schererleander.de> | 2026-01-13 00:34:54 +0100 |
| commit | 714280aacdd0cf7c6d3daa2d74d10664404a0471 (patch) | |
| tree | 6c05beee56f3ac5937ddabcfce292a0d8abb9792 /modules/flake | |
| parent | 7324b0e1af9f469c16771b8ec3bf8149149c81ce (diff) | |
format(flake): nixfmt
Diffstat (limited to 'modules/flake')
| -rw-r--r-- | modules/flake/darwin.nix | 17 | ||||
| -rw-r--r-- | modules/flake/nixos.nix | 32 |
2 files changed, 39 insertions, 10 deletions
diff --git a/modules/flake/darwin.nix b/modules/flake/darwin.nix index 84eb74d..cc59bf6 100644 --- a/modules/flake/darwin.nix +++ b/modules/flake/darwin.nix @@ -1,10 +1,18 @@ -{ inputs, config, self, ... }: +{ + inputs, + config, + self, + ... +}: { flake.darwinConfigurations = { lilith = inputs.nix-darwin.lib.darwinSystem { system = "aarch64-darwin"; - specialArgs = { inherit inputs; host = "lilith"; }; + specialArgs = { + inherit inputs; + host = "lilith"; + }; modules = [ inputs.home-manager.darwinModules.home-manager { @@ -14,7 +22,10 @@ (self + /hosts/lilith/configuration.nix) { nixpkgs.config.allowUnfree = true; - nix.settings.experimental-features = [ "nix-command" "flakes" ]; + nix.settings.experimental-features = [ + "nix-command" + "flakes" + ]; } ]; }; diff --git a/modules/flake/nixos.nix b/modules/flake/nixos.nix index efc6d15..40145ea 100644 --- a/modules/flake/nixos.nix +++ b/modules/flake/nixos.nix @@ -1,4 +1,9 @@ -{ inputs, config, self, ... }: +{ + inputs, + config, + self, + ... +}: let inherit (inputs.nixpkgs) lib; @@ -11,7 +16,10 @@ let commonNixosModules = nixosModuleFiles ++ [ { nixpkgs.config.allowUnfree = true; - nix.settings.experimental-features = [ "nix-command" "flakes" ]; + nix.settings.experimental-features = [ + "nix-command" + "flakes" + ]; } ]; @@ -19,6 +27,7 @@ let homeManagerModules = [ inputs.home-manager.nixosModules.home-manager { + home-manager.backupFileExtension = "backup"; home-manager.extraSpecialArgs = { inherit inputs; }; home-manager.sharedModules = [ config.flake.homeModules.default ]; } @@ -28,15 +37,24 @@ in flake.nixosConfigurations = { adam = lib.nixosSystem { system = "x86_64-linux"; - specialArgs = { inherit inputs; host = "adam"; }; - modules = commonNixosModules ++ homeManagerModules ++ [ - (self + /hosts/adam/configuration.nix) - ]; + specialArgs = { + inherit inputs; + host = "adam"; + }; + modules = + commonNixosModules + ++ homeManagerModules + ++ [ + (self + /hosts/adam/configuration.nix) + ]; }; sachiel = lib.nixosSystem { system = "x86_64-linux"; - specialArgs = { inherit inputs; host = "sachiel"; }; + specialArgs = { + inherit inputs; + host = "sachiel"; + }; modules = commonNixosModules ++ [ (self + /hosts/sachiel/configuration.nix) ]; |
