mirror of
https://github.com/blahai/nyx.git
synced 2025-06-11 17:13:01 -04:00
too much shit idek anymore
This commit is contained in:
parent
14843ef945
commit
bc82345beb
63 changed files with 1759 additions and 346 deletions
6
modules/base/options/default.nix
Normal file
6
modules/base/options/default.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
imports = [
|
||||
./device.nix
|
||||
./programs
|
||||
];
|
||||
}
|
15
modules/base/options/device.nix
Normal file
15
modules/base/options/device.nix
Normal file
|
@ -0,0 +1,15 @@
|
|||
{lib, ...}: let
|
||||
inherit (lib.types) enum;
|
||||
inherit (lib.options) mkOption;
|
||||
in {
|
||||
options.olympus.device.type = mkOption {
|
||||
type = enum [
|
||||
"laptop"
|
||||
"desktop"
|
||||
"server"
|
||||
"hybrid"
|
||||
"vm"
|
||||
];
|
||||
default = "";
|
||||
};
|
||||
}
|
6
modules/base/options/programs/default.nix
Normal file
6
modules/base/options/programs/default.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
imports = [
|
||||
./shells.nix
|
||||
./defaults.nix
|
||||
];
|
||||
}
|
93
modules/base/options/programs/defaults.nix
Normal file
93
modules/base/options/programs/defaults.nix
Normal file
|
@ -0,0 +1,93 @@
|
|||
{lib, ...}: let
|
||||
inherit (lib.options) mkOption;
|
||||
inherit (lib.types) enum nullOr;
|
||||
in {
|
||||
options.olympus.programs.defaults = {
|
||||
shell = mkOption {
|
||||
type = enum [
|
||||
"bash"
|
||||
"zsh"
|
||||
"fish"
|
||||
];
|
||||
default = "bash";
|
||||
};
|
||||
|
||||
terminal = mkOption {
|
||||
type = enum [
|
||||
"alacritty"
|
||||
"kitty"
|
||||
"wezterm"
|
||||
"foot"
|
||||
];
|
||||
default = "wezterm";
|
||||
};
|
||||
|
||||
fileManager = mkOption {
|
||||
type = enum [
|
||||
"cosmic-files"
|
||||
"thunar"
|
||||
"dolphin"
|
||||
"nemo"
|
||||
];
|
||||
default = "cosmic-files";
|
||||
};
|
||||
|
||||
browser = mkOption {
|
||||
type = enum [
|
||||
"firefox"
|
||||
"floorp"
|
||||
"chromium"
|
||||
"thorium"
|
||||
];
|
||||
default = "floorp";
|
||||
};
|
||||
|
||||
editor = mkOption {
|
||||
type = enum [
|
||||
"nvim"
|
||||
];
|
||||
default = "nvim";
|
||||
};
|
||||
|
||||
launcher = mkOption {
|
||||
type = nullOr (enum [
|
||||
"rofi"
|
||||
"wofi"
|
||||
"cosmic-launcher"
|
||||
]);
|
||||
default = "wofi";
|
||||
};
|
||||
|
||||
bar = mkOption {
|
||||
type = nullOr (enum [
|
||||
"waybar"
|
||||
"ags"
|
||||
]);
|
||||
default = "ags";
|
||||
};
|
||||
|
||||
screenLocker = mkOption {
|
||||
type = nullOr (enum [
|
||||
"hyprlock"
|
||||
"swaylock"
|
||||
"gtklock"
|
||||
"cosmic-greeter"
|
||||
]);
|
||||
default = "hyprlock";
|
||||
description = ''
|
||||
The lockscreen module to be loaded by home-manager.
|
||||
'';
|
||||
};
|
||||
|
||||
noiseSuppressor = mkOption {
|
||||
type = nullOr (enum [
|
||||
"rnnoise"
|
||||
"noisetorch"
|
||||
]);
|
||||
default = "rnnoise";
|
||||
description = ''
|
||||
The noise suppressor to be used for desktop systems with sound enabled.
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
26
modules/base/options/programs/shells.nix
Normal file
26
modules/base/options/programs/shells.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
{
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
inherit (lib.options) mkEnableOption mkPackageOption;
|
||||
inherit (lib.attrsets) recursiveUpdate;
|
||||
|
||||
mkProgram = pkgs: name: extraConfig:
|
||||
recursiveUpdate {
|
||||
enable = mkEnableOption "Enable ${name}";
|
||||
package = mkPackageOption pkgs name {};
|
||||
}
|
||||
extraConfig;
|
||||
in {
|
||||
options.olympus.programs = {
|
||||
bash = mkProgram pkgs "bash" {
|
||||
enable.default = true;
|
||||
package.default = pkgs.bashInteractive;
|
||||
};
|
||||
|
||||
zsh = mkProgram pkgs "zsh" {};
|
||||
|
||||
fish = mkProgram pkgs "fish" {};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue