Compare commits
2 Commits
ddf676d221
...
0dc7671926
| Author | SHA1 | Date |
|---|---|---|
|
|
0dc7671926 | |
|
|
d3d3edd664 |
|
|
@ -14,4 +14,6 @@
|
|||
];
|
||||
|
||||
modules.gpg.signingKey = "0x530DA0331EFE99F5";
|
||||
modules.gnomeBoxes.enable = true;
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@
|
|||
./firefox.nix
|
||||
./fonts.nix
|
||||
./gdm.nix
|
||||
./gnomeBoxes.nix
|
||||
./hyprland.nix
|
||||
./localsend.nix
|
||||
./network.nix
|
||||
|
|
@ -17,6 +18,7 @@
|
|||
./services.nix
|
||||
./stylix.nix
|
||||
./system.nix
|
||||
./tailscale.nix
|
||||
./user.nix
|
||||
./zsh.nix
|
||||
];
|
||||
|
|
|
|||
|
|
@ -0,0 +1,41 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
username,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.modules.gnomeBoxes;
|
||||
in
|
||||
{
|
||||
config = mkIf cfg.enable {
|
||||
virtualisation = {
|
||||
libvirtd = {
|
||||
enable = true;
|
||||
|
||||
# Enable TPM emulation (for Windows 11)
|
||||
qemu = {
|
||||
package = pkgs.qemu_kvm;
|
||||
swtpm.enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
# Enable USD redirection
|
||||
spiceUSBRedirection.enable = true;
|
||||
};
|
||||
|
||||
# Allow VM management
|
||||
users.groups.libvirtd.members = [ username ];
|
||||
users.groups.kvm.members = [ username ];
|
||||
|
||||
# Enable VM networking and file sharing
|
||||
environment.systemPackages = with pkgs; [
|
||||
gnome-boxes
|
||||
swtpm
|
||||
dnsmasq
|
||||
phodav
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.modules.tailscale;
|
||||
in
|
||||
{
|
||||
config = mkIf cfg.enable {
|
||||
services.tailscale.enable = true;
|
||||
};
|
||||
}
|
||||
|
|
@ -5,6 +5,7 @@
|
|||
imports = [
|
||||
./discord.nix
|
||||
./displayManager.nix
|
||||
./gnomeBoxes.nix
|
||||
./gpg.nix
|
||||
./hyprland.nix
|
||||
./localsend.nix
|
||||
|
|
@ -12,6 +13,7 @@
|
|||
./plasma.nix
|
||||
./shell.nix
|
||||
./system.nix
|
||||
./tailscale.nix
|
||||
./zsh.nix
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
{
|
||||
options.modules.gnomeBoxes = {
|
||||
enable = mkEnableOption {
|
||||
default = false;
|
||||
description = "Enable GNOME Boxes";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
{
|
||||
options.modules.tailscale = {
|
||||
enable = mkEnableOption {
|
||||
default = false;
|
||||
description = "Enable Tailscale";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -25,4 +25,6 @@
|
|||
modules.pipewire.enable = true;
|
||||
|
||||
modules.discord.enable = true;
|
||||
|
||||
modules.tailscale.enable = true;
|
||||
}
|
||||
Loading…
Reference in New Issue