Commit Graph

372 Commits

Author SHA1 Message Date
Sandro - b7fe690365
disko: eval fix #3 2023-05-19 02:38:08 +02:00
Sandro - 19457597b1
disko: try to fix eval 2023-05-19 02:28:03 +02:00
Sandro - 4d386ecfdc
disko: fix default value 2023-05-19 02:25:00 +02:00
Sandro - 465abc2b03
disko: document constant 2023-05-19 02:02:40 +02:00
Sandro - 7e3a98d68f
disko: support multiple disks 2023-05-19 01:57:15 +02:00
Sandro - d8c0110ebc
Remove LimitNOFile increases as it is a bug in virtiofsd 2023-05-18 22:11:12 +02:00
Sandro - fcdb823c5c
backup: report restic progress, allow more open files 2023-05-18 18:36:25 +02:00
Sandro - efd124ac4f
Backup Hedgedoc 2023-05-18 18:36:16 +02:00
Sandro - 6276ff3f00
Fix eval, another try 2023-05-18 17:49:25 +02:00
Sandro - ba1905778e
backup: add extra paths 2023-05-18 17:15:45 +02:00
Sandro - 299a30d838
Backup matrix, ticker 2023-05-18 17:15:36 +02:00
Sandro - 26dce1e4cf
audio-server: fix eval 2023-05-18 16:19:57 +02:00
Sandro - e03f42925e
audio-server: add somafm-cli 2023-05-18 16:19:14 +02:00
Sandro - 0aa5340645
Fix kernel priority 2023-05-18 02:25:09 +02:00
Sandro - d1e793f4c0
rpi-netboot: fix kernel 2023-05-18 02:07:27 +02:00
Sandro - 2547cfe54b
Use options for restic backups 2023-05-18 02:06:44 +02:00
Sandro - 5fd87acd57
backup: start pg dump before restic backup 2023-05-17 19:05:53 +02:00
Sandro - dd489fe8cd
Add offsite restic backups, move to backup module 2023-05-17 10:20:38 +02:00
Sandro - d4024c74e8
rpi-netboot: don't use latest kernel 2023-05-16 23:24:00 +02:00
Sandro - c51146e013
audio-server: allow loading rtkit on headless systems 2023-05-16 23:18:07 +02:00
Sandro - a8a5870a02
audio-server: use rt kernel 2023-05-16 23:17:58 +02:00
Sandro - 86da3d11e0
audio-server: enable user pipewire 2023-05-16 18:50:07 +02:00
Sandro - 28ebefdf33
audio-server: add comment to be reminded that things are working 2023-05-15 23:49:23 +02:00
Sandro - f1fff05b2d
audio-server: cleanup overlays 2023-05-15 20:37:26 +02:00
Sandro - d6b3b5a3cd
disko: fix eval 2023-05-10 20:34:53 +02:00
Sandro - b69819df89
Switch to disko module 2023-05-08 23:33:12 +02:00
Sandro - 469c7fb207
audio-server: add rtkit to k-ot, install yt-dlp with youtube-dl alias 2023-05-02 21:51:12 +02:00
Sandro - 86e0c40fd4
audio-server: don't enable bluetooth by default
It coredumps on pipebert
2023-05-02 21:50:50 +02:00
Sandro - 4f2a08a5cb
audio-server: add ledfx overlays 2023-04-29 23:26:17 +02:00
Sandro - a23f73e88b
Move audio specific settings from pulsebert to audioserver 2023-04-29 23:05:39 +02:00
Sandro - 9b70709d50
disko: add WIP module 2023-04-29 23:05:17 +02:00
Sandro - ad86d6d59b
stats: move nginx status port to the same port as the node_exporter proxy 2023-04-24 20:13:05 +02:00
Sandro - d801ace08b
Don't import ssh-keys multiple times 2023-04-22 23:03:14 +02:00
Sandro - 009780d093
pulsebert: add ledfx 2023-04-15 02:37:48 +02:00
Sandro - 8860310068
stats: fix eval, fix default nginx status port 2023-04-11 01:37:34 +02:00
Sandro - 7c77a4c6f7
Merge monitoring into stats
Don't listen with nginx on port 80 for stats
2023-04-11 01:11:06 +02:00
Sandro - 7662f8e536
microvm-host: remove duplicated key 2023-04-09 21:13:35 +02:00
Sandro - b86bb8d067
Rename nix-serve to nix-cache 2023-04-03 20:34:04 +02:00
Sandro - 662f487311
proxy node_exporter through nginx and drop none local traffic 2023-03-28 01:27:24 +02:00
Sandro - 4a64497366
Fix microvm autostart list 2023-03-21 01:24:06 +01:00
Astro aadb6ae26e modules/cluster: add in server7 2023-03-06 20:40:04 +01:00
Astro 11f38c5e2d modules/microvm-defaults: init 2023-02-21 00:07:14 +01:00
Astro 0c52c5655e use deployment flake for cluster options 2023-02-10 01:18:19 +01:00
Marenz - 1cb36aeab9 Update 'modules/cluster/customization/options.nix' 2023-02-02 23:18:12 +01:00
Marenz - 44dce01261 Update 'modules/cluster/default.nix' 2023-02-01 21:12:17 +01:00
Astro 6ef686ff46 modules/cluster/customization/options: move types into separate file so that options can be merged on extendModules 2023-01-20 18:51:40 +01:00
Astro ea8bf43313 modules/cluster/customization/options: remove unused deployment.storage 2023-01-20 18:51:40 +01:00
Astro c19aa22b4c modules/cluster/deployment*.nix: move to modules/cluster/customization/
lets default.nix refer to options.nix
2023-01-20 18:51:37 +01:00
Astro 040a715402 modules/cluster/deployment*.nix: move to modules/cluster/customization/
lets default.nix refer to options.nix
2023-01-19 16:55:34 +01:00
Astro 870b1f38c1 modules/cluster: add skyflake user luulaatsch 2023-01-19 16:55:34 +01:00
Sandro - 6d1ecddb5f
Assert that ceph is not updated 2023-01-17 00:38:26 +01:00
Astro d89ec28ff3 modules/cluster: remove broken glusterfs setup 2023-01-13 01:35:20 +01:00
Astro 17cecf0049 modules/cluster/default: monitor ceph with collectd 2023-01-08 03:05:55 +01:00
Astro c9316ac41c modules/cluster: add ceph 2023-01-07 02:54:35 +01:00
Sandro - ca6fe29106
Fix conntrack issues in microvm
due to bad scaling with lower RAM
2023-01-05 22:13:59 +01:00
Sandro - 1173a83b77
Delete old known_hosts option 2023-01-04 22:36:18 +01:00
Sandro - 854385feb0
Create home with right permissions 2023-01-04 01:28:26 +01:00
Sandro - 4a69bb6f5e
Remove zfs options now in nixos-modules 2023-01-03 00:20:51 +01:00
Sandro - 42cc20ff5f
Migrate simd.arch to nixos-modules 2023-01-02 17:37:29 +01:00
Sandro - f8bccd8508
Format 2023-01-02 17:15:14 +01:00
Sandro - f6885a1432
Add todo 2022-12-27 02:29:36 +01:00
Sandro - a0d1053943
Turn off firmware for microvm 2022-12-26 04:02:08 +01:00
Sandro - 253720c398
Use latest zfs compatible kernel 2022-12-23 21:42:58 +01:00
Sandro - ae05bdb2dd
Create new root home dir 2022-12-23 21:42:58 +01:00
Sandro - 9597e7a816
microvm: don't mutate users in microvms 2022-12-22 21:56:36 +01:00
Sandro - 6b692d6e7b
Use writeShellScript 2022-12-22 21:56:25 +01:00
Sandro - 1db84c2429
DROP 2022-12-22 02:20:07 +01:00
Sandro - ea73362f0e
motd: fix infinite recursion 2022-12-22 01:52:09 +01:00
Sandro - 7e72e59a77
Move none module settings to config 2022-12-22 01:15:10 +01:00
Sandro - 0e6ffa51fa
Exclude rpi-netboot with graphical gnome from nox 2022-12-21 23:47:42 +01:00
Sandro - fe8683f01f
Drop c3d2.isInHq 2022-12-21 19:43:47 +01:00
Sandro - 0028e20c55
Fix eval, remove useless attr hosts in hostRegistry, hosts are now directly at hostRegistry 2022-12-20 07:20:39 +01:00
Sandro - aafc472a59
Handle nginx open firewall by nixos-modules 2022-12-20 04:32:18 +01:00
Sandro - c15bd0e155
Remove mostly unused host-registry and combine ssh public keys with users.nix 2022-12-20 04:11:52 +01:00
Sandro - 81d598cb40
Add en_us locale back 2022-12-19 02:27:42 +01:00
Sandro - fee4372499
Cleanup options 2022-12-19 01:08:36 +01:00
Sandro - d8f39ea06c
Turn on noXlibs 2022-12-19 00:15:19 +01:00
Sandro - 98d491d27e
Enable fzf globally 2022-12-19 00:10:21 +01:00
Sandro - d53f010043
Add dig everywhere 2022-12-18 23:42:30 +01:00
Sandro - e57371ae34
Try fixing missing root home directory 2022-12-18 22:33:18 +01:00
Sandro - 8caf765d3a
microvm: persist root bash history file 2022-12-18 22:18:08 +01:00
Sandro - 8e5f6731d4
Default microvm mounts to etc, home, var; random cleanups 2022-12-18 22:18:08 +01:00
Sandro - e43ce3b29b
hydra: combine default.nix and hydra.nix, remove nix store over ssh 2022-12-18 19:03:24 +01:00
Astro 7d18fad68a modules/cluster/default.nix: disable skyflake.debug for now 2022-12-18 03:20:13 +01:00
Sandro - c2d21103f8
Remove unused module 2022-12-16 21:55:47 +01:00
Sandro - 5cbd4ee6a5
Auto free nix store when almost full 2022-12-14 20:55:02 +01:00
Sandro - 5640331aef
Add tree globally 2022-12-12 23:51:35 +01:00
Astro 49b6b5dc4d modules/cluster/deployment: add option extraShares 2022-12-12 21:16:20 +01:00
Astro c63d8e3f15 modules/microvm: remove legacy nomad leftover 2022-12-12 01:45:53 +01:00
Sandro - 93806bd148
Remove old journalbeat config, enable more node-exporter modules 2022-12-10 20:51:53 +01:00
Sandro - ff04c649c3
Actually enable noXlibs 2022-12-09 22:41:39 +01:00
Sandro - 52161e0aa1
backup: compress postgres dumps 2022-12-04 22:06:19 +01:00
Astro 1ef51c1d32 modules/cluster/deployment: make microvm.hypervisor configurable
as requested by marenz
2022-12-04 21:32:16 +01:00
Sandro - b467bb4e74
Generate simd variants of each host, delete unused module 2022-12-04 08:55:28 +01:00
Sandro - 6b8d8541c6
Deadnix, statix, other cleanups 2022-12-04 08:55:27 +01:00
Sandro - c4241c25ab
Sort 2022-12-04 06:38:09 +01:00
Sandro - f97b96387d
Cleanup unused variable, remove global with lib 2022-12-04 06:38:09 +01:00
Astro d99d4129f3 modules/cluster/deployment: add operator to needForSpeed nomad affinity 2022-11-28 01:16:54 +01:00
Astro 07bfd31ee7 modules/cluster/deployment: disable nix.gc.automatic 2022-11-28 01:16:36 +01:00
Astro 18d0694b10 modules/cluster/default: add additional gcroots symlink 2022-11-28 00:49:14 +01:00
Astro e85c3d8c51 prometheus: redeploy 2022-11-27 01:38:44 +01:00
Astro 588bebc3cf modules/cluster/deployment-options: fix 2022-11-26 02:55:12 +01:00
Astro 9ad4bd0649 modules/cluster/deployment-options: fix networks 2022-11-26 02:53:32 +01:00
Astro e91e69b14a modules/cluster/deployment-options: add hacks to allow build on hydra 2022-11-26 02:41:51 +01:00
Astro 7bc3b49cc3 modules/cluster/deployment: let microvms specify their nets by providing just a default 2022-11-26 01:41:28 +01:00
Astro d95e924778 modules/cluster/default: remove debug output 2022-11-26 00:35:07 +01:00
Astro de9ce610e9 modules/cluster/deployment: add option deployment.needForSpeed 2022-11-26 00:34:41 +01:00
Astro ebf4e41b73 modules/cluster: start supporting multiple storages 2022-11-25 23:07:54 +01:00
Astro 7a19ac58e3 modules/cluster/default: add glusterfs big 2022-11-24 21:03:54 +01:00
Astro 79dcef419e modules/cluster/default: add server8 2022-11-24 19:37:42 +01:00
Astro 9fca77eb57 modules/cluster/deployment-options: let deployment.vcpu default to 4 2022-11-24 00:03:30 +01:00
Astro dbb7e552e5 modules/cluster: enable skyflake.debug 2022-11-21 21:25:58 +01:00
Astro 4cf2b62ebe modules/c3d2: remove nix.settings.auto-optimise-store
doesn't work with writableStoreOverlay
2022-11-21 19:41:25 +01:00
Astro 4b6fce111a modules/cluster: prepare for leon 2022-11-21 04:00:54 +01:00
Astro e359623c8c modules/cluster/default: set static uid for c3d2 2022-11-21 00:52:46 +01:00
Astro 5236be655b modules/cluster/deployment: set deployment.networks to the intelligent value 2022-11-20 21:39:00 +01:00
Astro 330aea7cae modules/cluster/deployment: fix path to glusterfs 2022-11-17 17:47:47 +01:00
Astro e15d786e5f modules/microvm-host: fix update-microvm script by removing old symlink
first
2022-11-08 00:21:42 +01:00
Astro 2c07006ef0 modules/cluster/deployment-options: revive option deployment.networks 2022-11-07 21:15:37 +01:00
Astro acdaf7eece modules/cluster/deployment: fixups 2022-11-06 14:58:42 +01:00
Astro 3566f340f4 modules/cluster/default: set skyflake.deploy.customizationModule 2022-11-06 13:52:37 +01:00
Astro cfeb74ee54 modules/cluster/deployment: init 2022-11-06 13:27:53 +01:00
Astro 3613ec82e6 mucbot: prepare skyflakification 2022-11-06 00:42:25 +01:00
Astro d2a02d7582 modules/nomad-microvm: rm 2022-11-06 00:42:25 +01:00
Astro 3aef94e4a0 modules/microvm: copyToServer with --no-check-sigs 2022-11-03 20:51:57 +01:00
Astro b01071e4a3 modules/cluster/network: rename from modules/cluster-network 2022-11-03 20:51:57 +01:00
Astro 44b8845894 server9, server10, hydra: prepare skyflake 2022-11-01 02:36:25 +01:00
Sandro - 4e28682f88
Fix eval 2022-10-31 21:14:42 +01:00
Sandro - 3eb015c186
Dump postgres databases for backups 2022-10-31 20:30:38 +01:00
Sandro - f2930ac63e
cp microvm symlinks to not accidentally mv the last good one 2022-10-27 21:36:12 +02:00
Astro 6a3145b315 modules/c3d2: disable journaltoMqtt because it broke 2022-10-13 20:47:29 +02:00
Sandro - ae1e318a9a
Turn automatic nix garbage collection off in microvm 2022-10-07 22:17:33 +02:00
Astro a22321a25d modules/cluster: fix settings scope 2022-09-29 18:24:08 +02:00
Astro 8f9004d906 modules/stats: pick more collectd plugins when isMetal 2022-09-29 18:24:08 +02:00
Sandro - caf8cd5583
c3d2: disable nixos doc 2022-09-28 21:16:59 +02:00
Sandro - a5a6a00bee
c3d2: fix locale 2022-09-28 21:16:50 +02:00
Sandro - e9639581a3
Merge config/ into modules/ 2022-09-28 21:10:09 +02:00
Astro d1abf63abb s/nixFlakes/nix/ 2022-09-27 02:01:38 +02:00
Astro 57a93e64ea modules/microvm: use ssh-ng in copyToServer 2022-09-26 00:04:50 +02:00
Astro 079784836a modules/{autoupdate,microvm-host}: let jq fail 2022-09-25 22:45:25 +02:00
Astro 9e7a7c9ee6 hydra: add harmonia on https://nix-serve.hq.c3d2.de 2022-09-25 22:04:59 +02:00
Astro fb766a7d22 config/c3d2, modules/microvm-host: update outdated nix.settings 2022-09-22 02:08:17 +02:00
Astro a2df57960d modules/microvm-host: let update-microvm handle more cases 2022-09-22 02:04:04 +02:00
Astro 5862adf9ed modules/microvm: refactor into modules/nomad-microvm 2022-09-22 02:04:04 +02:00
Astro 97e18154b1 modules/microvm: wiggle the nomad restart parameters 2022-09-21 21:26:45 +02:00
Astro 84d18b67eb modules/microvm: get hypervisors in nomad-jobs to shutdown gracefully 2022-09-21 21:26:45 +02:00
Astro e492f5a724 modules/microvm: disable dhcpcd 2022-09-18 22:15:59 +02:00
Astro ca3dd9729d modules/microvm: add defaultGateway for flpk 2022-09-18 01:44:49 +02:00
Sandro - dd75a52d28
Move audio groups to audio module 2022-09-17 22:16:40 +02:00
Astro 3a85bcf059 modules/rpi-netboot: work around long stp forward delays in some switches 2022-09-16 23:13:31 +02:00
Astro afc7a33eb5 modules/microvm-host: improve update-microvm behaviour 2022-09-16 00:11:00 +02:00
Astro f2a17e6e83 modules/c3d2: make vector mqtt client_id unique 2022-09-13 01:48:25 +02:00
Astro a68cf4d4c1 modules/c3d2: remove unnecessary journalToMqtt vector transform 2022-09-11 04:13:49 +02:00
Astro 3aa7960817 modules/c3d2: try to fix journalToMqtt topic 2022-09-09 01:17:29 +02:00
Astro 3eef152463 modules/c3d2: add c3d2.hq.journalToMqtt 2022-09-07 17:56:51 +02:00
Astro 999aefd931 modules/microvm: delete old tap iface on nomad prestart not poststop 2022-09-06 21:55:27 +02:00
Astro 5c493a8128 modules/autoupdate: always run nix-env before switch-to-configuration 2022-09-02 21:26:14 +02:00
Sandro - 1dbe3569b2
Allow diff-system to fail
When upgrading from older systems with nix 2.3.x the command is not yet
understood. Since it is purely informational a failure can be safely
ignored.
2022-08-21 22:44:05 +02:00
Astro 5a6d495f71 modules/microvm-host: add `update-microvm` command 2022-08-17 22:15:01 +02:00
Astro ac2a9e2246 server9, server10: refactor into modules/microvm-host 2022-08-17 21:00:01 +02:00
Astro 4bdd221264 modules.cluster: nomad 1.3.1 -> 1.3.3 2022-08-15 23:38:20 +02:00
Astro eab36bedff modules/cluste: add back wander 2022-07-19 20:59:53 +02:00
Sandro - 04b81dc85b
Revert "modules/cluster: install wander from nixos-unstable"
This reverts commit 45a66a2548.
2022-07-16 22:46:52 +02:00
Astro 222b41f5e2 modules/microvm: let nomad retry restarting 2022-07-16 03:11:41 +02:00
Astro 45a66a2548 modules/cluster: install wander from nixos-unstable 2022-07-15 18:47:18 +02:00
Astro 92f8103c6a modules/microvm: add stopTuntap to nomad jobs 2022-07-13 22:44:28 +02:00
Astro b310506e98 modules/cluster: add damon 2022-07-12 01:17:10 +02:00
Astro 1b618f0cd8 modules/microvm: c3d2.deployment.server = "nomad" 2022-07-10 20:50:07 +02:00
Sandro - 69a47c0b7f
Give k-ot pulse-access group for system wide pulseaudio 2022-07-09 15:42:45 +02:00
Astro 1c06777f95 modules/autoupdate: only diff-closures on update not boot 2022-07-07 03:25:50 +02:00
Astro e66181c341 move users.microvm.uid to cluster servers 2022-07-07 01:30:58 +02:00
Astro 08060dced9 improve nomad deployment 2022-07-07 01:21:39 +02:00
Astro 16c74bf177 modules/cluster: fix microvm on nomad 2022-07-05 03:15:17 +02:00
Astro 5707cd896f add nomad scripting 2022-07-05 00:08:03 +02:00
Astro 9170273a38 modules/cluster: join nomad instances over ipv4 2022-07-04 00:31:23 +02:00
Astro e8a66709b7 modules/cluster: init glusterfs and nomad 2022-07-04 00:22:11 +02:00
Astro 2792bd107c stream: microvmify 2022-06-28 03:26:08 +02:00
Sandro - 7d7c78bdca
Nuke nix-serv and use hydra direct 2022-06-23 20:55:46 +02:00
Astro 869eca9f54 modules/microvm: take off the brakes 2022-06-19 03:08:48 +02:00
Astro 84d1789020 set microvm.vcpu 2022-06-19 03:05:53 +02:00
Astro 903e10ae99 disable autoUpdate in microvms 2022-06-18 04:24:15 +02:00
Astro 36c2a1e5a6 modules/cluster-network: disable IPv6 SLAAC 2022-06-18 02:09:58 +02:00
Astro 72b9c23686 modules/cluster-network: break outa server10 2022-06-18 00:55:45 +02:00
Astro 6508600c80 modules/microvm: implement c3d2.deployment.autoNetSetup 2022-06-17 23:23:08 +02:00
Astro 6be5862f97 remove dead code 2022-06-17 22:37:57 +02:00
Astro dbc3e08961 nixosModules.microvm: init, and abstract existing microvms 2022-06-16 21:18:04 +02:00
Astro 41e52bb12b fixes 2022-06-13 15:58:25 +02:00
Sandro - aaddec8194
The big format and cleanup 2022-06-12 17:26:32 +02:00
Sandro - c042dd5c03
autoupdate: delete generations older than 21 days to not fill up the disks 2022-06-12 16:24:57 +02:00
Sandro - 53fce8e2c7
autoupdate: unify scripts, hardcode hostname from config 2022-06-12 16:24:44 +02:00
Astro ceca35caff modules/rpi-netboot: automatically reboot on panic 2022-06-10 19:00:37 +02:00
Astro 66627bbe9d rpi-netboot: move r/o nix/store config 2022-06-09 02:02:44 +02:00
Astro 6ede6e89b0 dacbert: move nfsroot, remove separate /nix/store mount 2022-06-09 01:41:33 +02:00
Astro 7e11e77515 flake.nix: fix memory leak by reorganizing hydraJobs 2022-05-31 22:08:52 +02:00
Astro 79aaf76d3d modules/rpi-netboot: disable conflicting generic-extlinux-compatible.enable for nixos-22.05 2022-05-31 19:57:14 +02:00
Astro a485d30c0b modules/autoupdate: add package diff to activationScripts 2022-04-20 00:32:23 +02:00
Astro 805e84f73f add hacks 2022-03-29 00:01:14 +02:00
Emery af8c1e2c9a programs.nncp moved upstream 2022-03-28 12:39:24 -05:00
Astro 701c6892ac rpi-netboot: disable networkmanager 2022-03-17 23:41:09 +01:00
Astro a3649184b9 rpi-netboot: add dtb, use linuxPackages_latest 2022-03-17 18:32:42 +01:00