forked from Fediversity/Fediversity
Compare commits
5 commits
Author | SHA1 | Date | |
---|---|---|---|
9b5de67b8e | |||
d9f2d942b2 | |||
baaa990513 | |||
433d0dc278 | |||
fb376b4684 |
4 changed files with 25 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";
|
_class = "nixos";
|
||||||
|
|
||||||
imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];
|
imports = [
|
||||||
|
"${sources.nixpkgs}/nixos/modules/profiles/qemu-guest.nix"
|
||||||
|
];
|
||||||
|
|
||||||
boot = {
|
boot = {
|
||||||
initrd = {
|
initrd = {
|
||||||
|
|
|
@ -33,6 +33,10 @@ let
|
||||||
;
|
;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nixos.module.imports = [
|
||||||
|
./common/proxmox-qemu-vm.nix
|
||||||
|
];
|
||||||
|
|
||||||
imports =
|
imports =
|
||||||
[
|
[
|
||||||
./common/resource.nix
|
./common/resource.nix
|
||||||
|
@ -40,7 +44,6 @@ 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 = [
|
||||||
|
|
|
@ -48,7 +48,7 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
## NOTE: This is a physical machine, so is not covered by disko
|
## NOTE: This is a physical machine, so is not covered by disko
|
||||||
fileSystems."/" = {
|
fileSystems."/" = lib.mkForce {
|
||||||
device = "rpool/root";
|
device = "rpool/root";
|
||||||
fsType = "zfs";
|
fsType = "zfs";
|
||||||
};
|
};
|
||||||
|
@ -58,7 +58,7 @@ in
|
||||||
fsType = "zfs";
|
fsType = "zfs";
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/boot" = {
|
fileSystems."/boot" = lib.mkForce {
|
||||||
device = "/dev/disk/by-uuid/50B2-DD3F";
|
device = "/dev/disk/by-uuid/50B2-DD3F";
|
||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
options = [
|
options = [
|
||||||
|
|
|
@ -65,4 +65,16 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
config = {
|
||||||
|
## FIXME: This should clearly go somewhere else; and we should have a
|
||||||
|
## `staging` vs. `production` setting somewhere.
|
||||||
|
# use a priority higher than mkDefault for panel deployment to work,
|
||||||
|
# yet lower than default so this will not clash with the setting in tests.
|
||||||
|
security.acme = lib.modules.defaultOverridePriority {
|
||||||
|
acceptTerms = true;
|
||||||
|
defaults.email = "something@fediversity.net";
|
||||||
|
# defaults.server = "https://acme-staging-v02.api.letsencrypt.org/directory";
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue