about summary refs log tree commit diff
path: root/modules/user
diff options
context:
space:
mode:
authoraszlig <aszlig@nix.build>2024-05-23 22:01:38 +0200
committeraszlig <aszlig@nix.build>2024-05-23 22:04:14 +0200
commit90b7aaf2ea8dd3213f6f8ea4b641d0dc0428a242 (patch)
treea7c7c7d89875b46e5c6075ba3ad02e364e827081 /modules/user
parent6f7a33a3471c1f02b5c27d6c56499596eb476481 (diff)
profile: Fix renamed options
This is just to get the noise down during evaluation and fixes the
following warnings:

  The option `services.xserver.xkbVariant' defined in
  `.../modules/user/aszlig/profiles/base.nix' has been renamed to
  `services.xserver.xkb.variant'.

  The option `services.xserver.layout' defined in
  `.../modules/user/aszlig/profiles/base.nix' has been renamed to
  `services.xserver.xkb.layout'.

  The option `services.xserver.displayManager.defaultSession' defined in
  `.../modules/user/aszlig/profiles/workstation' has been renamed to
  `services.displayManager.defaultSession'.

  The option `services.xserver.displayManager.autoLogin' defined in
  `.../modules/user/aszlig/profiles/workstation' has been renamed to
  `services.displayManager.autoLogin'.

  The option `fonts.fonts' defined in
  `.../modules/user/aszlig/profiles/workstation' has been renamed to
  `fonts.packages'.

Signed-off-by: aszlig <aszlig@nix.build>
Diffstat (limited to 'modules/user')
-rw-r--r--modules/user/aszlig/profiles/base.nix4
-rw-r--r--modules/user/aszlig/profiles/workstation/default.nix56
2 files changed, 29 insertions, 31 deletions
diff --git a/modules/user/aszlig/profiles/base.nix b/modules/user/aszlig/profiles/base.nix
index 5cdfe579..02ca52bc 100644
--- a/modules/user/aszlig/profiles/base.nix
+++ b/modules/user/aszlig/profiles/base.nix
@@ -36,8 +36,8 @@ in {
     networking.useNetworkd = true;
     networking.useDHCP = false;
 
-    services.xserver.layout = "us";
-    services.xserver.xkbVariant = "dvorak";
+    services.xserver.xkb.layout = "us";
+    services.xserver.xkb.variant = "dvorak";
     console.useXkbConfig = true;
     console.font = "lat9w-16";
 
diff --git a/modules/user/aszlig/profiles/workstation/default.nix b/modules/user/aszlig/profiles/workstation/default.nix
index 55d56526..cd669ff0 100644
--- a/modules/user/aszlig/profiles/workstation/default.nix
+++ b/modules/user/aszlig/profiles/workstation/default.nix
@@ -63,7 +63,7 @@ in {
       fontDir.enable = true;
       enableGhostscriptFonts = true;
       fontconfig.useEmbeddedBitmaps = true;
-      fonts = lib.singleton pkgs.ultimate-oldschool-pc-font-pack;
+      packages = lib.singleton pkgs.ultimate-oldschool-pc-font-pack;
     };
 
     vuizvui.user.aszlig.services.i3.enable = true;
@@ -176,35 +176,33 @@ in {
         brightness.night = "0.5";
       };
 
-      xserver = {
-        enable = true;
+      xserver.enable = true;
+      xserver.displayManager.lightdm.enable = true;
+      xserver.displayManager.sessionCommands = ''
+        ${pkgs.xorg.xrdb}/bin/xrdb "${pkgs.writeText "xrdb.config" ''
+          XTerm*termName:            xterm-direct
+          XTerm*directColor:         true
+          XTerm*faceName:            MxPlus IBM VGA 8x16
+          XTerm*faceSize:            12
+          XTerm*renderFont:          true
+          XTerm*saveLines:           10000
+          XTerm*bellIsUrgent:        true
+          XTerm*background:          black
+          XTerm*foreground:          grey
+
+          XTerm*backarrowKeyIsErase: true
+          XTerm*ptyInitialErase:     true
+        ''}"
+      '';
 
-        displayManager = {
-          lightdm.enable = true;
-          defaultSession = "none+i3";
-          sessionCommands = ''
-            ${pkgs.xorg.xrdb}/bin/xrdb "${pkgs.writeText "xrdb.config" ''
-              XTerm*termName:            xterm-direct
-              XTerm*directColor:         true
-              XTerm*faceName:            MxPlus IBM VGA 8x16
-              XTerm*faceSize:            12
-              XTerm*renderFont:          true
-              XTerm*saveLines:           10000
-              XTerm*bellIsUrgent:        true
-              XTerm*background:          black
-              XTerm*foreground:          grey
-
-              XTerm*backarrowKeyIsErase: true
-              XTerm*ptyInitialErase:     true
-            ''}"
-          '';
-        } // lib.optionalAttrs (config.boot.initrd.luks.devices != {}) {
-          # All of my workstations are single-user machines with encrypted root
-          # and swap, so there is no need to prompt another time for a password
-          # or passphrase.
-          autoLogin.enable = true;
-          autoLogin.user = "aszlig";
-        };
+      displayManager = {
+        defaultSession = "none+i3";
+      } // lib.optionalAttrs (config.boot.initrd.luks.devices != {}) {
+        # All of my workstations are single-user machines with encrypted root
+        # and swap, so there is no need to prompt another time for a password
+        # or passphrase.
+        autoLogin.enable = true;
+        autoLogin.user = "aszlig";
       };
     };