diff options
author | aszlig <aszlig@redmoonstudios.org> | 2015-03-18 03:02:19 +0100 |
---|---|---|
committer | aszlig <aszlig@redmoonstudios.org> | 2015-03-18 03:02:19 +0100 |
commit | 19e3e263610406fca8ca1ed6ecf283deb03d8334 (patch) | |
tree | d786f4f94a4b0d20a75ba2e7d761392378cfe875 /modules/user/aszlig/i3 | |
parent | e91c0b0c2269a8ab0158863dc1c074daf46001f7 (diff) |
modules: Properly namespace module attributes.
So far the modules were still using the old naming scheme of vuizvui.name where name is the corresponding module name directly instead of the category. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'modules/user/aszlig/i3')
-rw-r--r-- | modules/user/aszlig/i3/default.nix | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/modules/user/aszlig/i3/default.nix b/modules/user/aszlig/i3/default.nix index bca88cca..f1e46b7c 100644 --- a/modules/user/aszlig/i3/default.nix +++ b/modules/user/aszlig/i3/default.nix @@ -3,6 +3,7 @@ with lib; let + cfg = config.vuizvui.user.aszlig.services.i3; inherit (config.services.xserver) xrandrHeads; # The symbols if you press shift and a number key. @@ -16,7 +17,7 @@ let headCount = length xrandrHeads; wsPerHead = wsCount / headCount; excessWs = wsCount - (headCount * wsPerHead); - headModifier = if config.vuizvui.i3.reverseHeads then reverseList else id; + headModifier = if cfg.reverseHeads then reverseList else id; getHeadAt = elemAt (headModifier xrandrHeads); mkDefaultWorkspace = number: numberSymbol: { @@ -31,13 +32,13 @@ let }; }; - wsCfgList = mapAttrsToList (_: getAttr "config") config.vuizvui.i3.workspaces; + wsCfgList = mapAttrsToList (_: getAttr "config") cfg.workspaces; wsConfig = concatStrings wsCfgList; defaultWorkspaces = listToAttrs (imap mkDefaultWorkspace wsNumberSymbols); conky = import ./conky.nix { inherit pkgs; - timeout = config.vuizvui.i3.networkTimeout; + timeout = cfg.networkTimeout; }; mkBar = output: statusCmd: singleton '' @@ -65,7 +66,7 @@ let in { - options.vuizvui.i3 = { + options.vuizvui.user.aszlig.services.i3 = { enable = mkEnableOption "i3"; workspaces = mkOption { @@ -101,9 +102,9 @@ in }; }; - config.vuizvui.i3.workspaces = defaultWorkspaces; + config.vuizvui.user.aszlig.services.i3.workspaces = defaultWorkspaces; - config.services.xserver.windowManager = mkIf config.vuizvui.i3.enable { + config.services.xserver.windowManager = mkIf cfg.enable { default = "i3"; i3.enable = true; |