enable display manager on desktop
Some checks failed
Build iso when a new version is pushed / test (push) Failing after 13m10s
Some checks failed
Build iso when a new version is pushed / test (push) Failing after 13m10s
This commit is contained in:
@ -2,12 +2,6 @@
|
||||
{ config, lib, inputs, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
../modules/game.nix
|
||||
../modules/nvidia.nix
|
||||
../modules/vboxHost.nix
|
||||
];
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
cudatoolkit
|
||||
lm_sensors
|
||||
@ -18,6 +12,7 @@
|
||||
hardware.cpu.intel.updateMicrocode = true;
|
||||
|
||||
boot.kernelModules = [ "kvm-intel" "nvidia" ];
|
||||
mods.displayManager.enable = true;
|
||||
|
||||
|
||||
hardware.nvidia = {
|
||||
|
@ -6,8 +6,7 @@
|
||||
boot.initrd.luks.devices.cryptroot.device = "/dev/disk/by-uuid/a4593b01-069d-4a5d-a550-74a762b89b3f";
|
||||
boot.initrd.luks.devices.cryptroot.allowDiscards = true;
|
||||
|
||||
services.displayManager.enable = true;
|
||||
services.displayManager.ly.enable = true;
|
||||
mods.displayManager.enable = true;
|
||||
networking.firewall.enable = false;
|
||||
|
||||
networking.hostName = "patate-douce";
|
||||
|
15
osConfigs/modules/displayManager.nix
Normal file
15
osConfigs/modules/displayManager.nix
Normal file
@ -0,0 +1,15 @@
|
||||
{config, lib, ... }:
|
||||
|
||||
{
|
||||
options.mods.displayManager.enable = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
description = "enable the display manager";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.mods.displayManager.enable {
|
||||
services.displayManager.enable = true;
|
||||
services.displayManager.ly.enable = true;
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user