diff options
author | Linnnus <[email protected]> | 2023-09-07 16:53:41 +0200 |
---|---|---|
committer | Linnnus <[email protected]> | 2023-09-07 16:53:41 +0200 |
commit | edcc3acea595d3045253c3c2fe2462599c1c54e0 (patch) | |
tree | 81e17fc5fe4f0a52d30e8d0209c6080cc77eda32 /hosts/common.nix | |
parent | d31d1bae8c38e145cdbafe105401d9528b416779 (diff) |
Reorganize everything
Diffstat (limited to 'hosts/common.nix')
-rw-r--r-- | hosts/common.nix | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/hosts/common.nix b/hosts/common.nix new file mode 100644 index 0000000..87c6b27 --- /dev/null +++ b/hosts/common.nix @@ -0,0 +1,34 @@ +# Shared configuraion regardless of hosts. + +{ pkgs, ... }: + +{ + # Enable de facto stable features. + nix.settings.experimental-features = [ "nix-command" "flakes" ]; + + # Set ZSH as the shell. + # https://nixos.wiki/wiki/Command_Shell#Changing_default_shelltrue + programs.zsh.enable = true; + environment.shells = [ pkgs.zsh ]; + users.users.linus.shell = pkgs.zsh; + + # Very basic system administration tools. + environment.systemPackages = with pkgs; [ + tree + jc + jq + vim + comma + curl + ]; + + # Aliases that are burned into my muscle memory. + environment.shellAliases = { + "mv" = "mv -i"; + "rm" = "rm -i"; + "cp" = "cp -i"; + "ls" = "ls -A --color=auto"; + "grep" = "grep --color=auto"; + "file" = "file --no-dereference"; + }; +} |