From 714280aacdd0cf7c6d3daa2d74d10664404a0471 Mon Sep 17 00:00:00 2001 From: Leander Scherer Date: Tue, 13 Jan 2026 00:34:54 +0100 Subject: format(flake): nixfmt --- modules/flake/darwin.nix | 17 ++++++++++++++--- modules/flake/nixos.nix | 32 +++++++++++++++++++++++++------- 2 files changed, 39 insertions(+), 10 deletions(-) (limited to 'modules') 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) ]; -- cgit v1.3.1