about summary refs log tree commit diff
path: root/common-workstation.nix
diff options
context:
space:
mode:
authoraszlig <aszlig@redmoonstudios.org>2014-10-21 21:23:33 +0200
committeraszlig <aszlig@redmoonstudios.org>2014-10-21 21:23:33 +0200
commitf509ef74c50ccda67afbc3e1a32ee50a94b8d575 (patch)
treee75ef65fcd993fc9a4fd7cc7ec5e7134449b0bad /common-workstation.nix
parent0e989400c3a699e0b0f9cecda36a7da231d98dec (diff)
common-workstation: Move SLiM stuff into a module.
Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'common-workstation.nix')
-rw-r--r--common-workstation.nix32
1 files changed, 1 insertions, 31 deletions
diff --git a/common-workstation.nix b/common-workstation.nix
index 5526e4cc..0884d00b 100644
--- a/common-workstation.nix
+++ b/common-workstation.nix
@@ -47,6 +47,7 @@ in {
   };
 
   vuizvui.i3.enable = true;
+  vuizvui.slim.enable = true;
 
   services = {
     openssh = {
@@ -108,37 +109,6 @@ in {
 
       desktopManager.default = "none";
       desktopManager.xterm.enable = false;
-      displayManager.slim.enable = true;
-      displayManager.slim.defaultUser = "aszlig";
-      displayManager.slim.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}/bin/mogrify \
-            -fill '#080010' -draw 'color 0,0 reset' \
-            share/slim/themes/nixos-slim-testing/background.png
-          ${pkgs.imagemagick}/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 <<EOF
-          session_x      ${toString centerLeft}%
-          msg_color      #ffffff
-          username_color #ffffff
-          password_color #ffffff
-          input_color    #ffffff
-          EOF
-        '';
-        installPhase = ''
-          cp -R share/slim/themes/nixos-slim-testing "$out"
-        '';
-      };
     };
   };