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/vlock/default.nix | |
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/vlock/default.nix')
-rw-r--r-- | modules/user/aszlig/vlock/default.nix | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/modules/user/aszlig/vlock/default.nix b/modules/user/aszlig/vlock/default.nix index 11e9a475..fdf0522f 100644 --- a/modules/user/aszlig/vlock/default.nix +++ b/modules/user/aszlig/vlock/default.nix @@ -1,6 +1,8 @@ { pkgs, config, lib, ... }: let + cfg = config.vuizvui.user.aszlig.services.vlock; + messageFile = pkgs.runCommand "message.cat" {} '' echo -en '\e[H\e[2J\e[?25l' > "$out" "${pkgs.aacolorize}/bin/aacolorize" \ @@ -24,7 +26,9 @@ let ''; }); in { - options.vuizvui.vlock.enable = lib.mkEnableOption "console lock"; + options.vuizvui.user.aszlig.services.vlock = { + enable = lib.mkEnableOption "console lock"; + }; config.systemd.sockets.vlock = { description = "Console Lock Socket"; @@ -33,7 +37,7 @@ in { socketConfig.Accept = true; }; - config.systemd.services."vlock@" = lib.mkIf config.vuizvui.vlock.enable { + config.systemd.services."vlock@" = lib.mkIf cfg.enable { description = "Lock All Consoles"; serviceConfig.Type = "oneshot"; |