From a0e6ecd222e27707110e0ce03c9a029085e7a412 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Fri, 25 Apr 2025 13:45:04 -0600 Subject: [PATCH] [NixOS] Enable accounts daemon in plasma --- nixos/bootstrap.nix | 4 ++-- nixos/plasma.nix | 10 ++++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/nixos/bootstrap.nix b/nixos/bootstrap.nix index 5dff866f..f2296cef 100644 --- a/nixos/bootstrap.nix +++ b/nixos/bootstrap.nix @@ -1,4 +1,4 @@ -{ pkgs, config, lib, ... }: +{ pkgs, ... }: { imports = [ ./essential.nix @@ -36,7 +36,7 @@ ''; }; }; - nix = rec { + nix = { extraOptions = '' experimental-features = nix-command flakes ''; diff --git a/nixos/plasma.nix b/nixos/plasma.nix index 4b37c370..268f2a0a 100644 --- a/nixos/plasma.nix +++ b/nixos/plasma.nix @@ -1,7 +1,17 @@ { pkgs, config, makeEnable, ... }: makeEnable config "myModules.plasma" true { + services.accounts-daemon.enable = true; services.displayManager.sddm = { enable = true; + settings = { + Users = { + # Show a maximum number of users + MaximumUid = 60000; + MinimumUid = 1000; + # Enable user icons + RememberLastUser = true; + }; + }; extraPackages = with pkgs; [ # sddm-astronaut ];