fix: aqua - networking

This commit is contained in:
Ryan Yin
2024-07-30 13:48:38 +08:00
parent 6670c5bd7d
commit e86d7a1020
3 changed files with 15 additions and 11 deletions

View File

@@ -1,4 +1,8 @@
{myvars, ...}:
{
mylib,
myvars,
...
}:
#############################################################
#
# Aquamarine - A NixOS VM running on Proxmox/KubeVirt
@@ -7,25 +11,28 @@
let
hostName = "aquamarine"; # Define your hostname.
in {
imports = [
];
imports = mylib.scanPaths ./.;
# supported file systems, so we can mount any removable disks with these filesystems
boot.supportedFilesystems = [
"ext4"
"btrfs"
"xfs"
#"zfs"
"ntfs"
"fat"
"vfat"
"exfat"
];
# boot.kernelModules = ["kvm-amd"];
# boot.extraModprobeConfig = "options kvm_amd nested=1"; # for amd cpu
boot.kernelModules = ["kvm-amd"];
boot.extraModprobeConfig = "options kvm_amd nested=1"; # for amd cpu
networking = {
inherit hostName;
inherit (myvars.networking) nameservers;
inherit (myvars.networking) defaultGateway nameservers;
inherit (myvars.networking.hostsInterface.${hostName}) interfaces;
networkmanager.enable = false;
};
# This value determines the NixOS release from which the default

View File

@@ -19,11 +19,8 @@
];
config = {
# backup only once a week inside all virtual machines
services.btrbk.instances.btrbk = {
onCalendar = lib.mkForce "Wed *-*-* 5:25:20";
settings.snapshot_preserve = lib.mkForce "7d";
};
# disable backups in the VM
services.btrbk.instances = lib.mkFOrce {};
fileSystems."/" = {
device = "/dev/disk/by-label/nixos";