Migrate vaultwarden to flakes

This commit is contained in:
Vili Sinervä 2025-06-05 00:09:04 +03:00
parent 61227d07df
commit 0a557eadcb
Signed by: Vili Sinervä
SSH key fingerprint: SHA256:FladqYjaE4scJY3Hi+gnShZ6ygnTJgixy0I6BAoHyos
3 changed files with 40 additions and 6 deletions

View file

@ -1,12 +1,8 @@
{ ... }:
{
networking.hostName = "vaultwarden";
imports = [
../../shared/base.nix
../../shared/hardware/vm.nix
../../servers/vaultwarden.nix
];
# HARDWARE SPECIFIC
services.qemuGuest.enable = true;
}

View file

@ -0,0 +1,35 @@
{ lib, modulesPath, ... }:
{
system.stateVersion = "23.11";
imports = [
(modulesPath + "/profiles/qemu-guest.nix")
];
boot.initrd.availableKernelModules = [
"uhci_hcd"
"ehci_pci"
"ahci"
"virtio_pci"
"virtio_scsi"
"sd_mod"
"sr_mod"
];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
fileSystems."/" = {
device = "/dev/disk/by-uuid/22f0fb39-e264-450d-b575-9dedd2a02361";
fsType = "ext4";
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/A604-6A7B";
fsType = "vfat";
};
networking.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
}

View file

@ -1,6 +1,9 @@
{ ... }:
{
imports = [ ./cert-store-client.nix ];
imports = [
./utils/nginx-https-server.nix
./utils/cert-store-client.nix
];
services = {
vaultwarden = {