fork/home-manager

git clone https://git.julia.blue/fork/home-manager

Sefa Eyeogluwlogout: add module (#3629)69696fe5

master
1.3 KiB62 linesraw
1{ config, lib, pkgs, ... }:
2
3with lib;
4
5{
6  config = {
7    home.stateVersion = "22.11";
8
9    programs.wlogout = {
10      package = config.lib.test.mkStubPackage { outPath = "@wlogout@"; };
11      enable = true;
12      layout = [
13        {
14          label = "shutdown";
15          action = "systemctl poweroff";
16          text = "Shutdown";
17          keybind = "s";
18        }
19        {
20          label = "hibernate";
21          action = "systemctl hibernate";
22          text = "Hibernate";
23          keybind = "h";
24          height = 0.5;
25          width = 0.5;
26        }
27        {
28          label = "suspend";
29          action = "systemctl suspend";
30          text = "Suspend";
31          keybind = "u";
32          circular = true;
33        }
34        {
35          label = "exit";
36          action = "swaymsg exit";
37          text = "Exit";
38          keybind = "e";
39        }
40        {
41          label = "reboot";
42          action = "systemctl reboot";
43          text = "Reboot";
44          keybind = "r";
45        }
46        {
47          label = "lock";
48          action = "gtklock";
49          text = "Lock";
50          keybind = "l";
51        }
52      ];
53    };
54
55    nmt.script = ''
56      assertPathNotExists home-files/.config/wlogout/style.css
57      assertFileContent \
58        home-files/.config/wlogout/layout \
59        ${./layout-multiple-expected.json}
60    '';
61  };
62}