refactor(homeModules/desktop): move hyprland config to module
This commit is contained in:
parent
97e4bf372b
commit
a1001ddb4c
4 changed files with 27 additions and 2 deletions
17
modules/home/desktop/default.nix
Normal file
17
modules/home/desktop/default.nix
Normal file
|
@ -0,0 +1,17 @@
|
|||
{ config, lib, osConfig, ... }:
|
||||
{
|
||||
options.desktop = {
|
||||
windowManager = lib.pantheon.mkStrOption;
|
||||
};
|
||||
|
||||
|
||||
config = {
|
||||
assertions =
|
||||
[
|
||||
{
|
||||
assertion = (osConfig.desktop.windowManager == config.desktop.windowManager);
|
||||
message = "You have set your home window manager to one that is not installed on this system.";
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue