diff options
author | Aria <me@aria.rip> | 2023-12-12 02:03:58 +0000 |
---|---|---|
committer | Aria <me@aria.rip> | 2023-12-12 02:03:58 +0000 |
commit | 35564ad41cfbda2b2a698061a2134956736744c9 (patch) | |
tree | 82093ecbeb1f1b9aac9ffa5594f339a22783f2f5 /tardis-new/modules/common.nix | |
parent | c19dc0924481c7edf4938f5aa105f481a787a30e (diff) |
Diffstat (limited to 'tardis-new/modules/common.nix')
-rw-r--r-- | tardis-new/modules/common.nix | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/tardis-new/modules/common.nix b/tardis-new/modules/common.nix deleted file mode 100644 index 0d6a1ba..0000000 --- a/tardis-new/modules/common.nix +++ /dev/null @@ -1,56 +0,0 @@ -{ - lib, - config, - ... -}: { - networking.domain = lib.consts.mainDomain; - - system.stateVersion = "23.05"; - - # Share NixOS store for efficiency - microvm = { - storeOnDisk = false; - shares = [ - { - tag = "ro-store"; - source = "/nix/store"; - mountPoint = "/nix/.ro-store"; - } - ]; - }; - - microvm = { - # Hypervisor setup - hypervisor = "qemu"; - socket = "control.socket"; - - # Trusted bridge setup - interfaces = [ - { - type = "tap"; - id = "vm-${config.networking.hostName}"; - mac = "02:00:00:00:00:01"; - } - ]; - }; - - # If this isn't set, then every system changes whenever a commit is made - # Which is super annoying - nix.registry = lib.mkForce {}; - - # SSH Access - services.openssh = { - enable = true; - openFirewall = true; - settings.PermitRootLogin = "prohibit-password"; - }; - users.users.root.openssh.authorizedKeys.keys = [lib.consts.rootPubKey]; - - # Swap file - # swapDevices = [ - # { - # device = "/swapfile"; - # size = builtins.floor (config.microvm.mem * 0.5); - # } - # ]; -} |