mirror of
https://github.com/nickolaj-jepsen/nixos.git
synced 2026-01-22 08:06:50 +01:00
update
This commit is contained in:
parent
2b7b63a18c
commit
638ef7093e
140 changed files with 307 additions and 121 deletions
11
modules/hardware/audio.nix
Normal file
11
modules/hardware/audio.nix
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
_: {
|
||||
config = {
|
||||
security.rtkit.enable = true;
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
42
modules/hardware/monitors.nix
Normal file
42
modules/hardware/monitors.nix
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
# https://github.com/ChangeCaps/nixos-config/tree/0cec356abc0e46ca6ba27b3cf01cd51273bd4a69
|
||||
{lib, ...}: {
|
||||
options.monitors = lib.mkOption {
|
||||
type = lib.types.listOf (lib.types.submodule {
|
||||
options = {
|
||||
name = lib.mkOption {
|
||||
type = lib.types.nullOr lib.types.str;
|
||||
default = null;
|
||||
example = "DP-1";
|
||||
};
|
||||
|
||||
resolution = lib.mkOption {
|
||||
type = lib.types.nullOr lib.types.str;
|
||||
default = null;
|
||||
example = "1920x1080";
|
||||
};
|
||||
|
||||
refreshRate = lib.mkOption {
|
||||
type = lib.types.nullOr lib.types.int;
|
||||
default = null;
|
||||
example = 60;
|
||||
};
|
||||
|
||||
position = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = "0x0";
|
||||
};
|
||||
|
||||
scale = lib.mkOption {
|
||||
type = lib.types.float;
|
||||
default = 1.0;
|
||||
};
|
||||
|
||||
enable = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = true;
|
||||
};
|
||||
};
|
||||
});
|
||||
default = [];
|
||||
};
|
||||
}
|
||||
4
modules/hardware/usb.nix
Normal file
4
modules/hardware/usb.nix
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
_: {
|
||||
services.devmon.enable = true;
|
||||
services.udisks2.enable = true;
|
||||
}
|
||||
3
modules/hardware/yubikey.nix
Normal file
3
modules/hardware/yubikey.nix
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
_: {
|
||||
services.pcscd.enable = true;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue