thanks raf (also fuck you raf)

This commit is contained in:
jacekpoz 2024-04-05 22:59:32 +02:00
parent d6586688ce
commit dd078d9c07
Signed by: poz
SSH key fingerprint: SHA256:JyLeVWE4bF3tDnFeUpUaJsPsNlJyBldDGV/dIKSLyN8
30 changed files with 33 additions and 33 deletions

View file

@ -6,7 +6,7 @@
cfg = config.myOptions.programs.starship; cfg = config.myOptions.programs.starship;
username = config.myOptions.other.system.username; username = config.myOptions.other.system.username;
in { in {
options.myOptions.programs.starship.enable = mkEnableOption "enable starship"; options.myOptions.programs.starship.enable = mkEnableOption "starship";
config = mkIf cfg.enable { config = mkIf cfg.enable {
home-manager.users.${username} = { home-manager.users.${username} = {

View file

@ -8,7 +8,7 @@
username = config.myOptions.other.system.username; username = config.myOptions.other.system.username;
in { in {
options.myOptions.programs.zsh = { options.myOptions.programs.zsh = {
enable = mkEnableOption "enable zsh"; enable = mkEnableOption "zsh";
extraAliases = mkOption { extraAliases = mkOption {
type = types.attrs; type = types.attrs;
description = "extra shell aliases"; description = "extra shell aliases";

View file

@ -8,7 +8,7 @@
cfg = config.myOptions.programs.anyrun; cfg = config.myOptions.programs.anyrun;
username = config.myOptions.other.system.username; username = config.myOptions.other.system.username;
in { in {
options.myOptions.programs.anyrun.enable = mkEnableOption "enable anyrun"; options.myOptions.programs.anyrun.enable = mkEnableOption "anyrun";
config = mkIf cfg.enable { config = mkIf cfg.enable {
nix.settings = { nix.settings = {

View file

@ -10,7 +10,7 @@
storage = "ArmCord/storage"; storage = "ArmCord/storage";
in { in {
options.myOptions.programs.armcord = { options.myOptions.programs.armcord = {
enable = mkEnableOption "enable armcord"; enable = mkEnableOption "armcord";
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {

View file

@ -7,7 +7,7 @@
username = config.myOptions.other.system.username; username = config.myOptions.other.system.username;
in { in {
options.myOptions.themes.cursor = { options.myOptions.themes.cursor = {
enable = mkEnableOption "enable cursor theming"; enable = mkEnableOption "cursor theming";
package = mkOption { package = mkOption {
description = "cursor theme package"; description = "cursor theme package";
type = types.package; type = types.package;

View file

@ -55,7 +55,7 @@
}; };
in { in {
options.myOptions.programs.firefox = { options.myOptions.programs.firefox = {
enable = mkEnableOption "enable firefox"; enable = mkEnableOption "firefox";
defaultSearchEngine = mkOption { defaultSearchEngine = mkOption {
description = "name of the default search engine"; description = "name of the default search engine";
type = types.str; type = types.str;

View file

@ -9,7 +9,7 @@
username = config.myOptions.other.system.username; username = config.myOptions.other.system.username;
in { in {
options.myOptions.programs.foot = { options.myOptions.programs.foot = {
enable = mkEnableOption "enable foot"; enable = mkEnableOption "foot";
server = mkOption { server = mkOption {
description = "enable foot server mode"; description = "enable foot server mode";
default = true; default = true;

View file

@ -8,7 +8,7 @@
hmCfg = config.home-manager.users.${username}; hmCfg = config.home-manager.users.${username};
in { in {
options.myOptions.themes.gtk = { options.myOptions.themes.gtk = {
enable = mkEnableOption "enable gtk theming"; enable = mkEnableOption "gtk theming";
name = mkOption { name = mkOption {
description = "gtk theme name"; description = "gtk theme name";
type = types.str; type = types.str;

View file

@ -7,7 +7,7 @@
cfg = config.myOptions.programs.gtklock; cfg = config.myOptions.programs.gtklock;
username = config.myOptions.other.system.username; username = config.myOptions.other.system.username;
in { in {
options.myOptions.programs.gtklock.enable = mkEnableOption "enable gtklock"; options.myOptions.programs.gtklock.enable = mkEnableOption "gtklock";
config = mkIf cfg.enable { config = mkIf cfg.enable {

View file

@ -22,7 +22,7 @@
inherit (inputs.hyprlock.packages.${pkgs.system}) hyprlock; inherit (inputs.hyprlock.packages.${pkgs.system}) hyprlock;
in { in {
options.myOptions.programs.hypr.land = { options.myOptions.programs.hypr.land = {
enable = mkEnableOption "enable hiper ląd"; enable = mkEnableOption "hiper ląd";
startupSound = mkOption { startupSound = mkOption {
type = with types; nullOr path; type = with types; nullOr path;
description = "sound to play on hyprland startup"; description = "sound to play on hyprland startup";

View file

@ -11,7 +11,7 @@
text_color = "rgba(eae0e4FF)"; text_color = "rgba(eae0e4FF)";
in { in {
options.myOptions.programs.hypr.lock = { options.myOptions.programs.hypr.lock = {
enable = mkEnableOption "enable hiper zamek"; enable = mkEnableOption "hiper zamek";
extraSettings = mkOption { extraSettings = mkOption {
type = types.attrs; type = types.attrs;
description = "extra per host hyprlock settings"; description = "extra per host hyprlock settings";

View file

@ -7,7 +7,7 @@
cfg = config.myOptions.programs.mpv; cfg = config.myOptions.programs.mpv;
username = config.myOptions.other.system.username; username = config.myOptions.other.system.username;
in { in {
options.myOptions.programs.mpv.enable = mkEnableOption "enable mpv"; options.myOptions.programs.mpv.enable = mkEnableOption "mpv";
config = mkIf cfg.enable { config = mkIf cfg.enable {
home-manager.users.${username} = { home-manager.users.${username} = {

View file

@ -9,8 +9,8 @@
username = config.myOptions.other.system.username; username = config.myOptions.other.system.username;
in { in {
options.myOptions.programs.osu = { options.myOptions.programs.osu = {
enable = mkEnableOption "enable osu!"; enable = mkEnableOption "osu!";
enableStable = mkEnableOption "enable osu!stable"; enableStable = mkEnableOption "osu!stable";
}; };
config = mkIf (cfg.enable || cfg.enableStable) { config = mkIf (cfg.enable || cfg.enableStable) {

View file

@ -8,7 +8,7 @@
username = config.myOptions.other.system.username; username = config.myOptions.other.system.username;
in { in {
options.myOptions.themes.qt = { options.myOptions.themes.qt = {
enable = mkEnableOption "enable qt theming"; enable = mkEnableOption "qt theming";
name = mkOption { name = mkOption {
description = "qt theme name"; description = "qt theme name";
type = types.str; type = types.str;

View file

@ -8,7 +8,7 @@
username = config.myOptions.other.system.username; username = config.myOptions.other.system.username;
in { in {
options.myOptions.programs.schizofox = { options.myOptions.programs.schizofox = {
enable = mkEnableOption "enable schizofox"; enable = mkEnableOption "schizofox";
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {

View file

@ -8,7 +8,7 @@
cfg = config.myOptions.programs.swaylock; cfg = config.myOptions.programs.swaylock;
username = config.myOptions.other.system.username; username = config.myOptions.other.system.username;
in { in {
options.myOptions.programs.swaylock.enable = mkEnableOption "enable swaylock"; options.myOptions.programs.swaylock.enable = mkEnableOption "swaylock";
config = mkIf cfg.enable { config = mkIf cfg.enable {

View file

@ -8,7 +8,7 @@
username = config.myOptions.other.system.username; username = config.myOptions.other.system.username;
in { in {
options.myOptions.programs.vesktop = { options.myOptions.programs.vesktop = {
enable = mkEnableOption "enable vesktop"; enable = mkEnableOption "vesktop";
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {

View file

@ -7,7 +7,7 @@
cfg = config.myOptions.programs.zathura; cfg = config.myOptions.programs.zathura;
username = config.myOptions.other.system.username; username = config.myOptions.other.system.username;
in { in {
options.myOptions.programs.zathura.enable = mkEnableOption "enable zathura"; options.myOptions.programs.zathura.enable = mkEnableOption "zathura";
config = mkIf cfg.enable { config = mkIf cfg.enable {
home-manager.users.${username} = { home-manager.users.${username} = {

View file

@ -9,8 +9,8 @@
username = config.myOptions.other.system.username; username = config.myOptions.other.system.username;
in { in {
options.myOptions.other.home-manager = { options.myOptions.other.home-manager = {
enable = mkEnableOption "enable home-manager"; enable = mkEnableOption "home-manager";
enableDirenv = mkEnableOption "enable direnv"; enableDirenv = mkEnableOption "direnv";
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {

View file

@ -8,7 +8,7 @@
cfg = config.myOptions.services.dunst; cfg = config.myOptions.services.dunst;
username = config.myOptions.other.system.username; username = config.myOptions.other.system.username;
in { in {
options.myOptions.services.dunst.enable = mkEnableOption "enable dunst"; options.myOptions.services.dunst.enable = mkEnableOption "dunst";
config = mkIf cfg.enable { config = mkIf cfg.enable {
home-manager.users.${username} = { home-manager.users.${username} = {

View file

@ -8,7 +8,7 @@
username = config.myOptions.other.system.username; username = config.myOptions.other.system.username;
in { in {
# stolen from https://git.outfoxxed.me/outfoxxed/nixnew/src/branch/master/modules/user/modules/fcitx5 # stolen from https://git.outfoxxed.me/outfoxxed/nixnew/src/branch/master/modules/user/modules/fcitx5
options.myOptions.services.fcitx5.enable = mkEnableOption "enable fcitx5"; options.myOptions.services.fcitx5.enable = mkEnableOption "fcitx5";
config = mkIf cfg.enable { config = mkIf cfg.enable {
i18n.inputMethod = { i18n.inputMethod = {

View file

@ -26,7 +26,7 @@
''; '';
in { in {
options.myOptions.services.greetd = { options.myOptions.services.greetd = {
enable = mkEnableOption "enable greetd"; enable = mkEnableOption "greetd";
greeter = mkOption { greeter = mkOption {
description = "greetd frontend to use"; description = "greetd frontend to use";
type = types.str; type = types.str;

View file

@ -6,7 +6,7 @@
cfg = config.myOptions.services.mpd; cfg = config.myOptions.services.mpd;
username = config.myOptions.other.system.username; username = config.myOptions.other.system.username;
in { in {
options.myOptions.services.mpd.enable = mkEnableOption "enable mpd"; options.myOptions.services.mpd.enable = mkEnableOption "mpd";
config = mkIf cfg.enable { config = mkIf cfg.enable {
home-manager.users.${username} = { home-manager.users.${username} = {

View file

@ -5,7 +5,7 @@
}: with lib; let }: with lib; let
cfg = config.myOptions.services.pipewire; cfg = config.myOptions.services.pipewire;
in { in {
options.myOptions.services.pipewire.enable = mkEnableOption "enable pipewire"; options.myOptions.services.pipewire.enable = mkEnableOption "pipewire";
config = mkIf cfg.enable { config = mkIf cfg.enable {
hardware.pulseaudio.enable = false; hardware.pulseaudio.enable = false;

View file

@ -11,7 +11,7 @@ in {
description = "sshd options"; description = "sshd options";
type = with types; submodule { type = with types; submodule {
options = { options = {
enable = mkEnableOption "enable sshd"; enable = mkEnableOption "sshd";
passwordAuth = mkOption { passwordAuth = mkOption {
description = "allow password auth"; description = "allow password auth";
default = false; default = false;
@ -29,7 +29,7 @@ in {
description = "ssh agent options"; description = "ssh agent options";
type = with types; submodule { type = with types; submodule {
options = { options = {
enable = mkEnableOption "enable ssh-agent"; enable = mkEnableOption "ssh-agent";
hostAliases = mkOption { hostAliases = mkOption {
description = "host aliases"; description = "host aliases";
type = with types; attrsOf (submodule { type = with types; attrsOf (submodule {

View file

@ -8,7 +8,7 @@
hmCfg = config.home-manager.users.${username}; hmCfg = config.home-manager.users.${username};
in { in {
options.myOptions.services.syncthing = { options.myOptions.services.syncthing = {
enable = mkEnableOption "enable syncthing"; enable = mkEnableOption "syncthing";
extraSettings = mkOption { extraSettings = mkOption {
type = types.attrs; type = types.attrs;
description = "extra per host syncthing settings"; description = "extra per host syncthing settings";

View file

@ -6,7 +6,7 @@
cfg = config.myOptions.programs.btop; cfg = config.myOptions.programs.btop;
username = config.myOptions.other.system.username; username = config.myOptions.other.system.username;
in { in {
options.myOptions.programs.btop.enable = mkEnableOption "enable btop"; options.myOptions.programs.btop.enable = mkEnableOption "btop";
config = mkIf cfg.enable { config = mkIf cfg.enable {
home-manager.users.${username} = { home-manager.users.${username} = {

View file

@ -8,7 +8,7 @@
cfg = config.myOptions.programs.helix; cfg = config.myOptions.programs.helix;
username = config.myOptions.other.system.username; username = config.myOptions.other.system.username;
in { in {
options.myOptions.programs.helix.enable = mkEnableOption "enable helix"; options.myOptions.programs.helix.enable = mkEnableOption "helix";
config = mkIf cfg.enable { config = mkIf cfg.enable {
nix.settings = { nix.settings = {

View file

@ -8,7 +8,7 @@
cfg = config.myOptions.programs.neovim; cfg = config.myOptions.programs.neovim;
username = config.myOptions.other.system.username; username = config.myOptions.other.system.username;
in { in {
options.myOptions.programs.neovim.enable = mkEnableOption "enable neovim"; options.myOptions.programs.neovim.enable = mkEnableOption "neovim";
config = mkIf cfg.enable { config = mkIf cfg.enable {
nixpkgs.overlays = [ inputs.neovim-nightly-overlay.overlay ]; nixpkgs.overlays = [ inputs.neovim-nightly-overlay.overlay ];

View file

@ -6,7 +6,7 @@
cfg = config.myOptions.programs.newsboat; cfg = config.myOptions.programs.newsboat;
username = config.myOptions.other.system.username; username = config.myOptions.other.system.username;
in { in {
options.myOptions.programs.newsboat.enable = mkEnableOption "enable newsboat"; options.myOptions.programs.newsboat.enable = mkEnableOption "newsboat";
config = mkIf cfg.enable { config = mkIf cfg.enable {
home-manager.users.${username} = { home-manager.users.${username} = {