mv sddm to module
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
{ lib, config, pkgs, ... }:
|
||||
{
|
||||
imports = [
|
||||
./sddm.nix
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
{ lib, config, pkgs, ... }:
|
||||
let
|
||||
inherit (lib) mkIf mkOption types;
|
||||
in
|
||||
{
|
||||
options.smayzy.sddm.enable = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = "sddm";
|
||||
};
|
||||
|
||||
config = mkIf config.smayzy.sddm.enable {
|
||||
services.displayManager.sddm.enable = true;
|
||||
services.displayManager.sddm.wayland.enable = true;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user