feat: add exegol for desktop
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
{
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
./exegol.nix
|
||||
];
|
||||
|
||||
# Enable CUPS to print documents.
|
||||
@@ -21,6 +22,8 @@
|
||||
# pulse.enable = true;
|
||||
# };
|
||||
|
||||
kekleo.exegol = true;
|
||||
|
||||
users.users = {
|
||||
leonhard = {
|
||||
initialPassword = "leonhard";
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
options.kekleo.exegol = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
description = "Whether to enable exegol.";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.kekleo.exegol {
|
||||
virtualisation.docker.enable = true;
|
||||
users.extraGroups.docker.members = [ "leonhard" ];
|
||||
environment.systemPackages = with pkgs; [ exegol4 ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user