Module : Refactor a bit.
This commit is contained in:
parent
514523e4f0
commit
2e58f63b16
|
@ -3,7 +3,7 @@
|
||||||
cfg = config.module.desktop.realtime;
|
cfg = config.module.desktop.realtime;
|
||||||
in {
|
in {
|
||||||
options = {
|
options = {
|
||||||
module.desktop.realtime.enable = mkEnableOption "Realtime access.";
|
module.realtime.enable = mkEnableOption "Realtime access.";
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ lib, ... } @args: {
|
{ lib, ... } : {
|
||||||
# Remove default aliases for `l`, `ll` etc as they break my function definitions.
|
# Remove default aliases for `l`, `ll` etc as they break my function definitions.
|
||||||
environment.shellAliases = lib.mkForce {};
|
environment.shellAliases = lib.mkForce {};
|
||||||
}
|
}
|
|
@ -8,14 +8,16 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
module.desktop = {
|
module = {
|
||||||
|
desktop = {
|
||||||
bluetooth.enable = true;
|
bluetooth.enable = true;
|
||||||
brightness.enable = true;
|
brightness.enable = true;
|
||||||
portal.enable = true;
|
portal.enable = true;
|
||||||
realtime.enable = true;
|
|
||||||
sound.enable = true;
|
sound.enable = true;
|
||||||
wayland.enable = true;
|
wayland.enable = true;
|
||||||
};
|
};
|
||||||
|
realtime.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
services.gnome.gnome-keyring.enable = mkForce false;
|
services.gnome.gnome-keyring.enable = mkForce false;
|
||||||
environment.variables.XDG_CURRENT_DESKTOP = "sway";
|
environment.variables.XDG_CURRENT_DESKTOP = "sway";
|
||||||
|
|
Loading…
Reference in a new issue