~ruther/nixos-config

1ac050e9578440e4a39c984334987e577bd4133b — Frantisek Bohacek 1 year, 6 months ago e825d15
feat: introduce locking mechanism
2 files changed, 18 insertions(+), 0 deletions(-)

M modules/desktop/dm/sddm.nix
M modules/desktop/qtile/config/config.py
M modules/desktop/dm/sddm.nix => modules/desktop/dm/sddm.nix +13 -0
@@ 2,9 2,15 @@

let
  themes = pkgs.callPackage ./sddm-themes/sugar-dark.nix {};
  xsecurelock = (pkgs.xsecurelock.overrideAttrs(attrs: {
      postInstall = attrs.postInstall or "" + ''
        wrapProgram $out/bin/xsecurelock --set XSECURELOCK_COMPOSITE_OBSCURER 0
      '';
    }));
in {
  environment.systemPackages = with pkgs; [
    themes.sddm-sugar-dark
    xsecurelock

    # Dependencies of sugar dark theme
    libsForQt5.qt5.qtquickcontrols2


@@ 12,6 18,13 @@ in {
    libsForQt5.qt5.qtsvg
  ];

  programs = {
    xss-lock = {
      enable = true;
      lockerCommand = "${xsecurelock}/bin/xsecurelock";
    };
  };

  services = {
    xserver = {
      displayManager.sddm = {

M modules/desktop/qtile/config/config.py => modules/desktop/qtile/config/config.py +5 -0
@@ 424,6 424,11 @@ keys.extend([
    EzKey('<Print>', lazy.spawn('flameshot gui')),
])

# Locking
keys.extend([
    EzKey('M-S-m', lazy.spawn('xsecurelock')),
])

# Qtile control
keys.extend([
    EzKey('M-S-c', lazy.window.kill()),

Do not follow this link