Compare commits
6 Commits
094b16678a
...
eda4821d07
Author | SHA1 | Date |
---|---|---|
Peder Bergebakken Sundt | eda4821d07 | |
Peder Bergebakken Sundt | 9c44d3ebf3 | |
Peder Bergebakken Sundt | d94e53e8b0 | |
Peder Bergebakken Sundt | cd015a26b8 | |
Peder Bergebakken Sundt | 8fefe84f3e | |
Peder Bergebakken Sundt | ad0d7cd166 |
|
@ -2,3 +2,4 @@
|
|||
export HOST_SHELL="$(command -v "$SHELL")"
|
||||
eval "$(nix print-dev-env .#remoteenv)"
|
||||
echo Entered "$(hostname --fqdn)"
|
||||
df -h /nix/store
|
||||
|
|
6
base.nix
6
base.nix
|
@ -55,11 +55,11 @@
|
|||
#nix.settings.allowed-users = [ "@builders" ]; # TODO: this
|
||||
nix.settings.allowed-users = [ "root" "pbsds" "@wheel" ]; # default is [ "*" ]
|
||||
nix.settings.trusted-users = [ "root" "pbsds" "@wheel" ];
|
||||
nix.settings.keep-derivations = true; # great with nix-diff
|
||||
nix.settings.keep-derivations = true; # keep .drv in store, great with nix-diff
|
||||
nix.settings.auto-optimise-store = true; # deduplicate with hardlinks, expensive. Alternative: nix-store --optimise
|
||||
nix.settings.max-silent-time = 3600;
|
||||
#nix.settings.keep-failed = true;
|
||||
#nix.settings.log-lines = 35;
|
||||
#nix.settings.keep-failed = true; # fills up $TMPDIR
|
||||
nix.settings.log-lines = 35;
|
||||
#nix.optimize.automatic = true; # periodic optimization
|
||||
nix.gc.automatic = true;
|
||||
nix.gc.dates = "weekly";
|
||||
|
|
|
@ -274,6 +274,7 @@
|
|||
hidpi = hw.common-hidpi;
|
||||
p1005 = ./hardware/printer/hp-laserjet-p1005.nix;
|
||||
au = ./profiles/auto-upgrade.nix;
|
||||
#rb = ./profiles/remote-builders.nix; # TODO
|
||||
nixld = ./profiles/nix-ld.nix;
|
||||
binfmt = ./profiles/binfmt-emu.nix;
|
||||
dns64 = { config, ... }: {
|
||||
|
@ -284,7 +285,7 @@
|
|||
};
|
||||
in builtins.mapAttrs (hostname: curried: curried hostname) {
|
||||
#hostname "domain" "system" inputs "state" [ modules ... ]
|
||||
noximilien = mk "pbsds.net" "x86_64-linux" inputs-2311 "22.11" [ au intel ];
|
||||
noximilien = mk "pbsds.net" "x86_64-linux" inputs-2405 "23.11" [ au intel ];
|
||||
brumlebasse = mk "pbsds.net" "x86_64-linux" inputs-2311 "23.11" [ au amd nspawn ];
|
||||
nord = mk "pbsds.net" "x86_64-linux" inputs-2405 "23.11" [ au intel-novga hw.common-gpu-intel-sandy-bridge rocm hidpi ];
|
||||
sopp = mk "pbsds.net" "x86_64-linux" inputs-2405 "23.11" [ au nixld intel cuda p1005 ];
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
#../../profiles/desktop/lutris.nix
|
||||
#../../profiles/desktop/flatpak.nix
|
||||
|
||||
../../profiles/remote-builders
|
||||
../../profiles/remote-builders.nix
|
||||
];
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ 57621 ]; # spotify local discovery
|
||||
|
|
|
@ -36,14 +36,14 @@ supportedFeatures = ["kvm","big-parallel","nixos-test"]
|
|||
ssh.listenPublicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILeOB/57N1fQPVorIUlkkJZaQduBo+4+km2Qbj4ebd/k"
|
||||
ssh.proxyJump = "isvegg.pvv.ntnu.no"
|
||||
|
||||
["eple.pbsds.net"]
|
||||
["eple.pbsds.net"] # r9 290x
|
||||
maxJobs = 3 # 12 threads 32GB
|
||||
speedFactor = 5
|
||||
supportedFeatures = ["kvm","big-parallel","nixos-test"]
|
||||
ssh.listenPublicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIH03MEINNnjBvtmvN2QsCDCLkvF9ow5FQJp9uiyQ1Iwi"
|
||||
ssh.proxyJump = "isvegg.pvv.ntnu.no"
|
||||
|
||||
["garp.pbsds.net"]
|
||||
["garp.pbsds.net"] # gtx 1080
|
||||
maxJobs = 2 # 8 threads 32GB
|
||||
speedFactor = 4
|
||||
supportedFeatures = ["kvm","big-parallel","nixos-test"]
|
||||
|
@ -56,7 +56,7 @@ speedFactor = 2
|
|||
ssh.listenPublicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJ3QhTGS03Sqm6OeCEz5AIGqJnBttKaBqMgNXp3Md7t4"
|
||||
ssh.userPublicKey = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQC7fYndgIXJM+tLSfkbprWc8ClOI58wlaZCg6I+wMYINeOwxLU24BmIyQAhNeqhHYBdXiyIAl5KN3+YajN1nx6zq2XPXLut31Xtf+0yMdRMX4rXgqOnsBeG4eTfNsPx+v7VNANth8dIADpk59Y9ioWB6JI6NF0wfkqrCSTpt2q9gpTA35MBe41hlaxqxYGq+PlfZyJbN4TJCORZROkjw1P6K+EoYUHTHmduMZSAnpzx5bTHL2r1VK1jLRL4q2O1LP9G7eVYUsZKxKznJqtAeoOGBL4OX2JeIXT51/pXTW0NNyVPELD6aUUZjK8aVK2JDXupXegYO8cHqwLaz7rZj3G8evGamSlGvAYR4Gwvvp4Du8ZRZVM3Gt1allhPMTLnm/gy9Lta35D8SHH0IUKWD3buo5HZliZgSMAvoSrT03vpuGILLoWEkTjpPT0qKIlBd/qlACBzKC9Wwmda5WWgMsfe0zP4zNLVdves5nkMrbY91TYSFM0FuDCaRsK5Mrhx7i0= root@noximilien"
|
||||
|
||||
["sopp.pbsds.net"]
|
||||
["sopp.pbsds.net"] # gtx 1080
|
||||
#maxJobs = 2 # 8 threads 32GB
|
||||
speedFactor = 3
|
||||
supportedFeatures = ["kvm","nixos-test"]
|
||||
|
@ -64,7 +64,7 @@ ssh.listenPort = 26
|
|||
ssh.listenPublicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDYB9H1pHB1vTBiGhO/GCQjn70BtVdQuJyXx38zN2CDj"
|
||||
ssh.userPublicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIL6eTQkxO/1XflHpGf3478+Z7HFYYaf1d4M6mvSK2nAU root@sopp"
|
||||
|
||||
["nord.pbsds.net"]
|
||||
["nord.pbsds.net"] # rx 580
|
||||
#maxJobs = 1 # 4 threads 32GB
|
||||
speedFactor = 2
|
||||
supportedFeatures = ["kvm","nixos-test"]
|
||||
|
@ -72,7 +72,7 @@ ssh.listenPort = 24
|
|||
ssh.listenPublicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIBSdIUtUfAxnVbPDmDDFdP2S3Wd3+CC8IfZAANJ76oh"
|
||||
ssh.userPublicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINnS1TmV9q7n+s7+RouuB6vQllnhqNCE1RqPmTMJ2/29 root@nord"
|
||||
|
||||
["rocm.pbsds.net"]
|
||||
["rocm.pbsds.net"] # gtx 3070 laptop edition
|
||||
#maxJobs = 1 # 16 threads 32GB
|
||||
speedFactor = 5
|
||||
ssh.listenUser = "pbsds"
|
||||
|
@ -83,7 +83,7 @@ ssh.userPublicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIF4v1+FbiEa6Mohpf3/Una5
|
|||
|
||||
["isvegg.pvv.ntnu.no"]
|
||||
# maxJobs = 1 # 4 threads 16GB
|
||||
speedFactor = 2
|
||||
speedFactor = 1
|
||||
ssh.listenUser = "pederbs"
|
||||
ssh.listenPublicKey = "ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBGurF7rdnrDP/VgIK2Tx38of+bX/QGCGL+alrWnZ1Ca5llGneMulUt1RB9xZzNLHiaWIE+HOP0i4spEaeZhilfU="
|
||||
|
||||
|
@ -99,6 +99,12 @@ speedFactor = 1
|
|||
ssh.listenUser = "pederbs"
|
||||
ssh.listenPublicKey = "ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBKw92q3eB5HZbKJN3p+80MtirqcXPu01USE9LnoGYJuDvko1udjIy4UR0wAwELqgs+r7mJyuQPeXmOZKwjHP6tM="
|
||||
|
||||
["orchid.pvv.ntnu.no"] # GTX 1060
|
||||
maxJobs = 2 # 12 threads 16GB
|
||||
speedFactor = 2
|
||||
ssh.listenUser = "pederbs"
|
||||
ssh.listenPublicKey = "ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBJXBrUdX0iFCkADXvqrcljEu0gxFOX+uOy6kqNx15WcNI+vt/YI7e/K4COf6LxuLsplLrrymcPdqsteAeWnPszs="
|
||||
|
||||
["hildring.pvv.ntnu.no"]
|
||||
ssh.listenUser = "pederbs"
|
||||
ssh.listenPublicKey = "ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBGurF7rdnrDP/VgIK2Tx38of+bX/QGCGL+alrWnZ1Ca5llGneMulUt1RB9xZzNLHiaWIE+HOP0i4spEaeZhilfU="
|
||||
|
@ -136,133 +142,133 @@ ssh.listenPublicKey = "ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIb
|
|||
#ssh.egressPrivateKey = "/run/secrets/nix-community-builders-ssh-key";
|
||||
|
||||
|
||||
["clab01.idi.ntnu.no"]
|
||||
["clab01.idi.ntnu.no"] # gtx 4090
|
||||
#maxJobs = 1 # 24 threads 64GB
|
||||
ssh.listenUser = "pederbs"
|
||||
ssh.listenPublicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJfJV5Ov3D0qErVnbQZ3oxhA3i0zuAmjmVUf3JV08aSg"
|
||||
ssh.proxyJump = "isvegg.pvv.ntnu.no"
|
||||
|
||||
["clab02.idi.ntnu.no"]
|
||||
["clab02.idi.ntnu.no"] # gtx 4090
|
||||
#maxJobs = 1 # 24 threads 64GB
|
||||
ssh.listenUser = "pederbs"
|
||||
ssh.listenPublicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHNhQPotOGWZdFeW4B3eDYGcaF/2xB56hNL+x3QEURa6"
|
||||
ssh.proxyJump = "isvegg.pvv.ntnu.no"
|
||||
|
||||
["clab03.idi.ntnu.no"]
|
||||
["clab03.idi.ntnu.no"] # gtx 4090
|
||||
#maxJobs = 1 # 24 threads 64GB
|
||||
ssh.listenUser = "pederbs"
|
||||
ssh.listenPublicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIH5srnYPuULchLvlCOlWOwrhQEBznQn61kj0Oawnp44Y"
|
||||
ssh.proxyJump = "isvegg.pvv.ntnu.no"
|
||||
|
||||
["clab04.idi.ntnu.no"]
|
||||
["clab04.idi.ntnu.no"] # gtx 4090
|
||||
#maxJobs = 1 # 24 threads 64GB
|
||||
ssh.listenUser = "pederbs"
|
||||
ssh.listenPublicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICgMxLYYiYb/6IAH6nyc9eGXASgDPTE2JcRZ9ODjhQt5"
|
||||
ssh.proxyJump = "isvegg.pvv.ntnu.no"
|
||||
|
||||
["clab05.idi.ntnu.no"]
|
||||
["clab05.idi.ntnu.no"] # gtx 4090
|
||||
#maxJobs = 1 # 24 threads 64GB
|
||||
ssh.listenUser = "pederbs"
|
||||
ssh.listenPublicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHw4h4dH689bLYWjrhhsvfljyWfUEClPa1Kb0cYxLRaD"
|
||||
ssh.proxyJump = "isvegg.pvv.ntnu.no"
|
||||
|
||||
["clab06.idi.ntnu.no"]
|
||||
["clab06.idi.ntnu.no"] # gtx 4090
|
||||
#maxJobs = 1 # 24 threads 64GB
|
||||
ssh.listenUser = "pederbs"
|
||||
ssh.listenPublicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDVZ394P3124lSxkzVodFqbindIvCB3kcn4YcgbaPrAs"
|
||||
ssh.proxyJump = "isvegg.pvv.ntnu.no"
|
||||
|
||||
["clab07.idi.ntnu.no"]
|
||||
["clab07.idi.ntnu.no"] # gtx 4090
|
||||
#maxJobs = 1 # 24 threads 64GB
|
||||
ssh.listenUser = "pederbs"
|
||||
ssh.listenPublicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILKQfcOmWC73bmE2mlWEcXFHiDUhsYWA7Xy9Dtq8kKmn"
|
||||
ssh.proxyJump = "isvegg.pvv.ntnu.no"
|
||||
|
||||
["clab08.idi.ntnu.no"]
|
||||
["clab08.idi.ntnu.no"] # gtx 4090
|
||||
#maxJobs = 1 # 24 threads 64GB
|
||||
ssh.listenUser = "pederbs"
|
||||
ssh.listenPublicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKlyZq3uTBCgkvPgs6nWRzsdhHmXHph14dmYWgt1vuBx"
|
||||
ssh.proxyJump = "isvegg.pvv.ntnu.no"
|
||||
|
||||
["clab09.idi.ntnu.no"]
|
||||
["clab09.idi.ntnu.no"] # gtx 4090
|
||||
#maxJobs = 1 # 24 threads 64GB
|
||||
ssh.listenUser = "pederbs"
|
||||
ssh.listenPublicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAj4eXT/k7iiUYx+CXq5ShLWm1N6SNO23EIs4xYEaQaW"
|
||||
ssh.proxyJump = "isvegg.pvv.ntnu.no"
|
||||
|
||||
["clab10.idi.ntnu.no"]
|
||||
["clab10.idi.ntnu.no"] # gtx 4090
|
||||
#maxJobs = 1 # 24 threads 64GB
|
||||
ssh.listenUser = "pederbs"
|
||||
ssh.listenPublicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIG5xEUkiwXWaUCA+QfMDq2vHfXKzcpXlrHpJMNQ8EU+K"
|
||||
ssh.proxyJump = "isvegg.pvv.ntnu.no"
|
||||
|
||||
["clab11.idi.ntnu.no"]
|
||||
["clab11.idi.ntnu.no"] # gtx 4090
|
||||
#maxJobs = 1 # 24 threads 64GB
|
||||
ssh.listenUser = "pederbs"
|
||||
ssh.listenPublicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFlKZhdQBrjafzzwdRR3arem3TXnnPucQskd7RWW9L5V"
|
||||
ssh.proxyJump = "isvegg.pvv.ntnu.no"
|
||||
|
||||
["clab12.idi.ntnu.no"]
|
||||
["clab12.idi.ntnu.no"] # gtx 4090
|
||||
#maxJobs = 1 # 24 threads 64GB
|
||||
ssh.listenUser = "pederbs"
|
||||
ssh.listenPublicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDEr2zGzev8JffE67Hkb3Qli7K0kzVdu8VXxJW47PK7m"
|
||||
ssh.proxyJump = "isvegg.pvv.ntnu.no"
|
||||
|
||||
["clab13.idi.ntnu.no"]
|
||||
["clab13.idi.ntnu.no"] # gtx 4090
|
||||
#maxJobs = 1 # 24 threads 64GB
|
||||
ssh.listenUser = "pederbs"
|
||||
ssh.listenPublicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIZgIhgpMCdegJaW6Huad7Dj4YfyR8Zhi1UmDsgcJYK2"
|
||||
ssh.proxyJump = "isvegg.pvv.ntnu.no"
|
||||
|
||||
["clab14.idi.ntnu.no"]
|
||||
["clab14.idi.ntnu.no"] # gtx 4090
|
||||
#maxJobs = 1 # 24 threads 64GB
|
||||
ssh.listenUser = "pederbs"
|
||||
ssh.listenPublicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIL3pAYx5rtbaUCf4xsiy+7/qKqnGMnSa9KCp42j+XmEh"
|
||||
ssh.proxyJump = "isvegg.pvv.ntnu.no"
|
||||
|
||||
["clab15.idi.ntnu.no"]
|
||||
["clab15.idi.ntnu.no"] # gtx 4090
|
||||
#maxJobs = 1 # 24 threads 64GB
|
||||
ssh.listenUser = "pederbs"
|
||||
ssh.listenPublicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIP7XwwhLJGwK+a7zShr2Ok9f2GlvPkP+FxKdbGYsNHtd"
|
||||
ssh.proxyJump = "isvegg.pvv.ntnu.no"
|
||||
|
||||
["clab16.idi.ntnu.no"]
|
||||
["clab16.idi.ntnu.no"] # gtx 4090
|
||||
#maxJobs = 1 # 24 threads 64GB
|
||||
ssh.listenUser = "pederbs"
|
||||
ssh.listenPublicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJKAaMXBAYsDd2QQOAQhXAAJCejbylQNLI9KsN3/EsY+"
|
||||
ssh.proxyJump = "isvegg.pvv.ntnu.no"
|
||||
|
||||
["clab20.idi.ntnu.no"]
|
||||
["clab20.idi.ntnu.no"] # gtx 4090
|
||||
#maxJobs = 1 # 24 threads 64GB
|
||||
ssh.listenUser = "pederbs"
|
||||
ssh.listenPublicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEGBbcKU5uDTgaQoREjaNuzQkCKNm5wlnhln6ZNiL3o2"
|
||||
ssh.proxyJump = "isvegg.pvv.ntnu.no"
|
||||
|
||||
["clab22.idi.ntnu.no"]
|
||||
["clab22.idi.ntnu.no"] # gtx 4090
|
||||
#maxJobs = 1 # 24 threads 64GB
|
||||
ssh.listenUser = "pederbs"
|
||||
ssh.listenPublicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMHlaYq184VDBoEOtaIIu2jnuBihhWiGPlyku0SMKORG"
|
||||
ssh.proxyJump = "isvegg.pvv.ntnu.no"
|
||||
|
||||
["clab23.idi.ntnu.no"]
|
||||
["clab23.idi.ntnu.no"] # gtx 4090
|
||||
#maxJobs = 1 # 24 threads 64GB
|
||||
ssh.listenUser = "pederbs"
|
||||
ssh.listenPublicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAsIRgqoFF900olTCy6DSrFMpZyRmtK6aVP2oYQhNi8g"
|
||||
ssh.proxyJump = "isvegg.pvv.ntnu.no"
|
||||
|
||||
["clab24.idi.ntnu.no"]
|
||||
["clab24.idi.ntnu.no"] # gtx 4090
|
||||
#maxJobs = 1 # 24 threads 64GB
|
||||
ssh.listenUser = "pederbs"
|
||||
ssh.listenPublicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICqh/Sp13OcUnZ8gVgiylcLsqAgIw+twQG92GyZK3FBZ"
|
||||
ssh.proxyJump = "isvegg.pvv.ntnu.no"
|
||||
|
||||
["clab25.idi.ntnu.no"]
|
||||
["clab25.idi.ntnu.no"] # gtx 4090
|
||||
#maxJobs = 1 # 24 threads 64GB
|
||||
ssh.listenUser = "pederbs"
|
||||
ssh.listenPublicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOdL5coXj0geu9O1cMLdYuUE0TWlIkKLNj71/XF0e8eg"
|
||||
ssh.proxyJump = "isvegg.pvv.ntnu.no"
|
||||
|
||||
["clab26.idi.ntnu.no"]
|
||||
["clab26.idi.ntnu.no"] # gtx 4090
|
||||
#maxJobs = 1 # 24 threads 64GB
|
||||
ssh.listenUser = "pederbs"
|
||||
ssh.listenPublicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINqqxg0hVT/gPBM1xqrR9QtMRHVBZDYWZ3pzbJv9MHUG"
|
||||
|
|
|
@ -19,6 +19,8 @@
|
|||
#../../profiles/oci/podman.nix
|
||||
#../../profiles/oci/docker.nix
|
||||
|
||||
#../../profiles/vpn-pbsds/tailscale.nix
|
||||
|
||||
../../users/pbsds
|
||||
|
||||
../../profiles/mounts/freon-nfs.nix
|
||||
|
|
|
@ -73,7 +73,7 @@
|
|||
../../profiles/http/docs
|
||||
../../profiles/http/docs/pdoc.nix
|
||||
../../profiles/http/docs/python-docs.nix
|
||||
../../profiles/http/docs/nixpkgs.nix
|
||||
#../../profiles/http/docs/nixpkgs.nix # TODO: fix
|
||||
../../profiles/http/docs/home-manager.nix
|
||||
#../../profiles/http/docs/linux-docs.nix # TODO: fix
|
||||
../../profiles/http/docs/programs.nix
|
||||
|
|
22
justfile
22
justfile
|
@ -3,10 +3,10 @@ export GUM_FILTER_HEIGHT := "15"
|
|||
@_default:
|
||||
just "$(gum filter --placeholder "Pick a recipie..." $(just --summary --unsorted))"
|
||||
|
||||
eval hostname=`just _a-host`:
|
||||
eval hostname=`just _a_host`:
|
||||
nix eval .#nixosConfigurations.{{hostname}}.config.system.build.toplevel.outPath
|
||||
|
||||
report hostname=`just _a-host`:
|
||||
report hostname=`just _a_host`:
|
||||
nix eval .#nixosReports.{{hostname}} --json | yq . --yaml-output | bat --language yaml --style plain --paging never
|
||||
|
||||
reports:
|
||||
|
@ -21,24 +21,27 @@ update:
|
|||
@echo "$(date +%Y-%m-%d)" > .direnv/pull-date
|
||||
|
||||
build:
|
||||
nixos-rebuild build --flake .
|
||||
nixos-rebuild build --accept-flake-config --show-trace --flake .
|
||||
|
||||
test:
|
||||
sudo nixos-rebuild test --flake .
|
||||
sudo nixos-rebuild test --accept-flake-config --show-trace --flake .
|
||||
|
||||
switch:
|
||||
sudo nixos-rebuild switch --flake .
|
||||
sudo nixos-rebuild switch --accept-flake-config --show-trace --flake .
|
||||
|
||||
boot:
|
||||
sudo nixos-rebuild boot --flake .
|
||||
sudo nixos-rebuild boot --accept-flake-config --show-trace --flake .
|
||||
|
||||
push hostname=`just _a-host` cmd=`gum choose test switch boot --header "Select mode..."`:
|
||||
push hostname=`just _a_host` cmd=`gum choose test switch boot --header "Select mode..."`:
|
||||
nixos-rebuild build --flake .#{{hostname}}
|
||||
@echo pushing...
|
||||
NIX_NO_NOM=1 NIX_SSHOPTS="-tt" nixos-rebuild {{cmd}} --flake .#{{hostname}} --use-remote-sudo --target-host $(nix eval .#nixosReports.{{hostname}}.fqdn --json | jq . -r) --use-substitutes
|
||||
|
||||
@_a-host:
|
||||
nix eval .#nixosReports --apply builtins.attrNames --json 2>/dev/null | jq '.[]' -r | gum filter --placeholder "Pick a host..."
|
||||
inspect:
|
||||
nix run -- nixpkgs#nix-inspect -p .
|
||||
|
||||
@_a_host:
|
||||
nix eval .#nixosConfigurations --apply builtins.attrNames --json 2>/dev/null | jq '.[]' -r | gum filter --placeholder "Pick a host..."
|
||||
|
||||
@remote-current:
|
||||
>&2 echo Current remote: $(remote-host)
|
||||
|
@ -59,6 +62,7 @@ push hostname=`just _a-host` cmd=`gum choose test switch boot --header "Select m
|
|||
remote label=`just _a-remote-label` cmd=`printf "just %s\n" $(just --summary --unsorted) | gum filter --placeholder "Pick a recipie..."`:
|
||||
remote --label={{label}} {{cmd}}
|
||||
|
||||
# TODO: packaged as nix-web
|
||||
@gorgon:
|
||||
# https://codeberg.org/gorgon/gorgon/src/branch/main/nix-web
|
||||
# https://discourse.nixos.org/t/a-web-ui-for-the-nix-store-early-beta/35762
|
||||
|
|
|
@ -7,17 +7,16 @@
|
|||
#disabledModules = [ "services/web-apps/invidious.nix" ];
|
||||
##imports = [ <nixos-unstable/nixos/modules/services/web-apps/invidious.nix> ];
|
||||
#imports = [ ("${inputs.unstable}/nixos/modules/services/web-apps/invidious.nix") ];
|
||||
services.invidious.package = pkgs.unstable.invidious;
|
||||
/* services.invidious.package = pkgs.unstable.invidious; */
|
||||
/**/
|
||||
|
||||
services.invidious = {
|
||||
enable = true;
|
||||
domain = mkDomain "invidious";
|
||||
address = "127.0.0.1";
|
||||
port = 4765;
|
||||
# TODO: nginx.enable = true;
|
||||
settings = {
|
||||
#host_binding = lib.mkForce "127.0.0.1";
|
||||
host_binding = "127.0.0.1";
|
||||
external_port = 443;
|
||||
https_only = true;
|
||||
statistics_enabled = false; # api endpoint required for public instances
|
||||
|
@ -25,7 +24,8 @@
|
|||
login_enabled = false;
|
||||
#admins = ["pbsds"];
|
||||
banner = "spis meg";
|
||||
#db.user = "invidious";
|
||||
db.user = "invidious"; # workaround for stateVersion 23.11
|
||||
db.dbname = "invidious"; # workaround for stateVersion 23.11
|
||||
default_user_preferences = {
|
||||
#feed_menu = ["Popular", "Trending", "Subscriptions", "Playlists"]
|
||||
feed_menu = ["Trending" "Subscriptions" "Playlists"];
|
||||
|
|
|
@ -65,6 +65,7 @@
|
|||
vgmstream
|
||||
ffmpeg-full
|
||||
|
||||
(pkgs.termsvg or pkgs.unstable.termsvg)
|
||||
|
||||
lolcat
|
||||
toilet
|
||||
|
@ -87,7 +88,7 @@
|
|||
unstable.nix-init
|
||||
unstable.deadnix
|
||||
unstable.statix
|
||||
(pkgs.nixfmt-rfc-style or unstable.nixfmt-rfc-style or null)
|
||||
(unstable.nixfmt-rfc-style or pkgs.nixfmt-rfc-style or null)
|
||||
nurl
|
||||
manix
|
||||
#comma # collides with nix-index-database
|
||||
|
|
|
@ -17,10 +17,10 @@
|
|||
programs.ssh.matchBlocks = {
|
||||
"*".serverAliveInterval = 10;
|
||||
"*".serverAliveCountMax = 3;
|
||||
"github.com".forwardX11 = false;
|
||||
"gitea.*".forwardX11 = false;
|
||||
"gogs.*".forwardX11 = false;
|
||||
"git.*".forwardX11 = false;
|
||||
"gitea.*".forwardX11 = false;
|
||||
"github.com".forwardX11 = false;
|
||||
"gogs.*".forwardX11 = false;
|
||||
"*.pbsds.net".forwardX11 = true;
|
||||
"*.pbsds.net".forwardX11Trusted = true;
|
||||
"*.ntnu.no".user = "pederbs";
|
||||
|
@ -41,14 +41,18 @@
|
|||
"rocm.pbsds.net".proxyJump = "isvegg.pvv.ntnu.no";
|
||||
|
||||
# ntnu
|
||||
"stud.ntnu.no".hostname = "login.stud.ntnu.no";
|
||||
"garmr.idi.ntnu.no".forwardX11 = true;
|
||||
"heid.idi.ntnu.no" = {}; #.forwardX11 = true;
|
||||
"idun.hpc.ntnu.no" = {};
|
||||
"login.stud.ntnu.no" = {};
|
||||
"idun-login1.hpc.ntnu.no" = {};
|
||||
"snotra-login1.idi.ntnu.no" = {};
|
||||
"malvik.idi.ntnu.no" = {};
|
||||
"oppdal.idi.ntnu.no" = {};
|
||||
"selbu.idi.ntnu.no" = {};
|
||||
"malvik.idi.ntnu.no" = {};
|
||||
"heid.idi.ntnu.no".forwardX11 = true;
|
||||
"snotra.idi.ntnu.no" = {};
|
||||
"stud.ntnu.no".hostname = "login.stud.ntnu.no";
|
||||
/* "idun-login1.hpc.ntnu.no" = {}; */
|
||||
/* "idun-login2.hpc.ntnu.no" = {}; */
|
||||
/* "snotra-login1.idi.ntnu.no" = {}; */
|
||||
"clab01.idi.ntnu.no".proxyJump = "snotra-login1.idi.ntnu.no";
|
||||
"clab02.idi.ntnu.no".proxyJump = "snotra-login1.idi.ntnu.no";
|
||||
"clab03.idi.ntnu.no".proxyJump = "snotra-login1.idi.ntnu.no";
|
||||
|
@ -75,41 +79,48 @@
|
|||
"clab24.idi.ntnu.no".proxyJump = "snotra-login1.idi.ntnu.no";
|
||||
"clab25.idi.ntnu.no".proxyJump = "snotra-login1.idi.ntnu.no";
|
||||
"clab26.idi.ntnu.no".proxyJump = "snotra-login1.idi.ntnu.no";
|
||||
/* "clab27.idi.ntnu.no".proxyJump = "snotra-login1.idi.ntnu.no"; */
|
||||
/* "clab28.idi.ntnu.no".proxyJump = "snotra-login1.idi.ntnu.no"; */
|
||||
|
||||
# NVG
|
||||
"nvg.ntnu.no".hostname = "login.stud.ntnu.no";
|
||||
"login.stud.ntnu.no" = {};
|
||||
|
||||
# pvv
|
||||
"alphys.pvv.ntnu.no".user = "root";
|
||||
"balduzius.pvv.ntnu.no".user = "root";
|
||||
"bekkalokk.pvv.ntnu.no" = {}; # pvv-web pvv-wiki pvv-webmail
|
||||
"bicep.pvv.ntnu.no" = {}; # pvv-databases pvv-synapse
|
||||
"brzeczyszczykiewicz.pvv.ntnu.no" = {};
|
||||
"georg.pvv.ntnu.no" = {};
|
||||
"dash8.pvv.ntnu.no" = {};
|
||||
"demiurgen.pvv.ntnu.no" = {};
|
||||
"drolsum.pvv.ntnu.no" = {};
|
||||
"dvask-mgmt.pvv.ntnu.no".user = "root";
|
||||
"eirin.pvv.ntnu.no" = {};
|
||||
"essendrop.pvv.ntnu.no" = {};
|
||||
"fenris.pvv.ntnu.no".user = "root";
|
||||
"georg.pvv.ntnu.no" = {};
|
||||
"git.pvv.ntnu.no" = {};
|
||||
"hasub.pvv.ntnu.no" = {};
|
||||
"orchid.pvv.ntnu.no" = {};
|
||||
"hildring.pvv.ntnu.no" = {};
|
||||
"innovation.pvv.ntnu.no".user = "root";
|
||||
"isvegg.pvv.ntnu.no" = {};
|
||||
"knakelibrak.pvv.ntnu.no" = {};
|
||||
"lommel.pvv.ntnu.no" = {};
|
||||
"microbel.pvv.ntnu.no" = {};
|
||||
"monty.pvv.ntnu.no" = {};
|
||||
"nsa.pvv.ntnu.no" = {};
|
||||
"principal.pvv.ntnu.no".user = "root";
|
||||
"skrotnisse.pvv.ntnu.no" = {};
|
||||
"shark.pvv.ntnu.no" = {};
|
||||
"skrott.pvv.ntnu.no".user = "root";
|
||||
"sleipner.pvv.ntnu.no" = {};
|
||||
"sleipner.pvv.ntnu.no" = {};
|
||||
"spikkjeposche.pvv.ntnu.no" = {};
|
||||
"sleipner.pvv.ntnu.no".user = "root";
|
||||
"tallulah.pvv.ntnu.no" = {};
|
||||
"tim.pvv.ntnu.no" = {};
|
||||
"tom.pvv.ntnu.no" = {};
|
||||
"toriel.pvv.ntnu.no".user = "root";
|
||||
/* "alphys.pvv.ntnu.no".user = "root"; */
|
||||
/* "dash8.pvv.ntnu.no" = {}; */
|
||||
/* "essendrop.pvv.ntnu.no" = {}; */
|
||||
/* "fenris.pvv.ntnu.no".user = "root"; */
|
||||
/* "hasub.pvv.ntnu.no" = {}; */
|
||||
/* "knakelibrak.pvv.ntnu.no" = {}; */
|
||||
/* "monty.pvv.ntnu.no" = {}; */
|
||||
/* "nsa.pvv.ntnu.no" = {}; */
|
||||
/* "skrotnisse.pvv.ntnu.no" = {}; */
|
||||
/* "spikkjeposche.pvv.ntnu.no" = {}; */
|
||||
/* "tim.pvv.ntnu.no" = {}; */
|
||||
|
||||
# fyrkat
|
||||
#"fyrkat.no".hostname = "fridge.fyrkat.no";
|
||||
|
|
Loading…
Reference in New Issue