blob: 5c4082f0e634bd29518ebd69270f984fc91ee86c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# Base config shared by all machines
{ pkgs, config, lib, ... }:
let
# TODO: inject into every config from outside
myLib = import ./lib.nix { inherit pkgs lib; };
myPkgs = import ./pkgs.nix { inherit pkgs lib myLib; };
in
{
config = {
# correctness before speed
nix.useSandbox = true;
programs.bash = {
loginShellInit = ''
alias c='vim /root/vuizvui/machines/profpatsch'
alias nsp='nix-shell -p'
alias nrs='nixos-rebuild switch'
alias tad='tmux attach -d'
'';
};
environment.systemPackages = with pkgs; [
curl # transfer data to/from a URL
file # file information
git # version control system
htop # top replacement
nmap # stats about clients in the network
rsync # file syncing tool
tmux # detachable terminal multiplexer
wget # the other URL file fetcher
myPkgs.vim # slight improvement over vi
];
i18n = {
defaultLocale = "en_US.UTF-8";
# TODO
# extraLocales = {
# LC_TIME = "de_DE.UTF-8"; #"en_DK.UTF-8";
# };
};
# Nobody wants mutable state. :)
users.mutableUsers = false;
};
}
|