Added incus service
This commit is contained in:
34
modules/system/services/incus.nix
Normal file
34
modules/system/services/incus.nix
Normal file
@@ -0,0 +1,34 @@
|
||||
{ pkgs, config, lib, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.settings.services.incus;
|
||||
in {
|
||||
options = {
|
||||
settings.services.incus.enable = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
description = ''
|
||||
Enable incus service
|
||||
'';
|
||||
default = false;
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
virtualisation.incus = {
|
||||
enable = true;
|
||||
package = pkgs.unstable.incus;
|
||||
ui.enable = true;
|
||||
ui.package = pkgs.unstable.incus.ui;
|
||||
};
|
||||
|
||||
users.users.xeovalyte = {
|
||||
extraGroups = [ "incus-admin" ];
|
||||
};
|
||||
|
||||
networking.nftables.enable = true;
|
||||
|
||||
networking.firewall.trustedInterfaces = ["incusbr0"];
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user