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