~ruther/nixos-config

ref: 7212678361a02ca9f0acf44dcff7e9c74cd4d63a nixos-config/modules/desktop/dm/sddm.nix -rw-r--r-- 779 bytes
72126783 — Frantisek Bohacek feat: enable gnome on desktop 1 year, 5 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{ config, lib, pkgs, ... }:

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

    # Dependencies of sugar dark theme
    libsForQt5.qt5.qtquickcontrols2
    libsForQt5.qt5.qtgraphicaleffects
    libsForQt5.qt5.qtsvg
  ];

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

  services = {
    xserver = {
      displayManager.sddm = {
        enable = true;
        theme = "sugar-dark";
      };
    };
  };
}
Do not follow this link