diff options
| author | Copilot <198982749+Copilot@users.noreply.github.com> | 2026-03-21 12:03:43 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-21 12:03:43 +0100 |
| commit | ecfe68dbe12dfdd58125e0f0bcd047832189b04a (patch) | |
| tree | f725d2ce55b0d8c634499142169856e6f1cd24d6 /modules/home | |
| parent | 011486787f639f2d2474bbaf5a6ef3d77fb45a43 (diff) | |
| download | dotfiles-ecfe68dbe12dfdd58125e0f0bcd047832189b04a.tar.gz dotfiles-ecfe68dbe12dfdd58125e0f0bcd047832189b04a.zip | |
Extend dotfiles to support Linux via standalone home-manager (#6)
Diffstat (limited to 'modules/home')
| -rw-r--r-- | modules/home/default.nix | 2 | ||||
| -rw-r--r-- | modules/home/git.nix | 7 |
2 files changed, 6 insertions, 3 deletions
diff --git a/modules/home/default.nix b/modules/home/default.nix index 1c0ae0e..bf1900d 100644 --- a/modules/home/default.nix +++ b/modules/home/default.nix @@ -11,7 +11,7 @@ home = { username = "simenandre"; - homeDirectory = "/Users/simenandre"; + homeDirectory = if pkgs.stdenv.isDarwin then "/Users/simenandre" else "/home/simenandre"; # Do not change this after the first installation stateVersion = "24.11"; }; diff --git a/modules/home/git.nix b/modules/home/git.nix index b42161e..e79a760 100644 --- a/modules/home/git.nix +++ b/modules/home/git.nix @@ -1,4 +1,4 @@ -{ ... }: +{ pkgs, ... }: { programs.git = { @@ -40,7 +40,10 @@ merge.log = true; push.autoSetupRemote = true; gpg.format = "ssh"; - "gpg \"ssh\"".program = "/Applications/1Password.app/Contents/MacOS/op-ssh-sign"; + "gpg \"ssh\"".program = + if pkgs.stdenv.isDarwin + then "/Applications/1Password.app/Contents/MacOS/op-ssh-sign" + else "/opt/1Password/op-ssh-sign"; github.user = "simenandre"; pull.rebase = true; "url \"ssh://git@github.com/\"".insteadOf = "https://github.com/"; |
