-
Notifications
You must be signed in to change notification settings - Fork 0
/
environment.nix
60 lines (57 loc) · 4.98 KB
/
environment.nix
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
50
51
52
53
54
55
56
57
58
59
60
{ config, pkgs, ... }:
{
environment.etc = {
"ssl/ca-certs.pem".source = "/etc/nixos/keys/ca-certs.pem";
"ssl/nginx.basic".source = "/etc/nixos/keys/nginx.basic";
"ssl/nginx.basic2".source = "/etc/nixos/keys/nginx.basic2";
"ssl/certs/dhparam.pem".source = "/etc/nixos/keys/dhparam.pem";
#"ssl/tomberek.info.pem".source = "/etc/nixos/tomberek.info.pem";
#"ssl/tomberek.info.private.key".source = "/etc/nixos/tomberek.info.private.key";
"tmux.conf".source = "/etc/nixos/tmux.conf";
"dovecot/passwd".source = "/etc/nixos/keys/dovecot";
};
environment.variables.EDITOR = pkgs.lib.mkForce "vim";
environment.variables.PATH = [ "$HOME/.local/bin" ];
environment.shellAliases = {
vi = "vim";
rekoot = "systemctl kexec &";
killx = "systemctl stop display-manager.service &";
startx = "systemctl start display-manager.service &";
nixos-rebuild-local = "nixos-rebuild switch -I nixpkgs=/etc/nixos/nixpkgs";
nixos-rebuild-local-fast = "nixos-rebuild switch --fast -I nixpkgs=/etc/nixos/nixpkgs";
nixos-rebuild-local-vm = "nixos-rebuild build-vm -I nixpkgs=/etc/nixos/nixpkgs";
nixos-rebuild-dry = "nixos-rebuild dry-run --fast -I nixpkgs=/etc/nixos/nixpkgs";
};
security.sudo.wheelNeedsPassword = false;
users.mutableUsers = false;
users.extraUsers.root =
{
passwordFile = "/etc/nixos/keys/root.pass";
openssh.authorizedKeys.keys = [ "ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBLG2m8T30u4zMfCVNUqHktu/VYW1O/kz4bfjE5kkaYHmzqNu2DBqC18BTX0Id7lgCT5NvqipfiW0VRFbSgOxjyc= dev@wonderland" "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCpxkqOi8C2xXyyf5U7Z2NQ8S9qkJRjrxgM/IX9G6P3V8ibFytZLV4xVufebRRvDO1JaOu4f+v/d+tvb+WZVxFdY5xwEIyoX8OEUNYC4KI3LkhgyiL2rUasyjyxGKR4s3VR3+WXhi8J/6hbTGzFLwvjFH9Vi5Sd/G+Pvv4h8tE7OjEL1vVPiPQfAwIWXtwF2J7espvywYE+AyaedJxuKGH2D/A4eG/xYnEyU2ufWW8z1TkLEX4tWE2lDJwC9P0PrsRK7YE2c+JnJX+VV4jNS6+Vu+yUywyNLAqWqk3Sx0+TH2RRGbJjiJDPcITg1xmF5E45LMBa28VFUmmvl424XkdH openpgp:0xECC016F9" ];
};
users.extraUsers.tom =
{
description = "Tom";
useDefaultShell = true;
isNormalUser = true;
passwordFile = "/etc/nixos/keys/tom.pass";
extraGroups = [ "postgres" "users" "wheel" "postfix" "kippo" "nginx" ];
openssh.authorizedKeys.keys = [
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDDSF4CzkvONzaze5m0huhLmED9fxQTtuyv7rszWI0ju/+U4Gq4+Sd800vFrADfnbiLS4hgK4pDw5D8dXxi74mPeXXZV4oomafCnlvW7tL7RidEXvkP2sr1ObgkuQ9K67hSqKjT21mCWdEN6WGHh9EtK5r3nXIzUWhATqDz/Al7sveDZ/gdapo+f3xnmpOu1mq+y5iOcRV7b98z/VaiWAvuG83toIBsK4Su/GWWfMNied9R2K2Z10NM3ART0Sk+4yqH4usJOieTQsLAq8Ykb3PAYDMVx41yy9QNcFnCyX/HJHFO/Q98BLQ2zPxVbBMwp99NrKLqrwkrVtrWbAttanm9 cardno:000607658414"
];
};
users.extraUsers.justin =
{
description = "DeiracDelta";
createHome = true;
useDefaultShell = true;
isNormalUser = true;
openssh.authorizedKeys.keys = [
''command="tmux new-session -A -s main" ssh-rsa AAAAB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rqMf/6Kf+kr/O0FOakrLaEHTDmONVTM=''
''command="tmux new-session -A -s main" ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC1ErJY6tI6cFyarf4ewkQhvvzfcps8g6Vwoo42w59f3Me412TBbhVuklf0wwxcElKg33KHJehMfOpHZhGuIN3B1Iq7KCRl4BgpOqGAO+Vw37BavCDD7iUMSd95tjxdiUbBGSouUUVhoV8i4rdHGU7NDyuglOd9vYcj+B7pD/xelW5Uc7Acmghf6GfxcdU0q4TUo8xOKB73v6m2A2VROiWYtUWS/QF5PL/QqHjdFSwzz63PieMrgKd6Nib+HUKC7RcyqHSuJQ/hlLLh2M0968bzFUT3HdvOS8G8wyMiENZ6bkhhWKSzhPGPtb9xlbfnBvrWrc/RPD/gV5IH+NTFK0r9''
''command="tmux new-session -A -s main" ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIM5DtmAk4jcG0i0m1HCnhienAMUgBQ25Srs5P9pRe1eL''
''command="tmux new-session -A -s main" ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDDSF4CzkvONzaze5m0huhLmED9fxQTtuyv7rszWI0ju/+U4Gq4+Sd800vFrADfnbiLS4hgK4pDw5D8dXxi74mPeXXZV4oomafCnlvW7tL7RidEXvkP2sr1ObgkuQ9K67hSqKjT21mCWdEN6WGHh9EtK5r3nXIzUWhATqDz/Al7sveDZ/gdapo+f3xnmpOu1mq+y5iOcRV7b98z/VaiWAvuG83toIBsK4Su/GWWfMNied9R2K2Z10NM3ART0Sk+4yqH4usJOieTQsLAq8Ykb3PAYDMVx41yy9QNcFnCyX/HJHFO/Q98BLQ2zPxVbBMwp99NrKLqrwkrVtrWbAttanm9 cardno:000607658414''
];
};
}