23 lines
654 B
Nix
23 lines
654 B
Nix
{ self, pkgs, ... }:
|
|
let
|
|
username = import "${self}/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"
|
|
aliases['format-module'] = "nixpkgs-fmt **/*.nix"
|
|
aliases['vm'] = "vim"
|
|
$XONSH_COLOR_STYLE = 'solarized-light'
|
|
'';
|
|
};
|
|
users.users.${username} = {
|
|
shell = pkgs.xonsh;
|
|
};
|
|
}
|
|
|