mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-03-27 03:41:30 +01:00
fix: aqua - networking
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user