Verified Commit 7be0a668 authored by Matthias Adamczyk's avatar Matthias Adamczyk
Browse files

common/desktop: Set a few environment and shell variables

parent 198842ea
Pipeline #384 failed with stages
in 4 minutes and 45 seconds
......@@ -10,6 +10,14 @@ in
time.timeZone = "Europe/Berlin";
environment.variables = {
EDITOR = "vim"; # fight me :^)
# automatically runs `nix-env -iA nixos.$package` when
# someone tries to run something that is not installed
NIX_AUTO_INSTALL = "1";
};
# Default packages to install for desktop hosts
nixpkgs.config.allowUnfree = true;
environment.systemPackages = with pkgs; [
......@@ -124,8 +132,11 @@ in
bash = {
shellAliases = {
".." = "cd ..";
use = "nix-shell -p";
apt = "echo -e 'please use nix-env -iA nixos.<packagename> instead to install packages.\nYou can search for packages at https://search.nixos.org'";
};
# Show a notification when a long running command has finished
undistractMe.enable = true;
};
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment