diff options
author | sternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org> | 2021-02-09 01:00:09 +0100 |
---|---|---|
committer | sternenseemann <sternenseemann@systemli.org> | 2021-02-13 12:27:27 +0100 |
commit | e6805d46f31e8228ad590775c7967bceea47fe46 (patch) | |
tree | a7e88dafa2691e274f1cf481a737a9cda8c24838 /modules | |
parent | 5b73fbf6989b48e5c4f35f671338d880acece2d0 (diff) |
modules/user/profpatsch: adjust naming scheme
The general consensus seems to be to use vuizvui.user.<username>.<category>.<module name> instead of vuizvui.<category>.<user name>.<module name> Things done to test this change: * Checked build of machines.profpatsch.legosi.build * Checked evaluation of machines.profpatsch.shiki.build
Diffstat (limited to 'modules')
-rw-r--r-- | modules/README.md | 4 | ||||
-rw-r--r-- | modules/user/profpatsch/programs/weechat.nix | 4 | ||||
-rw-r--r-- | modules/user/profpatsch/services/bitlbee.nix | 4 | ||||
-rw-r--r-- | modules/user/profpatsch/services/dunst.nix | 6 |
4 files changed, 10 insertions, 8 deletions
diff --git a/modules/README.md b/modules/README.md index d9dd5851..a2a6ec89 100644 --- a/modules/README.md +++ b/modules/README.md @@ -36,7 +36,9 @@ When writing modules, make sure to categorize them accordingly: </table> If a module is highly specific to your own configuration, use the same -categories but put them under `user/$category/$module`. +categories but put them under `user/$username/$category/$module`. +Their configuration options should be named +`vuizvui.user."${username}".*` accordingly. Don't forget to add your module to `module-list.nix`, but make sure you have options in place to disable them by default. diff --git a/modules/user/profpatsch/programs/weechat.nix b/modules/user/profpatsch/programs/weechat.nix index 317f63ec..215f1e98 100644 --- a/modules/user/profpatsch/programs/weechat.nix +++ b/modules/user/profpatsch/programs/weechat.nix @@ -8,7 +8,7 @@ { config, lib, pkgs, ... }: let - cfg = config.vuizvui.programs.profpatsch.weechat; + cfg = config.vuizvui.user.profpatsch.programs.weechat; weechatDataDir = "/var/lib/weechat"; sessionName = "weechat"; userName = "weechat"; @@ -64,7 +64,7 @@ let in { - options.vuizvui.programs.profpatsch.weechat = { + options.vuizvui.user.profpatsch.programs.weechat = { enable = lib.mkEnableOption "weechat"; authorizedKeys = lib.mkOption { diff --git a/modules/user/profpatsch/services/bitlbee.nix b/modules/user/profpatsch/services/bitlbee.nix index 5dde75f8..84733270 100644 --- a/modules/user/profpatsch/services/bitlbee.nix +++ b/modules/user/profpatsch/services/bitlbee.nix @@ -3,7 +3,7 @@ { config, lib, pkgs, ... }: let - cfg = config.vuizvui.services.profpatsch.bitlbee; + cfg = config.vuizvui.user.profpatsch.services.bitlbee; bitlbeeUsername = "bitlebee"; stateDir = "bitlbee"; @@ -29,7 +29,7 @@ in options = { - vuizvui.services.profpatsch.bitlbee = { + vuizvui.user.profpatsch.services.bitlbee = { enable = lib.mkEnableOption "bitlbee"; diff --git a/modules/user/profpatsch/services/dunst.nix b/modules/user/profpatsch/services/dunst.nix index a5d3b701..8de782fc 100644 --- a/modules/user/profpatsch/services/dunst.nix +++ b/modules/user/profpatsch/services/dunst.nix @@ -4,7 +4,7 @@ { pkgs, lib, config, ... }: let - cfg = config.vuizvui.services.profpatsch.dunst; + cfg = config.vuizvui.user.profpatsch.services.dunst; eitherStrBoolIntList = with lib.types; either str (either bool (either int (listOf str))); @@ -42,7 +42,7 @@ let themeSize = "32x32"; in { - options.vuizvui.services.profpatsch.dunst = { + options.vuizvui.user.profpatsch.services.dunst = { enable = lib.mkEnableOption "dunst libnotify server"; settings = lib.mkOption { @@ -70,7 +70,7 @@ in { }; - vuizvui.services.profpatsch.dunst.settings = { + vuizvui.user.profpatsch.services.dunst.settings = { global = { icon_position = "left"; icon_path = let |