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