added stuff
This commit is contained in:
parent
6d31f5b5a1
commit
7d4f626b7d
907 changed files with 70990 additions and 0 deletions
94
nyx/modules/options/system/programs/default.nix
Normal file
94
nyx/modules/options/system/programs/default.nix
Normal file
|
@ -0,0 +1,94 @@
|
|||
{lib, ...}: let
|
||||
inherit (lib) mkEnableOption mkOption types;
|
||||
in {
|
||||
imports = [
|
||||
./gaming.nix
|
||||
];
|
||||
|
||||
options.modules.system.programs = {
|
||||
gui.enable = mkEnableOption "GUI package sets" // {default = true;};
|
||||
cli.enable = mkEnableOption "CLI package sets" // {default = true;};
|
||||
dev.enable = mkEnableOption "development related package sets";
|
||||
|
||||
libreoffice.enable = mkEnableOption "LibreOffice suite";
|
||||
discord.enable = mkEnableOption "Discord messenger";
|
||||
element.enable = mkEnableOption "Element Matrix client";
|
||||
obs.enable = mkEnableOption "OBS Studio";
|
||||
spotify.enable = mkEnableOption "Spotify music player";
|
||||
thunderbird.enable = mkEnableOption "Thunderbird mail client";
|
||||
vscode.enable = mkEnableOption "Visual Studio Code";
|
||||
steam.enable = mkEnableOption "Steam game client";
|
||||
kdeconnect.enable = mkEnableOption "KDE Connect utility";
|
||||
webcord.enable = mkEnableOption "Webcord Discord client";
|
||||
zathura.enable = mkEnableOption "Zathura document viewer";
|
||||
nextcloud.enable = mkEnableOption "Nextcloud sync client";
|
||||
rnnoise.enable = mkEnableOption "RNNoise noise suppression plugin";
|
||||
noisetorch.enable = mkEnableOption "NoiseTorch noise suppression plugin";
|
||||
|
||||
chromium = {
|
||||
enable = mkEnableOption "Chromium browser";
|
||||
ungoogle = mkOption {
|
||||
type = types.bool;
|
||||
default = true;
|
||||
description = "Enable ungoogled-chromium features";
|
||||
};
|
||||
};
|
||||
|
||||
firefox = {
|
||||
enable = mkEnableOption "Firefox browser";
|
||||
schizofox.enable = mkOption {
|
||||
type = types.bool;
|
||||
default = true;
|
||||
description = "Enable Schizofox Firefox Tweaks";
|
||||
};
|
||||
};
|
||||
|
||||
editors = {
|
||||
neovim.enable = mkEnableOption "Neovim text editor";
|
||||
helix.enable = mkEnableOption "Helix text editor";
|
||||
};
|
||||
|
||||
terminals = {
|
||||
kitty.enable = mkEnableOption "Kitty terminal emulator";
|
||||
wezterm.enable = mkEnableOption "WezTerm terminal emulator";
|
||||
foot.enable = mkEnableOption "Foot terminal emulator";
|
||||
};
|
||||
|
||||
git = {
|
||||
signingKey = mkOption {
|
||||
type = types.str;
|
||||
default = "";
|
||||
description = "The default gpg key used for signing commits";
|
||||
};
|
||||
};
|
||||
|
||||
# default program options
|
||||
default = {
|
||||
# what program should be used as the default terminal
|
||||
terminal = mkOption {
|
||||
type = types.enum ["foot" "kitty" "wezterm"];
|
||||
default = "kitty";
|
||||
};
|
||||
|
||||
fileManager = mkOption {
|
||||
type = types.enum ["thunar" "dolphin" "nemo"];
|
||||
default = "dolphin";
|
||||
};
|
||||
|
||||
browser = mkOption {
|
||||
type = types.enum ["firefox" "librewolf" "chromium"];
|
||||
default = "firefox";
|
||||
};
|
||||
|
||||
editor = mkOption {
|
||||
type = types.enum ["neovim" "helix" "emacs"];
|
||||
default = "neovim";
|
||||
};
|
||||
|
||||
launcher = mkOption {
|
||||
type = types.enum ["rofi" "wofi" "anyrun"];
|
||||
default = "rofi";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
24
nyx/modules/options/system/programs/gaming.nix
Normal file
24
nyx/modules/options/system/programs/gaming.nix
Normal file
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (lib.options) mkEnableOption;
|
||||
inherit (config) modules;
|
||||
|
||||
prg = modules.system.programs;
|
||||
in {
|
||||
options.modules.system.programs.gaming = {
|
||||
enable = mkEnableOption ''
|
||||
packages, services and warappers required for the device to be gaming-ready.
|
||||
|
||||
Setting this option to true will also enable certain other options with
|
||||
the option to disable them explicitly.
|
||||
'';
|
||||
|
||||
steam.enable = mkEnableOption "Steam client" // {default = prg.gaming.enable;};
|
||||
gamemode.enable = mkEnableOption "Feral-Interactive's Gamemode with userspace optimizations" // {default = prg.gaming.enable;};
|
||||
gamescope.enable = mkEnableOption "Gamescope compositing manager" // {default = prg.gaming.enable;};
|
||||
mangohud.enable = mkEnableOption "MangoHud overlay" // {default = prg.gaming.enable;};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue