Simplify more options

This commit is contained in:
Jimbo 2025-02-02 13:42:37 -05:00
parent fbfedfd761
commit 8c2bf296ca
8 changed files with 33 additions and 58 deletions

View file

@ -1,12 +1,6 @@
{ config, lib, pkgs, ... }:
{
options.system.libvirtd = {
enable = lib.mkOption {
type = lib.types.bool;
default = false;
description = "Enable libvirtd and such";
};
};
options.system.libvirtd.enable = lib.mkEnableOption "Enable libvirtd services";
config = lib.mkIf config.system.libvirtd.enable {
virtualisation = {

View file

@ -1,18 +1,16 @@
{ config, pkgs, lib, ... }:
{ config, lib, pkgs, ... }:
{
config = lib.mkIf config.system.desktop.enable {
xdg.portal = {
wlr = {
enable = lib.mkForce true;
settings.screencast = {
max_fps = 60;
chooser_type = "simple";
chooser_cmd = "${pkgs.slurp}/bin/slurp -f %o -or -B 00000066 -b 00000099";
};
xdg.portal = lib.mkIf config.system.desktop.enable {
wlr = {
enable = lib.mkForce true;
settings.screencast = {
max_fps = 60;
chooser_type = "simple";
chooser_cmd = "${pkgs.slurp}/bin/slurp -f %o -or -B 00000066 -b 00000099";
};
extraPortals = with pkgs; [
xdg-desktop-portal-gnome
];
};
extraPortals = with pkgs; [
xdg-desktop-portal-gnome
];
};
}