From 90b7aaf2ea8dd3213f6f8ea4b641d0dc0428a242 Mon Sep 17 00:00:00 2001 From: aszlig Date: Thu, 23 May 2024 22:01:38 +0200 Subject: 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 --- modules/user/aszlig/profiles/base.nix | 4 +- .../user/aszlig/profiles/workstation/default.nix | 56 +++++++++++----------- 2 files changed, 29 insertions(+), 31 deletions(-) (limited to 'modules/user') 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"; }; }; -- cgit 1.4.1