diff options
| author | Christian <[email protected]> | 2026-05-25 15:27:53 -0500 |
|---|---|---|
| committer | Christian <[email protected]> | 2026-05-25 15:27:53 -0500 |
| commit | 0331a1b53c9586a92c6b7555cc37bed27839ffb7 (patch) | |
| tree | 3cbfb6dce2fabe3beccea77fdd9022df70b91b35 /modules | |
| parent | 745dc29a70fa0bd2fc6d648101b66dc6446a3b81 (diff) | |
Add fish as default shell with zoxide integration
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/common.nix | 8 | ||||
| -rw-r--r-- | modules/home/christian.nix | 9 |
2 files changed, 17 insertions, 0 deletions
diff --git a/modules/common.nix b/modules/common.nix index 3e14abb..56cc186 100644 --- a/modules/common.nix +++ b/modules/common.nix @@ -40,8 +40,11 @@ services.xserver.xkb.layout = "us"; # User + programs.fish.enable = true; + users.users.christian = { isNormalUser = true; + shell = pkgs.fish; extraGroups = [ "wheel" "video" @@ -73,6 +76,11 @@ dry-rebuild = "nix build ~/.config/nixos#nixosConfigurations.$(hostname).config.system.build.toplevel --no-link"; }; + programs.fish.shellAliases = { + rebuild = "sudo nixos-rebuild switch --flake ~/.config/nixos"; + dry-rebuild = "nix build ~/.config/nixos#nixosConfigurations.(hostname).config.system.build.toplevel --no-link"; + }; + programs.neovim = { enable = true; defaultEditor = true; diff --git a/modules/home/christian.nix b/modules/home/christian.nix index bae5e90..a0907ab 100644 --- a/modules/home/christian.nix +++ b/modules/home/christian.nix @@ -41,6 +41,15 @@ programs.bash.enable = true; + programs.fish = { + enable = true; + }; + + programs.zoxide = { + enable = true; + enableFishIntegration = true; + }; + programs.ssh = { enable = true; enableDefaultConfig = false; |
