diff options
author | Martin Fischer <martin@push-f.com> | 2024-12-27 08:45:34 +0100 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2024-12-27 18:44:37 +0100 |
commit | 1b65ba7a838e422c9bf16ddcaf796a996fa51b6b (patch) | |
tree | d8ec8d965f955a7f9a5c2b5c98e8a430fb0e8b6f /nixos/profiles/common/basics.nix | |
parent | edda7ef46bf2ae7fde9511005b4e7d40648c7e24 (diff) |
refactor: introduce profiles
Diffstat (limited to 'nixos/profiles/common/basics.nix')
-rw-r--r-- | nixos/profiles/common/basics.nix | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/nixos/profiles/common/basics.nix b/nixos/profiles/common/basics.nix new file mode 100644 index 0000000..aa6eff9 --- /dev/null +++ b/nixos/profiles/common/basics.nix @@ -0,0 +1,35 @@ +{ config, pkgs, ... }: + +{ + environment.systemPackages = with pkgs; [ + git + vim + + file + htop + ripgrep + tree + # TODO: use a tree alternative that understands .gitignore + wget + ]; + + users.defaultUserShell = pkgs.zsh; + programs.zsh = { + enable = true; + + # Disabling compinit in /etc/zshrc so that we can call + # compinit with a custom zcompdump location in .zshrc. + enableGlobalCompInit = false; + }; + + environment.sessionVariables = + let + config = "$HOME/config/user"; + in + { + # Set environment variables for software that doesn't + # follow the XDG Base Directory specification. + + ZDOTDIR = "${config}/zsh"; + }; +} |