fix lib.options inherits xd
This commit is contained in:
parent
2691ecfef0
commit
2934d74517
37 changed files with 73 additions and 37 deletions
|
@ -9,7 +9,8 @@
|
|||
|
||||
inherit (config.myOptions.other.system) username;
|
||||
|
||||
inherit (lib.modules) mkEnableOption mkIf;
|
||||
inherit (lib.modules) mkIf;
|
||||
inherit (lib.options) mkEnableOption;
|
||||
in {
|
||||
options.myOptions.programs.agenix = {
|
||||
enable = mkEnableOption "agenix";
|
||||
|
|
|
@ -8,7 +8,8 @@
|
|||
inherit (config.myOptions.other.system) username;
|
||||
|
||||
inherit (lib.meta) getExe;
|
||||
inherit (lib.modules) mkEnableOption mkIf mkOption;
|
||||
inherit (lib.modules) mkIf;
|
||||
inherit (lib.options) mkEnableOption mkOption;
|
||||
inherit (lib.types) nullOr str;
|
||||
|
||||
delta = getExe pkgs.delta;
|
||||
|
|
|
@ -7,7 +7,8 @@
|
|||
}: let
|
||||
cfg = config.myOptions.programs.nh;
|
||||
|
||||
inherit (lib.modules) mkEnableOption mkIf mkOption;
|
||||
inherit (lib.modules) mkIf;
|
||||
inherit (lib.options) mkEnableOption mkOption;
|
||||
inherit (lib.types) str;
|
||||
in {
|
||||
options.myOptions.programs.nh = {
|
||||
|
|
|
@ -6,7 +6,8 @@
|
|||
cfg = config.myOptions.programs.starship;
|
||||
inherit (config.myOptions.other.system) username;
|
||||
|
||||
inherit (lib.modules) mkEnableOption mkIf;
|
||||
inherit (lib.modules) mkIf;
|
||||
inherit (lib.options) mkEnableOption;
|
||||
in {
|
||||
options.myOptions.programs.starship.enable = mkEnableOption "starship";
|
||||
|
||||
|
|
|
@ -6,7 +6,8 @@
|
|||
cfg = config.myOptions.programs.starship;
|
||||
inherit (config.myOptions.other.system) username;
|
||||
|
||||
inherit (lib.modules) mkEnableOption mkIf;
|
||||
inherit (lib.modules) mkIf;
|
||||
inherit (lib.options) mkEnableOption;
|
||||
in {
|
||||
options.myOptions.programs.zoxide.enable = mkEnableOption "zoxide";
|
||||
|
||||
|
|
|
@ -7,7 +7,8 @@
|
|||
cfg = config.myOptions.programs.zsh;
|
||||
inherit (config.myOptions.other.system) username;
|
||||
|
||||
inherit (lib.modules) mkEnableOption mkIf mkOption;
|
||||
inherit (lib.modules) mkIf;
|
||||
inherit (lib.options) mkEnableOption mkOption;
|
||||
inherit (lib.types) attrs bool;
|
||||
in {
|
||||
options.myOptions.programs.zsh = {
|
||||
|
|
|
@ -8,7 +8,8 @@
|
|||
cfg = config.myOptions.programs.anyrun;
|
||||
inherit (config.myOptions.other.system) username;
|
||||
|
||||
inherit (lib.modules) mkEnableOption mkIf;
|
||||
inherit (lib.modules) mkIf;
|
||||
inherit (lib.options) mkEnableOption;
|
||||
in {
|
||||
options.myOptions.programs.anyrun.enable = mkEnableOption "anyrun";
|
||||
|
||||
|
|
|
@ -6,7 +6,8 @@
|
|||
cfg = config.myOptions.themes.cursor;
|
||||
inherit (config.myOptions.other.system) username;
|
||||
|
||||
inherit (lib.modules) mkEnableOption mkIf mkOption;
|
||||
inherit (lib.modules) mkIf;
|
||||
inherit (lib.options) mkEnableOption mkOption;
|
||||
inherit (lib.types) int package str;
|
||||
in {
|
||||
options.myOptions.themes.cursor = {
|
||||
|
|
|
@ -9,7 +9,8 @@
|
|||
inherit (config.myOptions.other.system) username;
|
||||
|
||||
inherit (lib.meta) getExe;
|
||||
inherit (lib.modules) mkEnableOption mkIf mkOption;
|
||||
inherit (lib.modules) mkIf;
|
||||
inherit (lib.options) mkEnableOption mkOption;
|
||||
inherit (lib.types) attrsOf listOf str submodule;
|
||||
inherit (lib.attrsets) mapAttrs mapAttrsToList;
|
||||
|
||||
|
|
|
@ -9,7 +9,8 @@
|
|||
inherit (config.myOptions.other.system) username;
|
||||
|
||||
inherit (lib.meta) getExe getExe';
|
||||
inherit (lib.modules) mkEnableOption mkIf;
|
||||
inherit (lib.modules) mkIf;
|
||||
inherit (lib.options) mkEnableOption;
|
||||
|
||||
notify-send = getExe pkgs.libnotify;
|
||||
xdg-open = getExe' pkgs.xdg-utils "xdg-open";
|
||||
|
|
|
@ -7,7 +7,8 @@
|
|||
inherit (config.myOptions.other.system) username;
|
||||
hmCfg = config.home-manager.users.${username};
|
||||
|
||||
inherit (lib.modules) mkEnableOption mkIf mkOption;
|
||||
inherit (lib.modules) mkIf;
|
||||
inherit (lib.options) mkEnableOption mkOption;
|
||||
inherit (lib.types) package str submodule;
|
||||
in {
|
||||
options.myOptions.themes.gtk = {
|
||||
|
|
|
@ -7,7 +7,8 @@
|
|||
cfg = config.myOptions.programs.gtklock;
|
||||
inherit (config.myOptions.other.system) username;
|
||||
|
||||
inherit (lib.modules) mkEnableOption mkIf;
|
||||
inherit (lib.modules) mkIf;
|
||||
inherit (lib.options) mkEnableOption;
|
||||
in {
|
||||
options.myOptions.programs.gtklock.enable = mkEnableOption "gtklock";
|
||||
|
||||
|
|
|
@ -10,7 +10,8 @@
|
|||
inherit (config.myOptions.other.system) username;
|
||||
|
||||
inherit (lib.meta) getExe getExe';
|
||||
inherit (lib.modules) mkEnableOption mkIf;
|
||||
inherit (lib.modules) mkIf;
|
||||
inherit (lib.options) mkEnableOption;
|
||||
|
||||
loginctl = getExe' pkgs.systemd "loginctl";
|
||||
in {
|
||||
|
|
|
@ -12,7 +12,8 @@
|
|||
inherit (lib.attrsets) mapAttrsToList;
|
||||
inherit (lib.lists) elem optionals;
|
||||
inherit (lib.meta) getExe getExe';
|
||||
inherit (lib.modules) mkEnableOption mkIf mkOption;
|
||||
inherit (lib.modules) mkIf;
|
||||
inherit (lib.options) mkEnableOption mkOption;
|
||||
inherit (lib.strings) removeSuffix;
|
||||
inherit (lib.types) bool listOf nullOr package path str submodule;
|
||||
|
||||
|
|
|
@ -8,7 +8,8 @@
|
|||
cfg = config.myOptions.programs.hypr.lock;
|
||||
inherit (config.myOptions.other.system) username;
|
||||
|
||||
inherit (lib.modules) mkEnableOption mkIf mkOption;
|
||||
inherit (lib.modules) mkIf;
|
||||
inherit (lib.options) mkEnableOption mkOption;
|
||||
inherit (lib.types) attrs;
|
||||
|
||||
text_color = "rgba(eae0e4FF)";
|
||||
|
|
|
@ -7,7 +7,8 @@
|
|||
cfg = config.myOptions.programs.mpv;
|
||||
inherit (config.myOptions.other.system) username;
|
||||
|
||||
inherit (lib.modules) mkEnableOption mkIf mkOption;
|
||||
inherit (lib.modules) mkIf;
|
||||
inherit (lib.options) mkEnableOption mkOption;
|
||||
inherit (lib.types) nullOr str;
|
||||
in {
|
||||
options.myOptions.programs.mpv = {
|
||||
|
|
|
@ -7,7 +7,8 @@
|
|||
cfg = config.myOptions.themes.qt;
|
||||
inherit (config.myOptions.other.system) username;
|
||||
|
||||
inherit (lib.modules) mkEnableOption mkIf mkOption;
|
||||
inherit (lib.modules) mkIf;
|
||||
inherit (lib.options) mkEnableOption mkOption;
|
||||
inherit (lib.types) package str;
|
||||
in {
|
||||
options.myOptions.themes.qt = {
|
||||
|
|
|
@ -10,7 +10,8 @@
|
|||
|
||||
inherit (lib.attrsets) filterAttrs mapAttrsToList;
|
||||
inherit (lib.lists) elem;
|
||||
inherit (lib.modules) mkEnableOption mkIf mkOption;
|
||||
inherit (lib.modules) mkIf;
|
||||
inherit (lib.options) mkEnableOption mkOption;
|
||||
inherit (lib.strings) concatStrings;
|
||||
inherit (lib.types) attrsOf listOf path str;
|
||||
|
||||
|
|
|
@ -7,7 +7,8 @@
|
|||
cfg = config.myOptions.programs.schizofox;
|
||||
inherit (config.myOptions.other.system) username;
|
||||
|
||||
inherit (lib.modules) mkEnableOption mkIf;
|
||||
inherit (lib.modules) mkIf;
|
||||
inherit (lib.options) mkEnableOption;
|
||||
in {
|
||||
options.myOptions.programs.schizofox = {
|
||||
enable = mkEnableOption "schizofox";
|
||||
|
|
|
@ -8,7 +8,8 @@
|
|||
cfg = config.myOptions.programs.swaylock;
|
||||
inherit (config.myOptions.other.system) username;
|
||||
|
||||
inherit (lib.modules) mkEnableOption mkIf;
|
||||
inherit (lib.modules) mkIf;
|
||||
inherit (lib.options) mkEnableOption;
|
||||
in {
|
||||
options.myOptions.programs.swaylock.enable = mkEnableOption "swaylock";
|
||||
|
||||
|
|
|
@ -7,7 +7,8 @@
|
|||
cfg = config.myOptions.programs.vesktop;
|
||||
inherit (config.myOptions.other.system) username;
|
||||
|
||||
inherit (lib.modules) mkEnableOption mkIf;
|
||||
inherit (lib.modules) mkIf;
|
||||
inherit (lib.options) mkEnableOption;
|
||||
inherit (lib.strings) concatStrings;
|
||||
in {
|
||||
options.myOptions.programs.vesktop = {
|
||||
|
|
|
@ -7,7 +7,8 @@
|
|||
cfg = config.myOptions.programs.zathura;
|
||||
inherit (config.myOptions.other.system) username;
|
||||
|
||||
inherit (lib.modules) mkEnableOption mkIf;
|
||||
inherit (lib.modules) mkIf;
|
||||
inherit (lib.options) mkEnableOption;
|
||||
in {
|
||||
options.myOptions.programs.zathura.enable = mkEnableOption "zathura";
|
||||
|
||||
|
|
|
@ -6,7 +6,8 @@
|
|||
cfg = config.myOptions.other.hardware;
|
||||
|
||||
inherit (lib.attrsets) mapAttrsToList;
|
||||
inherit (lib.modules) mkIf mkOption;
|
||||
inherit (lib.modules) mkIf;
|
||||
inherit (lib.options) mkOption;
|
||||
inherit (lib.types) attrsOf float int submodule;
|
||||
inherit (lib.types.ints) positive;
|
||||
in {
|
||||
|
|
|
@ -8,7 +8,8 @@
|
|||
cfg = config.myOptions.other.home-manager;
|
||||
inherit (config.myOptions.other.system) username;
|
||||
|
||||
inherit (lib.modules) mkEnableOption mkIf;
|
||||
inherit (lib.modules) mkIf;
|
||||
inherit (lib.options) mkEnableOption;
|
||||
in {
|
||||
options.myOptions.other.home-manager = {
|
||||
enable = mkEnableOption "home-manager";
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
}: let
|
||||
cfg = config.myOptions.other.system;
|
||||
|
||||
inherit (lib.modules) mkOption;
|
||||
inherit (lib.options) mkOption;
|
||||
inherit (lib.types) str;
|
||||
in {
|
||||
options.myOptions.other.system = {
|
||||
|
|
|
@ -7,7 +7,8 @@
|
|||
cfg = config.services.anki-sync-server;
|
||||
|
||||
inherit (lib.meta) getExe';
|
||||
inherit (lib.modules) mkEnableOption mkIf mkOption;
|
||||
inherit (lib.modules) mkIf;
|
||||
inherit (lib.options) mkEnableOption mkOption;
|
||||
inherit (lib.types) bool package port str;
|
||||
in {
|
||||
options.services.anki-sync-server = {
|
||||
|
|
|
@ -9,7 +9,8 @@
|
|||
inherit (config.myOptions.other.system) username;
|
||||
|
||||
inherit (lib.meta) getExe getExe';
|
||||
inherit (lib.modules) mkEnableOption mkIf;
|
||||
inherit (lib.modules) mkIf;
|
||||
inherit (lib.options) mkEnableOption;
|
||||
|
||||
xdg-open = getExe' pkgs.xdg-utils "xdg-open";
|
||||
in {
|
||||
|
|
|
@ -7,7 +7,8 @@
|
|||
cfg = config.myOptions.services.fcitx5;
|
||||
inherit (config.myOptions.other.system) username;
|
||||
|
||||
inherit (lib.modules) mkEnableOption mkIf;
|
||||
inherit (lib.modules) mkIf;
|
||||
inherit (lib.options) mkEnableOption;
|
||||
in {
|
||||
# stolen from https://git.outfoxxed.me/outfoxxed/nixnew/src/branch/master/modules/user/modules/fcitx5
|
||||
options.myOptions.services.fcitx5.enable = mkEnableOption "fcitx5";
|
||||
|
|
|
@ -9,7 +9,8 @@
|
|||
inherit (config.myOptions.other.system) username;
|
||||
|
||||
inherit (lib.meta) getExe getExe';
|
||||
inherit (lib.modules) mkEnableOption mkIf mkOption;
|
||||
inherit (lib.modules) mkIf;
|
||||
inherit (lib.options) mkEnableOption mkOption;
|
||||
inherit (lib.strings) concatStringsSep;
|
||||
inherit (lib.types) listOf str;
|
||||
|
||||
|
|
|
@ -6,7 +6,8 @@
|
|||
cfg = config.myOptions.services.mpd;
|
||||
inherit (config.myOptions.other.system) username;
|
||||
|
||||
inherit (lib.modules) mkEnableOption mkIf mkOption;
|
||||
inherit (lib.modules) mkIf;
|
||||
inherit (lib.options) mkEnableOption mkOption;
|
||||
inherit (lib.types) str;
|
||||
in {
|
||||
options.myOptions.services.mpd = {
|
||||
|
|
|
@ -5,7 +5,8 @@
|
|||
}: let
|
||||
cfg = config.myOptions.services.pipewire;
|
||||
|
||||
inherit (lib.modules) mkEnableOption mkIf;
|
||||
inherit (lib.modules) mkIf;
|
||||
inherit (lib.options) mkEnableOption;
|
||||
in {
|
||||
options.myOptions.services.pipewire.enable = mkEnableOption "pipewire";
|
||||
|
||||
|
|
|
@ -7,7 +7,8 @@
|
|||
cfg = config.myOptions.services.ssh;
|
||||
|
||||
inherit (lib.meta) getExe';
|
||||
inherit (lib.modules) mkEnableOption mkIf mkMerge mkOption;
|
||||
inherit (lib.modules) mkIf mkMerge;
|
||||
inherit (lib.options) mkEnableOption mkOption;
|
||||
inherit (lib.types) attrsOf bool nullOr number str submodule;
|
||||
inherit (lib.strings) concatStrings;
|
||||
inherit (lib.attrsets) mapAttrsToList;
|
||||
|
|
|
@ -8,7 +8,8 @@
|
|||
hmCfg = config.home-manager.users.${username};
|
||||
configDir = config.home-manager.users.${username}.xdg.configHome;
|
||||
|
||||
inherit (lib.modules) mkEnableOption mkIf mkOption;
|
||||
inherit (lib.modules) mkIf;
|
||||
inherit (lib.options) mkEnableOption mkOption;
|
||||
inherit (lib.types) attrs;
|
||||
in {
|
||||
options.myOptions.services.syncthing = {
|
||||
|
|
|
@ -6,7 +6,8 @@
|
|||
cfg = config.myOptions.programs.btop;
|
||||
inherit (config.myOptions.other.system) username;
|
||||
|
||||
inherit (lib.modules) mkEnableOption mkIf;
|
||||
inherit (lib.modules) mkIf;
|
||||
inherit (lib.options) mkEnableOption;
|
||||
in {
|
||||
options.myOptions.programs.btop.enable = mkEnableOption "btop";
|
||||
|
||||
|
|
|
@ -9,7 +9,8 @@
|
|||
inherit (config.myOptions.other.system) username;
|
||||
|
||||
inherit (lib.meta) getExe getExe';
|
||||
inherit (lib.modules) mkEnableOption mkIf;
|
||||
inherit (lib.modules) mkIf;
|
||||
inherit (lib.options) mkEnableOption;
|
||||
inherit (lib.strings) makeBinPath;
|
||||
|
||||
clangd = getExe' pkgs.clang-tools "clangd";
|
||||
|
|
|
@ -8,7 +8,8 @@
|
|||
cfg = config.myOptions.programs.neovim;
|
||||
inherit (config.myOptions.other.system) username;
|
||||
|
||||
inherit (lib.modules) mkEnableOption mkIf;
|
||||
inherit (lib.modules) mkIf;
|
||||
inherit (lib.options) mkEnableOption;
|
||||
in {
|
||||
options.myOptions.programs.neovim.enable = mkEnableOption "neovim";
|
||||
|
||||
|
|
|
@ -6,7 +6,8 @@
|
|||
cfg = config.myOptions.programs.newsboat;
|
||||
inherit (config.myOptions.other.system) username;
|
||||
|
||||
inherit (lib.modules) mkEnableOption mkIf;
|
||||
inherit (lib.modules) mkIf;
|
||||
inherit (lib.options) mkEnableOption;
|
||||
in {
|
||||
options.myOptions.programs.newsboat.enable = mkEnableOption "newsboat";
|
||||
|
||||
|
|
Loading…
Reference in a new issue