qemu + enabled refactor
This commit is contained in:
1 parent
61997ac276
commit
25d9e9a52c
23 files changed
+71
-45
No files matched your search
@@ -8,5 +8,6 @@
|
||||
./user.nix
|
||||
./fonts.nix
|
||||
./ssh-server.nix
|
||||
./qemu.nix
|
||||
];
|
||||
}
|
||||
@@ -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;
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user