qemu + enabled refactor

This commit is contained in:
ari committed 2024-10-03 16:32:41 -04:00
1 parent 61997ac276
commit 25d9e9a52c
23 files changed
+71 -45

No files matched your search

+1
View File
@@ -8,5 +8,6 @@
./user.nix
./fonts.nix
./ssh-server.nix
./qemu.nix
];
}
+25
View File
@@ -0,0 +1,25 @@
{ config, lib, pkgs, ... }:
let
cfg = config.skyg.core.qemu;
in
{
options = {
skyg.core.qemu = {
enable = lib.mkEnableOption
"Enable qemu";
};
};
config = lib.mkIf cfg.enable {
environment = {
systemPackages = with pkgs; [
qemu
quickemu
spice-vdagent
spice-autorandr
];
services.spice-vdagentd.enable = true;
services.spice-autorandr.enable = true;
};
};
}
+2 -2
View File
@@ -7,7 +7,7 @@ in
{
options = {
skyg.nixos.common.ssh-server = {
enabled = mkEnableOption
enable = mkEnableOption
"enable ssh server";
masterPubKey = mkOption {
type = types.str;
@@ -15,7 +15,7 @@ in
};
};
};
config = mkIf cfg.enabled {
config = mkIf cfg.enable {
services.openssh = {
enable = true;
openFirewall = true;