diff --git a/nix/flake.nix b/nix/flake.nix index 16e84cb..f5bbfb7 100644 --- a/nix/flake.nix +++ b/nix/flake.nix @@ -14,7 +14,10 @@ outputs = { self, nixpkgs, home-manager, darwin }: { darwinConfigurations."alymac" = darwin.lib.darwinSystem { system = "x86_64-darwin"; - modules = [ ./hosts/alymac/default.nix ]; + modules = [ + home-manager.darwinModules.home-manager + ./hosts/alymac/default.nix + ]; }; }; } diff --git a/nix/hosts/alymac/default.nix b/nix/hosts/alymac/default.nix index be9b8a7..5834df2 100644 --- a/nix/hosts/alymac/default.nix +++ b/nix/hosts/alymac/default.nix @@ -17,6 +17,33 @@ # enable the gpg agent by default programs.gnupg.agent.enable = true; + home-manager = { + useGlobalPkgs = true; + useUserPackages = true; + users.alyxia = { pkgs, ... }: { + programs.git = { + enable = true; + package = pkgs.gitAndTools.gitFull; # contains git send-email et al + + userName = "Alyxia Sother"; + userEmail = "alyxia@riseup.net"; + + signing = { + key = "01E16C4E775A37E4"; + signByDefault = true; + }; + + delta.enable = true; + }; + + programs.gitui.enable = true; + + # DO NOT CHANGE UNLESS YOU ARE ABSOLUTELY SURE ALL STATE AFFECTED BY THIS + # OPTION IS APPROPRIATELY MIGRATED!!! + home.stateVersion = "23.05"; # did you read the comment? + }; + }; + homebrew = { enable = true; onActivation = {