fix lib.options inherits xd

This commit is contained in:
jacekpoz 2024-07-25 11:45:44 +02:00
parent 2691ecfef0
commit 2934d74517
Signed by: poz
SSH key fingerprint: SHA256:JyLeVWE4bF3tDnFeUpUaJsPsNlJyBldDGV/dIKSLyN8
37 changed files with 73 additions and 37 deletions

View file

@ -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";

View file

@ -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;

View file

@ -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 = {

View file

@ -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";

View file

@ -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";

View file

@ -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 = {

View file

@ -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";

View file

@ -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 = {

View file

@ -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;

View file

@ -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";

View file

@ -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 = {

View file

@ -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";

View file

@ -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 {

View file

@ -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;

View file

@ -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)";

View file

@ -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 = {

View file

@ -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 = {

View file

@ -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;

View file

@ -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";

View file

@ -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";

View file

@ -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 = {

View file

@ -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";

View file

@ -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 {

View file

@ -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";

View file

@ -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 = {

View file

@ -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 = {

View file

@ -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 {

View file

@ -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";

View file

@ -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;

View file

@ -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 = {

View file

@ -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";

View file

@ -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;

View file

@ -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 = {

View file

@ -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";

View file

@ -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";

View file

@ -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";

View file

@ -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";