Update a lot of options, simplify variables, replace options with tags
This commit is contained in:
parent
dbc0ab6dd3
commit
7667ef9a1b
147 changed files with 663 additions and 928 deletions
|
@ -6,7 +6,6 @@
|
|||
./libvirtd
|
||||
./snowflake
|
||||
./ssh
|
||||
./tlp
|
||||
./userborn
|
||||
./vmware
|
||||
];
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
{
|
||||
config = lib.mkIf config.system.desktop.enable {
|
||||
config = lib.mkIf (builtins.elem "pc" config.system.nixos.tags) {
|
||||
services.greetd = {
|
||||
enable = true;
|
||||
settings.default_session.command = lib.mkDefault (lib.strings.concatStringsSep " " [
|
||||
|
|
|
@ -14,13 +14,15 @@
|
|||
};
|
||||
};
|
||||
|
||||
programs.virt-manager.enable = true;
|
||||
|
||||
networking.firewall.trustedInterfaces = [
|
||||
"virbr0"
|
||||
"virbr1"
|
||||
# Isolate devices into more IOMMU groups
|
||||
boot.kernelParams = [
|
||||
"pcie_acs_override=downstream,multifunction"
|
||||
"pci=routeirq"
|
||||
];
|
||||
|
||||
programs.virt-manager.enable = true;
|
||||
|
||||
# Allow looking glass to be accessed by users
|
||||
systemd.tmpfiles.rules = [ "f /dev/shm/looking-glass 0660 - libvirtd -" ];
|
||||
|
||||
environment.persistence."/persist".directories = [ "/var/lib/libvirt" ];
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
{ config, ... }:
|
||||
{
|
||||
services.tlp.enable = config.system.desktop.enable;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue