forked from fediversity/fediversity
Compare commits
8 commits
1e51393fb8
...
0da4c76336
| Author | SHA1 | Date | |
|---|---|---|---|
| 0da4c76336 | |||
| 653d8b7cf8 | |||
| f3d3c95540 | |||
| 375180748d | |||
| f1dbec8e60 | |||
| c4a8e70253 | |||
| 221c61955f | |||
| 9eabd56ee9 |
3 changed files with 16 additions and 6 deletions
|
|
@ -1,9 +1,13 @@
|
|||
{ modulesPath, ... }:
|
||||
|
||||
let
|
||||
# pulling this in manually over from module args resolves an infinite recursion
|
||||
sources = import ../../npins;
|
||||
in
|
||||
{
|
||||
_class = "nixos";
|
||||
|
||||
imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];
|
||||
imports = [
|
||||
"${sources.nixpkgs}/nixos/modules/profiles/qemu-guest.nix"
|
||||
];
|
||||
|
||||
boot = {
|
||||
initrd = {
|
||||
|
|
|
|||
|
|
@ -33,6 +33,10 @@ let
|
|||
;
|
||||
};
|
||||
|
||||
nixos.module.imports = [
|
||||
./common/proxmox-qemu-vm.nix
|
||||
];
|
||||
|
||||
imports =
|
||||
[
|
||||
./common/resource.nix
|
||||
|
|
@ -40,7 +44,6 @@ let
|
|||
++ (
|
||||
if isTestVm then
|
||||
[
|
||||
./common/proxmox-qemu-vm.nix
|
||||
../machines/operator/${vmName}
|
||||
{
|
||||
nixos.module.users.users.root.openssh.authorizedKeys.keys = [
|
||||
|
|
|
|||
|
|
@ -111,10 +111,13 @@ in
|
|||
};
|
||||
|
||||
vars.generators.attic = {
|
||||
runtimeInputs = [ pkgs.openssl ];
|
||||
runtimeInputs = [
|
||||
pkgs.coreutils
|
||||
pkgs.openssl
|
||||
];
|
||||
files.token.secret = true;
|
||||
script = ''
|
||||
genrsa -traditional 4096 | base64 -w0 > "$out"/token
|
||||
openssl genrsa -traditional 4096 | base64 -w0 > "$out"/token
|
||||
'';
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue