mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-07 06:19:00 +00:00
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:
parent
ee9ad1ceac
commit
03590ad834
@ -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 = [
|
||||
|
@ -24,6 +24,9 @@
|
||||
};
|
||||
};
|
||||
|
||||
# Enable the display manager of choice.
|
||||
services.xserver.displayManager.gdm.enable = true;
|
||||
|
||||
disko.devices = import ./disko.nix {
|
||||
disks = [ "/dev/nvme0n1" ];
|
||||
};
|
||||
|
@ -85,7 +85,6 @@ in
|
||||
# Enable GNOME and GDM.
|
||||
services.xserver = {
|
||||
enable = true;
|
||||
displayManager.gdm.enable = true;
|
||||
desktopManager.gnome.enable = true;
|
||||
};
|
||||
|
||||
|
@ -9,7 +9,6 @@ in
|
||||
config = lib.mkIf cfg.enable {
|
||||
services.xserver = {
|
||||
enable = true;
|
||||
displayManager.sddm.enable = true;
|
||||
desktopManager.plasma5 = {
|
||||
enable = true;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user