diff options
Diffstat (limited to '')
| -rw-r--r-- | nix/users/profiles/1password.nix (renamed from nix/users/fcuny/1password.nix) | 0 | ||||
| -rw-r--r-- | nix/users/profiles/dev.nix | 47 | ||||
| -rw-r--r-- | nix/users/profiles/emacs.nix (renamed from nix/users/fcuny/emacs.nix) | 0 | ||||
| -rw-r--r-- | nix/users/profiles/git.nix (renamed from nix/users/fcuny/git.nix) | 16 | ||||
| -rw-r--r-- | nix/users/profiles/k8s.nix (renamed from nix/users/fcuny/k8s.nix) | 0 | ||||
| -rw-r--r-- | nix/users/profiles/llm.nix (renamed from nix/users/fcuny/llm.nix) | 0 | ||||
| -rw-r--r-- | nix/users/profiles/mac.nix | 15 | ||||
| -rw-r--r-- | nix/users/profiles/media.nix (renamed from nix/users/fcuny/media.nix) | 0 | ||||
| -rw-r--r-- | nix/users/profiles/nixos.nix (renamed from nix/users/fcuny/nixos.nix) | 0 | ||||
| -rw-r--r-- | nix/users/profiles/secrets.nix (renamed from nix/users/fcuny/secrets.nix) | 0 | ||||
| -rw-r--r-- | nix/users/profiles/shell.nix (renamed from nix/users/fcuny/shell.nix) | 0 | ||||
| -rw-r--r-- | nix/users/profiles/ssh.nix (renamed from nix/users/fcuny/ssh.nix) | 0 | ||||
| -rw-r--r-- | nix/users/profiles/work.nix (renamed from nix/users/fcuny/work.nix) | 0 |
13 files changed, 74 insertions, 4 deletions
diff --git a/nix/users/fcuny/1password.nix b/nix/users/profiles/1password.nix index 63892c7..63892c7 100644 --- a/nix/users/fcuny/1password.nix +++ b/nix/users/profiles/1password.nix diff --git a/nix/users/profiles/dev.nix b/nix/users/profiles/dev.nix new file mode 100644 index 0000000..c996aeb --- /dev/null +++ b/nix/users/profiles/dev.nix @@ -0,0 +1,47 @@ +{ + config, + pkgs, + ... +}: +{ + home.packages = with pkgs; [ + aider-chat + basedpyright + llmPython.llm # llm and claude support + delve + dive # explore layers in docker images + docker + go-tools # collection of tools, https://github.com/dominikh/go-tools + golangci-lint + gopls + nil # nix lsp + nix-direnv # integration with direnv + nixfmt-rfc-style # new formatter + python3 + ruff + # ruff-lsp + rustup + uv + wireshark + ]; + + programs.direnv = { + enable = true; + nix-direnv.enable = true; + }; + + programs.go = { + enable = true; + goPath = ".local/share/pkg.go"; + goBin = ".local/bin.go"; + goPrivate = [ + "github.rbx.com/*" + "github.com/fcuny/*" + ]; + }; + + home.sessionPath = [ + config.home.sessionVariables.GOBIN + "${config.home.homeDirectory}/.local/bin" + ]; +} diff --git a/nix/users/fcuny/emacs.nix b/nix/users/profiles/emacs.nix index fcf1b8f..fcf1b8f 100644 --- a/nix/users/fcuny/emacs.nix +++ b/nix/users/profiles/emacs.nix diff --git a/nix/users/fcuny/git.nix b/nix/users/profiles/git.nix index ad96bfb..de066e2 100644 --- a/nix/users/fcuny/git.nix +++ b/nix/users/profiles/git.nix @@ -1,4 +1,12 @@ -{ lib, pkgs, ... }: +{ + config, + lib, + pkgs, + ... +}: +let + inherit (config) userinfo; +in { home.packages = with pkgs; [ gitAndTools.pre-commit @@ -27,8 +35,8 @@ options.features = "decorations side-by-side line-numbers"; }; - userName = "Franck Cuny"; - userEmail = "franck@fcuny.net"; + userName = lib.mkDefault userinfo.fullName; + userEmail = lib.mkDefault userinfo.email; aliases = { amend = "commit --amend"; @@ -68,7 +76,7 @@ ignores = [ ".DS_Store" - ".aider.chat.history.md" + ".aider.*" ".direnv" ".envrc" ]; diff --git a/nix/users/fcuny/k8s.nix b/nix/users/profiles/k8s.nix index ec59228..ec59228 100644 --- a/nix/users/fcuny/k8s.nix +++ b/nix/users/profiles/k8s.nix diff --git a/nix/users/fcuny/llm.nix b/nix/users/profiles/llm.nix index 2793373..2793373 100644 --- a/nix/users/fcuny/llm.nix +++ b/nix/users/profiles/llm.nix diff --git a/nix/users/profiles/mac.nix b/nix/users/profiles/mac.nix new file mode 100644 index 0000000..f27bcf3 --- /dev/null +++ b/nix/users/profiles/mac.nix @@ -0,0 +1,15 @@ +{ ... }: +{ + imports = [ + ./1password.nix + ./dev.nix + ./emacs.nix + ./git.nix + ./llm.nix + ./secrets.nix + ./shell.nix + ./ssh.nix + ]; + + xdg.enable = true; +} diff --git a/nix/users/fcuny/media.nix b/nix/users/profiles/media.nix index f0919a3..f0919a3 100644 --- a/nix/users/fcuny/media.nix +++ b/nix/users/profiles/media.nix diff --git a/nix/users/fcuny/nixos.nix b/nix/users/profiles/nixos.nix index a6c302f..a6c302f 100644 --- a/nix/users/fcuny/nixos.nix +++ b/nix/users/profiles/nixos.nix diff --git a/nix/users/fcuny/secrets.nix b/nix/users/profiles/secrets.nix index 65131df..65131df 100644 --- a/nix/users/fcuny/secrets.nix +++ b/nix/users/profiles/secrets.nix diff --git a/nix/users/fcuny/shell.nix b/nix/users/profiles/shell.nix index 269c617..269c617 100644 --- a/nix/users/fcuny/shell.nix +++ b/nix/users/profiles/shell.nix diff --git a/nix/users/fcuny/ssh.nix b/nix/users/profiles/ssh.nix index 322a8bc..322a8bc 100644 --- a/nix/users/fcuny/ssh.nix +++ b/nix/users/profiles/ssh.nix diff --git a/nix/users/fcuny/work.nix b/nix/users/profiles/work.nix index f502b6a..f502b6a 100644 --- a/nix/users/fcuny/work.nix +++ b/nix/users/profiles/work.nix |
