Commit Graph

372 Commits

Author SHA1 Message Date
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
Astro b31c7e005a rpi-netboot: enable audio 2022-03-17 01:07:42 +01:00
Astro 1f511243da rpi-netboot: doc kernel, clean up initrd, disable deviceTree 2022-03-17 00:46:17 +01:00
Astro 6c38f4e4f1 dacbert: mount / via nfs
to store ssh host key :)
2022-03-17 00:24:23 +01:00
Astro e8f1f0f404 dacbert: migrate to rpi-netboot 2022-03-17 00:24:05 +01:00
Astro 34c96c6768 nix-build: generate a tftproot 2022-03-16 23:16:02 +01:00
Astro 5a2202c9cd rpi-netboot: bump gpu_mem to 256 2022-03-16 22:37:52 +01:00
Astro f6e8c5c888 rpi-netboot: add kernel modules for debugging 2022-03-16 21:50:41 +01:00
Astro 89909fa8e4 rpi-netboot: move tftproot from flake.nix into module 2022-03-16 21:50:20 +01:00
Astro 52c6add73e rpi-netboot: produce boot dir; nix-build: enable atftp+nfs 2022-03-16 20:38:00 +01:00
Astro 39c7a9bf1f modules/autoupdate: fix system 2022-02-08 19:33:35 +01:00
Astro 18b68306d0 modules/autoupdate: catch $NEW==null 2022-02-08 19:17:44 +01:00
Ehmry - a02e4625da Add nix import and export to nncp 2022-02-07 13:19:55 +01:00
Astro 6ee303cebc modules/autoupdate: add update-from-hydra script 2022-01-25 23:32:02 +01:00
Astro 3a521f7673 modules/autoupdate: use nix copy to fetch new system from cache 2022-01-23 01:20:15 +01:00
Ehmry - 06f9033bdb Replace mapHqHosts and mapPublicHosts with mergeHostsFile 2022-01-18 23:19:02 +01:00
Astro e36f00c428 modules/autoupdate: move from ../config/ 2022-01-18 22:12:41 +01:00
Ehmry - 29da9eee7d Add c3d2.nncp options 2022-01-18 20:31:36 +01:00
Ehmry - 732ae81533 Add NNCP module 2022-01-18 20:31:33 +01:00
Ehmry - 84f896770e Refactor host registry 2022-01-16 13:26:37 +01:00
Ehmry - dd05418887 Refactor k-ot user 2022-01-16 12:31:43 +01:00
Ehmry - c2fbfef90f Reduce users to attrset of ssh keys 2022-01-16 12:31:43 +01:00
Ehmry - f066f4cb82 Split "lib" into "config" and "modules"
Separate modules that add options from modules that change
configuration.
2022-01-15 21:04:38 +01:00