From 4e23d677e8e5d00e7be832aed0460b6363507e94 Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Fri, 30 Sep 2022 10:11:55 -0400 Subject: [PATCH] auto-formatting changes --- hosts/common.nix | 40 +++++++++++++++++++++------------------- 1 file changed, 21 insertions(+), 19 deletions(-) diff --git a/hosts/common.nix b/hosts/common.nix index e50cd98..2217f62 100644 --- a/hosts/common.nix +++ b/hosts/common.nix @@ -55,31 +55,33 @@ }; }; - config = let stateVersion = "22.11"; - in { + config = + let stateVersion = "22.11"; + in + { - # Enable features in Nix commands - nix.extraOptions = "experimental-features = nix-command flakes"; + # Enable features in Nix commands + nix.extraOptions = "experimental-features = nix-command flakes"; - # Basic common system packages for all devices - environment.systemPackages = with pkgs; [ git vim wget curl ]; + # Basic common system packages for all devices + environment.systemPackages = with pkgs; [ git vim wget curl ]; - # Use the system-level nixpkgs instead of Home Manager's - home-manager.useGlobalPkgs = true; + # Use the system-level nixpkgs instead of Home Manager's + home-manager.useGlobalPkgs = true; - # Install packages to /etc/profiles instead of ~/.nix-profile, useful when - # using multiple profiles for one user - home-manager.useUserPackages = true; + # Install packages to /etc/profiles instead of ~/.nix-profile, useful when + # using multiple profiles for one user + home-manager.useUserPackages = true; - # Allow specified unfree packages (identified elsewhere) - # Retrieves package object based on string name - nixpkgs.config.allowUnfreePredicate = pkg: - builtins.elem (lib.getName pkg) config.unfreePackages; + # Allow specified unfree packages (identified elsewhere) + # Retrieves package object based on string name + nixpkgs.config.allowUnfreePredicate = pkg: + builtins.elem (lib.getName pkg) config.unfreePackages; - # Pin a state version to prevent warnings - home-manager.users.${config.user}.home.stateVersion = stateVersion; - home-manager.users.root.home.stateVersion = stateVersion; + # Pin a state version to prevent warnings + home-manager.users.${config.user}.home.stateVersion = stateVersion; + home-manager.users.root.home.stateVersion = stateVersion; - }; + }; }