mirror of
https://codeberg.org/muon/home.git
synced 2025-12-06 08:07:45 +00:00
Add grub
This commit is contained in:
parent
0cc9a3c8b6
commit
b5e7be0747
4 changed files with 42 additions and 25 deletions
|
|
@ -1,10 +1,32 @@
|
|||
{ pkgs, lib, config, ... }: {
|
||||
options.mods.xorg.enable = lib.mkEnableOption "enables xorg";
|
||||
options.mods = {
|
||||
xorg.enable = lib.mkEnableOption "enables xorg";
|
||||
monitor.main.resolution = lib.mkOption {
|
||||
description = "main monitor resolution";
|
||||
type = lib.types.string;
|
||||
default = "1920x1080";
|
||||
example = "2560x1440";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf config.mods.xorg.enable {
|
||||
config = let
|
||||
startupTargets = [
|
||||
"systemd-user-sessions.service"
|
||||
"multi-user.target"
|
||||
"network-online.target"
|
||||
];
|
||||
|
||||
in lib.mkIf config.mods.xorg.enable {
|
||||
services.xserver.enable = true;
|
||||
services.xserver.displayManager.gdm.enable = true;
|
||||
services.xserver.xkb.layout = "us";
|
||||
services.xserver.xkb.options = "caps:escape";
|
||||
|
||||
services.xserver.displayManager.gdm.enable = true;
|
||||
services.xserver.displayManager.autoLogin.enable = true;
|
||||
services.xserver.displayManager.autoLogin.user =
|
||||
config.mods.user.name;
|
||||
|
||||
systemd.services.display-manager.wants = startupTargets;
|
||||
systemd.services.display-manager.after = startupTargets;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue