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
|
{ 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 = {
|
||||||
|
|
|
||||||
|
|
@ -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 = [
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue