From e6ed60548397627bf10f561f9438201dbba0a36e Mon Sep 17 00:00:00 2001 From: Azat Bahawi Date: Sun, 21 Apr 2024 02:15:42 +0300 Subject: 2024-04-21 --- modules/nixos/incus.nix | 66 ------------------------------------------------- 1 file changed, 66 deletions(-) delete mode 100644 modules/nixos/incus.nix (limited to 'modules/nixos/incus.nix') diff --git a/modules/nixos/incus.nix b/modules/nixos/incus.nix deleted file mode 100644 index 184aa03..0000000 --- a/modules/nixos/incus.nix +++ /dev/null @@ -1,66 +0,0 @@ -{ config, lib, ... }: -with lib; -let - cfg = config.nixfiles.modules.incus; -in -{ - options.nixfiles.modules.incus.enable = mkEnableOption "Incus"; - - config = mkIf cfg.enable { - ark.directories = [ "/var/lib/incus" ]; - - virtualisation.incus = { - enable = true; - - preseed = mkDefault { - networks = [ - { - name = "incusbr0"; - type = "bridge"; - config = { - "ipv4.address" = "10.0.30.1/24"; - "ipv4.nat" = true; - "ipv6.address" = "fc30::1/64"; - "ipv6.nat" = true; - }; - } - ]; - storage_pools = [ - { - name = "default"; - driver = "dir"; - config.source = "/var/lib/incus/storage-pools/default"; - } - ]; - profiles = [ - { - name = "default"; - devices = { - eth0 = { - type = "nic"; - name = "eth0"; - network = "incusbr0"; - }; - root = { - type = "disk"; - pool = "default"; - size = "15GiB"; - path = "/"; - }; - }; - } - ]; - }; - }; - - networking.firewall.trustedInterfaces = [ "incusbr0" ]; - - # FIXME https://nixpk.gs/pr-tracker.html?pr=295364 - # systemd.services.incus.path = mkForce [ - # config.boot.zfs.package - # "${config.boot.zfs.package}/lib/udev" - # ]; - - my.extraGroups = [ "incus-admin" ]; - }; -} -- cgit 1.4.1