From 55835a5cb0f5c088c31377e34bda5702c3830bf2 Mon Sep 17 00:00:00 2001 From: aszlig Date: Sun, 8 Dec 2019 15:23:17 +0100 Subject: treewide: Remove all references to SLiM This fixes the following evaluation error: The option `services.xserver.displayManager.slim' can no longer be used since it's been removed. The SLIM project is abandoned and their last release was in 2013. Because of this it poses a security risk to your system. Other issues include it not fully supporting systemd and logind sessions. Please use a different display manager such as LightDM, SDDM, or GDM. You can also use the startx module which uses Xinitrc. Here is the nixpkgs upstream pull request removing SLiM: https://github.com/NixOS/nixpkgs/pull/73251 Since I was using a custom theme for SLiM and actually liked the minimalism, it's probably time to start patching LightDM soon. For now however, I'll stay with a default LightDM configuration and wait until I'm getting annoyed :-) Signed-off-by: aszlig --- modules/core/tests.nix | 3 -- modules/module-list.nix | 1 - .../user/aszlig/profiles/workstation/default.nix | 2 +- modules/user/aszlig/services/slim/default.nix | 45 ---------------------- 4 files changed, 1 insertion(+), 50 deletions(-) delete mode 100644 modules/user/aszlig/services/slim/default.nix (limited to 'modules') diff --git a/modules/core/tests.nix b/modules/core/tests.nix index dbf2e94b..8e3c6573 100644 --- a/modules/core/tests.nix +++ b/modules/core/tests.nix @@ -504,9 +504,6 @@ let { check = true; path = ["nixos" "simple"]; } - { check = config.services.xserver.displayManager.slim.enable; - path = ["nixos" "slim"]; - } { check = config.services.snapper.configs != {}; path = ["nixos" "snapper"]; } diff --git a/modules/module-list.nix b/modules/module-list.nix index df539e6e..d5de7026 100644 --- a/modules/module-list.nix +++ b/modules/module-list.nix @@ -24,7 +24,6 @@ ./user/aszlig/programs/taskwarrior ./user/aszlig/programs/zsh ./user/aszlig/services/i3 - ./user/aszlig/services/slim ./user/aszlig/services/vlock ./user/devhell/profiles/base.nix ./user/devhell/profiles/packages.nix diff --git a/modules/user/aszlig/profiles/workstation/default.nix b/modules/user/aszlig/profiles/workstation/default.nix index ec195727..ce2e661c 100644 --- a/modules/user/aszlig/profiles/workstation/default.nix +++ b/modules/user/aszlig/profiles/workstation/default.nix @@ -60,7 +60,6 @@ in { }; vuizvui.user.aszlig.services.i3.enable = true; - vuizvui.user.aszlig.services.slim.enable = true; vuizvui.user.aszlig.services.vlock.enable = true; vuizvui.user.aszlig.services.vlock.user = "aszlig"; @@ -160,6 +159,7 @@ in { enable = true; layout = "dvorak"; + displayManager.lightdm.enable = true; displayManager.sessionCommands = '' ${pkgs.xorg.xrdb}/bin/xrdb "${pkgs.writeText "xrdb.config" '' XTerm*font: vga diff --git a/modules/user/aszlig/services/slim/default.nix b/modules/user/aszlig/services/slim/default.nix deleted file mode 100644 index 6e61912a..00000000 --- a/modules/user/aszlig/services/slim/default.nix +++ /dev/null @@ -1,45 +0,0 @@ -{ pkgs, config, lib, ... }: - -with lib; - -let - cfg = config.vuizvui.user.aszlig.services.slim; - randrHeads = config.services.xserver.xrandrHeads; -in { - options.vuizvui.user.aszlig.services.slim = { - enable = mkEnableOption "Vuizvui SLiM"; - }; - - config.services.xserver.displayManager.slim = mkIf cfg.enable { - enable = true; - theme = pkgs.stdenv.mkDerivation { - name = "nixos-theme-vuizvui"; - src = pkgs.slimThemes.nixosSlim; - phases = [ "unpackPhase" "patchPhase" "installPhase" ]; - patchPhase = let - headFactor = if randrHeads == [] then 1 else lib.length randrHeads; - centerLeft = 100 / (headFactor * 2); - in '' - "${pkgs.imagemagick.out}/bin/mogrify" \ - -fill '#080010' -draw 'color 0,0 reset' \ - share/slim/themes/nixos-slim-testing/background.png - "${pkgs.imagemagick.out}/bin/mogrify" \ - -negate -region 100x110+0+0 -negate -fill white -colorize 20% \ - share/slim/themes/nixos-slim-testing/panel.png - sed -i \ - -e 's/^\([a-z_]\+_x[^0-9]*\)[0-9]\+%/\1${toString centerLeft}%/' \ - share/slim/themes/nixos-slim-testing/slim.theme - cat >> share/slim/themes/nixos-slim-testing/slim.theme <