Compare commits

..

6 commits

Author SHA1 Message Date
1e51393fb8
moar extraDependencies 2025-07-03 17:07:27 +02:00
099484d8f4
[wip] handling env file (still fails)
rm unused dep nix-templating

fix imports
2025-07-03 17:07:27 +02:00
152548535e
use templating fork 2025-07-03 17:06:54 +02:00
7763c4db1f
add tests, fix some things
upgrade memory to resolve oom
2025-07-03 17:06:54 +02:00
df35afcca1
move from dev to operator
revert

add qemu import
2025-07-03 17:06:04 +02:00
24e1a092c4
WIP: add attic cache, see #92
flesh out attic

TODO keys nginx-port testing

fix key

fix key
2025-07-03 17:06:04 +02:00
3 changed files with 6 additions and 16 deletions

View file

@ -1,13 +1,9 @@
let { modulesPath, ... }:
# pulling this in manually over from module args resolves an infinite recursion
sources = import ../../npins;
in
{ {
_class = "nixos"; _class = "nixos";
imports = [ imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];
"${sources.nixpkgs}/nixos/modules/profiles/qemu-guest.nix"
];
boot = { boot = {
initrd = { initrd = {

View file

@ -33,10 +33,6 @@ let
; ;
}; };
nixos.module.imports = [
./common/proxmox-qemu-vm.nix
];
imports = imports =
[ [
./common/resource.nix ./common/resource.nix
@ -44,6 +40,7 @@ let
++ ( ++ (
if isTestVm then if isTestVm then
[ [
./common/proxmox-qemu-vm.nix
../machines/operator/${vmName} ../machines/operator/${vmName}
{ {
nixos.module.users.users.root.openssh.authorizedKeys.keys = [ nixos.module.users.users.root.openssh.authorizedKeys.keys = [

View file

@ -111,13 +111,10 @@ in
}; };
vars.generators.attic = { vars.generators.attic = {
runtimeInputs = [ runtimeInputs = [ pkgs.openssl ];
pkgs.coreutils
pkgs.openssl
];
files.token.secret = true; files.token.secret = true;
script = '' script = ''
openssl genrsa -traditional 4096 | base64 -w0 > "$out"/token genrsa -traditional 4096 | base64 -w0 > "$out"/token
''; '';
}; };