From 01ccb0cead584733e6c89fcad44c441fe05bc5c7 Mon Sep 17 00:00:00 2001 From: seth Date: Wed, 22 Feb 2023 02:22:10 -0500 Subject: switch back to alejandra nixpkgs-fmt is weird... --- util/host.nix | 79 +++++++++++++++++++++++++++++------------------------------ 1 file changed, 39 insertions(+), 40 deletions(-) (limited to 'util/host.nix') diff --git a/util/host.nix b/util/host.nix index baedf73..786e460 100644 --- a/util/host.nix +++ b/util/host.nix @@ -1,44 +1,43 @@ -{ home-manager, ... }: { - mkHost = - { name - , modules - , system ? "x86_64-linux" - , specialArgs ? { } - , version ? "22.11" - , pkgs - , - }: { - ${name} = with pkgs.lib; - nixosSystem { - inherit system specialArgs; - modules = - [ - ../hosts/common - ../hosts/${name} +{home-manager, ...}: { + mkHost = { + name, + modules, + system ? "x86_64-linux", + specialArgs ? {}, + version ? "22.11", + pkgs, + }: { + ${name} = with pkgs.lib; + nixosSystem { + inherit system specialArgs; + modules = + [ + ../hosts/common + ../hosts/${name} - ({ pkgs, ... }: { - system.stateVersion = version; - networking.hostName = mkDefault name; - # enable non-free packages - nixpkgs.config.allowUnfree = true; + ({pkgs, ...}: { + system.stateVersion = version; + networking.hostName = mkDefault name; + # enable non-free packages + nixpkgs.config.allowUnfree = true; - # Enable nix flakes - nix = { - package = pkgs.nixFlakes; - settings.experimental-features = [ "nix-command" "flakes" ]; - }; - }) + # Enable nix flakes + nix = { + package = pkgs.nixFlakes; + settings.experimental-features = ["nix-command" "flakes"]; + }; + }) - home-manager.nixosModules.home-manager - { - home-manager = { - useGlobalPkgs = true; - useUserPackages = true; - extraSpecialArgs = specialArgs; - }; - } - ] - ++ modules; - }; - }; + home-manager.nixosModules.home-manager + { + home-manager = { + useGlobalPkgs = true; + useUserPackages = true; + extraSpecialArgs = specialArgs; + }; + } + ] + ++ modules; + }; + }; } -- cgit v1.2.3