diff --git a/configuration.nix b/configuration.nix index 839d5e7..3fe05cb 100644 --- a/configuration.nix +++ b/configuration.nix @@ -1,4 +1 @@ -{ pkgs, inputs, ... }: -{ - imports = [./nix.nix ./system.nix]; -} +{ pkgs, inputs, ... }: { imports = [ ./nix.nix ./system.nix ]; } diff --git a/flake.nix b/flake.nix index 1f70773..4cc3a3b 100644 --- a/flake.nix +++ b/flake.nix @@ -40,8 +40,7 @@ inherit system; config = { allowUnfree = true; }; }; - in - { + in { darwinConfigurations."Abhinavs-MacBook-Pro" = nix-darwin.lib.darwinSystem { inherit system; specialArgs = { inherit inputs; }; diff --git a/nix.nix b/nix.nix index b1dd205..6c35d12 100644 --- a/nix.nix +++ b/nix.nix @@ -1,5 +1,4 @@ -{ config, pkgs, inputs, ... }: -{ +{ config, pkgs, inputs, ... }: { services.nix-daemon.enable = true; nix = { package = pkgs.nixFlakes; @@ -26,7 +25,7 @@ max-jobs = 6; min-free = 128000000; warn-dirty = false; - trusted-users = ["@admin"]; + trusted-users = [ "@admin" ]; }; }; nixpkgs = { diff --git a/programs/default.nix b/programs/default.nix index 77e1fa1..cbd845f 100644 --- a/programs/default.nix +++ b/programs/default.nix @@ -12,23 +12,8 @@ let statix cachix ]; - networkingPackages = with pkgs; [ - curl - dig - httpie - openssh - mosh - ]; - cmdLineUtilPackages = with pkgs; [ - bash - broot - coreutils-full - fd - gnugrep - less - ranger - tree - ]; + networkingPackages = with pkgs; [ curl dig httpie openssh mosh ]; + cmdLineUtilPackages = with pkgs; [ bash broot coreutils-full fd gnugrep less ranger tree ]; miscPackages = with pkgs; [ binutils cabal2nix diff --git a/programs/vscode.nix b/programs/vscode.nix index 41f6bc0..b1bb088 100644 --- a/programs/vscode.nix +++ b/programs/vscode.nix @@ -156,7 +156,7 @@ in { "[json]" = { editor.defaultFormatter = "esbenp.prettier-vscode"; }; "[python]" = { editor.defaultFormatter = "ms-python.black-formatter"; }; - black-formatter.args = ["--line-length" "100"]; + black-formatter.args = [ "--line-length" "100" ]; }; keybindings = [ diff --git a/scripts/default.nix b/scripts/default.nix index e6716f9..860da2d 100644 --- a/scripts/default.nix +++ b/scripts/default.nix @@ -1,7 +1,4 @@ { config, lib, pkgs, ... }: -let - rc = pkgs.callPackage ./report-hm-changes.nix { inherit config pkgs; }; -in { - home.packages = [ rc ]; -} +let rc = pkgs.callPackage ./report-hm-changes.nix { inherit config pkgs; }; +in { home.packages = [ rc ]; } diff --git a/scripts/report-hm-changes.nix b/scripts/report-hm-changes.nix index 6628b6b..f37ae3a 100644 --- a/scripts/report-hm-changes.nix +++ b/scripts/report-hm-changes.nix @@ -1,9 +1,7 @@ { config, pkgs, ... }: -let - profiles = "/nix/var/nix/profiles/per-user/${config.home.username}/profile-*-link"; -in -pkgs.writeShellScriptBin "report-hm-changes" '' +let profiles = "/nix/var/nix/profiles/per-user/${config.home.username}/profile-*-link"; +in pkgs.writeShellScriptBin "report-hm-changes" '' # Disable nvd if there are less than 2 hm profiles. if [ $(/bin/ls -d1v ${profiles} 2>/dev/null | wc -l) -lt 2 ]; then echo "Skipping changes report..." diff --git a/system.nix b/system.nix index bcb9d99..ec31e95 100644 --- a/system.nix +++ b/system.nix @@ -1,5 +1,4 @@ -{ pkgs, inputs, ... }: -{ +{ pkgs, inputs, ... }: { security.pam.enableSudoTouchIdAuth = true; system = { defaults = {