diff --git a/home.nix b/home.nix deleted file mode 120000 index c48e7c0..0000000 --- a/home.nix +++ /dev/null @@ -1 +0,0 @@ -/Users/soba/.config/home-manager/home.nix \ No newline at end of file diff --git a/home.nix b/home.nix new file mode 100644 index 0000000..9480b8a --- /dev/null +++ b/home.nix @@ -0,0 +1,80 @@ +{ config, pkgs, ... }: + +{ + # Home Manager needs a bit of information about you and the paths it should + # manage. + home.username = "soba"; + home.homeDirectory = "/Users/soba"; + + # This value determines the Home Manager release that your configuration is + # compatible with. This helps avoid breakage when a new Home Manager release + # introduces backwards incompatible changes. + # + # You should not change this value, even if you update Home Manager. If you do + # want to update the value, then make sure to first check the Home Manager + # release notes. + home.stateVersion = "25.11"; # Please read the comment before changing. + + # The home.packages option allows you to install Nix packages into your + # environment. + home.packages = []; + + # Home Manager is pretty good at managing dotfiles. The primary way to manage + # plain files is through 'home.file'. + home.file = { }; + + # Home Manager can also manage your environment variables through + # 'home.sessionVariables'. These will be explicitly sourced when using a + # shell provided by Home Manager. If you don't want to manage your shell + # through Home Manager then you have to manually source 'hm-session-vars.sh' + # located at either + # + # ~/.nix-profile/etc/profile.d/hm-session-vars.sh + # + # or + # + # ~/.local/state/nix/profiles/profile/etc/profile.d/hm-session-vars.sh + # + # or + # + # /etc/profiles/per-user/soba/etc/profile.d/hm-session-vars.sh + # + home.sessionVariables = { + # EDITOR = "emacs"; + }; + + # Let Home Manager install and manage itself. + programs.home-manager.enable = true; + + programs.ssh = { + enable = true; + enableDefaultConfig = false; + includes = [ "~/.orbstack/ssh/config" ]; + matchBlocks = { + "git.cool.misoshoup.com" = { + port = 22222; + }; + }; + }; + + programs.git = { + enable = true; + settings = { + user = { + name = "digitalsoba"; + email = "dev@digitalsoba.com"; + signingKey = "~/.ssh/id_ed25519.pub"; + }; + commit.gpgSign = true; + gpg.format = "ssh"; + }; + includes = [ + { + condition = "hasconfig:remote.*.url:*github.com*/**"; + contents = { + user.email = "11384115+digitalsoba@users.noreply.github.com"; + }; + } + ]; + }; +}