diff --git a/configuration.nix b/configuration.nix index 21bd60b..95bea42 100644 --- a/configuration.nix +++ b/configuration.nix @@ -94,16 +94,16 @@ in LC_TIME = "en_GB.UTF-8"; }; - services.xserver = { + services = { enable = true; desktopManager = { xterm.enable = false; plasma6.enable = true; + sddm.enable = true; + defaultSession = "plasma6"; }; }; - services.displayManager.sddm.enable = true; - services.displayManager.defaultSession = "plasma6"; - + # Configure keymap in X11 services.xserver = { xkb.layout = "gb"; diff --git a/nixos-switch.log b/nixos-switch.log index 4d6948b..649bb77 100644 --- a/nixos-switch.log +++ b/nixos-switch.log @@ -1,28 +1,71 @@ -building Nix... -building the system configuration... -trace: warning: The option `services.xserver.desktopManager.plasma6.enable' defined in `/etc/nixos/configuration.nix' has been renamed to `services.desktopManager.plasma6.enable'. error: - … while calling the 'head' builtin + … while evaluating the attribute 'config' - at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/attrsets.nix:1575:11: + at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:322:9: - 1574| || pred here (elemAt values 1) (head values) then - 1575| head values - | ^ - 1576| else - - … while evaluating the attribute 'value' - - at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:809:9: - - 808| in warnDeprecation opt // - 809| { value = builtins.addErrorContext "while evaluating the option `${showOption loc}':" value; + 321| options = checked options; + 322| config = checked (removeAttrs config [ "_module" ]); | ^ - 810| inherit (res.defsFinal') highestPrio; + 323| _module = checked (config._module); + + … while calling the 'seq' builtin + + at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:322:18: + + 321| options = checked options; + 322| config = checked (removeAttrs config [ "_module" ]); + | ^ + 323| _module = checked (config._module); (stack trace truncated; use '--show-trace' to show the full trace) - error: Default graphical session, 'plasma6', not found. - Valid names for 'services.displayManager.defaultSession' are: - plasma - plasmax11 + error: The option `services.desktopManager.defaultSession' does not exist. Definition values: + - In `/etc/nixos/configuration.nix': "plasma6" +building Nix... +error: + … while evaluating the attribute 'config' + + at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:322:9: + + 321| options = checked options; + 322| config = checked (removeAttrs config [ "_module" ]); + | ^ + 323| _module = checked (config._module); + + … while calling the 'seq' builtin + + at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:322:18: + + 321| options = checked options; + 322| config = checked (removeAttrs config [ "_module" ]); + | ^ + 323| _module = checked (config._module); + + (stack trace truncated; use '--show-trace' to show the full trace) + + error: The option `services.desktopManager.defaultSession' does not exist. Definition values: + - In `/etc/nixos/configuration.nix': "plasma6" +building the system configuration... +error: + … while evaluating the attribute 'config.system.build.toplevel' + + at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:322:9: + + 321| options = checked options; + 322| config = checked (removeAttrs config [ "_module" ]); + | ^ + 323| _module = checked (config._module); + + … while calling the 'seq' builtin + + at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:322:18: + + 321| options = checked options; + 322| config = checked (removeAttrs config [ "_module" ]); + | ^ + 323| _module = checked (config._module); + + (stack trace truncated; use '--show-trace' to show the full trace) + + error: The option `services.desktopManager.defaultSession' does not exist. Definition values: + - In `/etc/nixos/configuration.nix': "plasma6"