nixos/modules/xonsh/default.nix
Andreas Zweili ebcb87f115 remove man-cache rebuild
it isn't really needed in xonsh.
Just the autocompletion is broken
2021-12-31 10:36:18 +01:00

20 lines
515 B
Nix

{ pkgs, ... }:
let
username = import ../../username.nix;
in
{
programs.xonsh = {
enable = true;
config = ''
aliases['management-server'] = "mosh ${username}@10.7.89.106 tmux a"
aliases['nix-generations'] = "sudo nix-env --list-generations --profile /nix/var/nix/profiles/system"
aliases['rebuild'] = "sudo nixos-rebuild -j auto switch"
aliases['find-garbage'] = "ls -l /nix/var/nix/gcroots/auto/ | sort"
'';
};
users.users.${username} = {
shell = pkgs.xonsh;
};
}