add gdm as dm for niri.
This commit is contained in:
parent
6d7b693162
commit
c5a62858b7
5 changed files with 138 additions and 104 deletions
34
nixos/modules/gui/niri.nix
Normal file
34
nixos/modules/gui/niri.nix
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
cfg = config.youthlic.gui;
|
||||
in
|
||||
{
|
||||
config = lib.mkIf (cfg.enabled == "niri") {
|
||||
environment.systemPackages = with pkgs; [
|
||||
bluez
|
||||
];
|
||||
hardware.bluetooth = {
|
||||
enable = true;
|
||||
};
|
||||
services.xserver = {
|
||||
enable = true;
|
||||
xkb = {
|
||||
layout = "cn";
|
||||
variant = "";
|
||||
};
|
||||
displayManager.gdm = {
|
||||
enable = true;
|
||||
wayland = true;
|
||||
};
|
||||
};
|
||||
programs.niri = {
|
||||
enable = true;
|
||||
package = pkgs.niri-unstable;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue