nixos/workflows: disable display manager services

This is now on the individual configurations to enable them since most
workflows are expected to be quite similar to desktop environments like from
default NixOS modules.
This commit is contained in:
Gabriel Arazas 2024-02-15 23:14:33 +08:00
parent ee9ad1ceac
commit 03590ad834
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC
4 changed files with 11 additions and 3 deletions

View File

@ -1,6 +1,7 @@
# A very basic NixOS VM configuration intended for testing out the given
# workflow module. It's a good thing the baseline for the configuration is not
# tedious to set up for simpler configs like this.
# tedious to set up for simpler configs like this. Just take note this is
# executed on a separate directory as its own so relative paths are moot.
{ workflow, extraModules ? [ ], extraHomeModules ? [ ] }:
let
@ -33,6 +34,10 @@ import <nixpkgs/nixos/lib/eval-config.nix> {
];
config = {
# Enable the display manager of choice.
services.xserver.displayManager.gdm.enable = true;
# Configure home-manager-related stuff.
home-manager.useUserPackages = lib.mkDefault true;
home-manager.useGlobalPkgs = lib.mkDefault true;
home-manager.sharedModules = extraHomeModules ++ [
@ -46,9 +51,11 @@ import <nixpkgs/nixos/lib/eval-config.nix> {
})
];
# Set up our own library.
_module.args.foodogsquaredLib =
import ../../lib/extras/nixos-set.nix { inherit lib; };
# The main function of the configuration.
workflows.workflows.${workflow}.enable = true;
nixpkgs.overlays = [

View File

@ -24,6 +24,9 @@
};
};
# Enable the display manager of choice.
services.xserver.displayManager.gdm.enable = true;
disko.devices = import ./disko.nix {
disks = [ "/dev/nvme0n1" ];
};

View File

@ -85,7 +85,6 @@ in
# Enable GNOME and GDM.
services.xserver = {
enable = true;
displayManager.gdm.enable = true;
desktopManager.gnome.enable = true;
};

View File

@ -9,7 +9,6 @@ in
config = lib.mkIf cfg.enable {
services.xserver = {
enable = true;
displayManager.sddm.enable = true;
desktopManager.plasma5 = {
enable = true;