Simplify more options
This commit is contained in:
parent
fbfedfd761
commit
8c2bf296ca
|
@ -1,9 +1,6 @@
|
|||
{ lib, config, ... }:
|
||||
{ config, lib, ... }:
|
||||
{
|
||||
options.system.wireguard.client.enable = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
};
|
||||
options.system.wireguard.client.enable = lib.mkEnableOption "Enable the Wireguard client";
|
||||
|
||||
config = lib.mkIf config.system.wireguard.client.enable {
|
||||
networking = {
|
||||
|
|
|
@ -1,9 +1,6 @@
|
|||
{ lib, config, ... }:
|
||||
{ config, lib, ... }:
|
||||
{
|
||||
options.system.wireguard.server.enable = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
};
|
||||
options.system.wireguard.server.enable = lib.mkEnableOption "Enable the Wireguard server";
|
||||
|
||||
config = lib.mkIf config.system.wireguard.server.enable {
|
||||
networking = {
|
||||
|
|
|
@ -1,9 +1,6 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
{
|
||||
options.system.wireless.enable = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = true;
|
||||
};
|
||||
options.system.wireless.enable = lib.mkEnableOption "Enable wireless stack";
|
||||
|
||||
config = lib.mkIf config.system.wireless.enable {
|
||||
networking.wireless.iwd.enable = true;
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
services.udev = {
|
||||
packages = [
|
||||
services.udev.packages = [
|
||||
(pkgs.writeTextFile {
|
||||
name = "10-oculus.rules";
|
||||
text = ''KERNEL=="hidraw*", ATTRS{idVendor}=="0e6f", ATTRS{idProduct}=="0184", MODE="0660", TAG+="uaccess"'';
|
||||
|
@ -13,5 +12,4 @@
|
|||
destination = "/etc/udev/rules.d/10-pdp.rules";
|
||||
})
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,9 +1,6 @@
|
|||
{ lib, pkgs, config, ... }:
|
||||
{ config, lib, pkgs, ... }:
|
||||
{
|
||||
options.system.video.nouveau.enable = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
};
|
||||
options.system.video.nouveau.enable = lib.mkEnableOption "Enable the Nouveau graphics stack";
|
||||
|
||||
config = lib.mkIf config.system.video.nouveau.enable {
|
||||
services.xserver.videoDrivers = [ "nouveau" ];
|
||||
|
|
|
@ -1,9 +1,6 @@
|
|||
{ lib, pkgs, config, ... }:
|
||||
{ config, lib, pkgs, ... }:
|
||||
{
|
||||
options.system.video.nvidia.enable = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
};
|
||||
options.system.video.nvidia.enable = lib.mkEnableOption "Enable the Nvidia graphics stack";
|
||||
|
||||
config = lib.mkIf config.system.video.nvidia.enable {
|
||||
hardware = {
|
||||
|
|
|
@ -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 = {
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
{ config, lib, pkgs, ... }:
|
||||
{
|
||||
config = lib.mkIf config.system.desktop.enable {
|
||||
xdg.portal = {
|
||||
xdg.portal = lib.mkIf config.system.desktop.enable {
|
||||
wlr = {
|
||||
enable = lib.mkForce true;
|
||||
settings.screencast = {
|
||||
|
@ -14,5 +13,4 @@
|
|||
xdg-desktop-portal-gnome
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue