From edcc3acea595d3045253c3c2fe2462599c1c54e0 Mon Sep 17 00:00:00 2001 From: Linnnus Date: Thu, 7 Sep 2023 16:53:41 +0200 Subject: Reorganize everything --- hosts/common.nix | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 hosts/common.nix (limited to 'hosts/common.nix') 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"; + }; +} -- cgit v1.2.3