blob: 7a450d2ec276e4f5241b82cd17a4b315f0a573c6 (
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
|
# 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 /etc/nixos/configuration.nix'
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
];
# Nobody wants mutable state. :)
users.mutableUsers = false;
};
}
|