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,13 +8,15 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
module.desktop = {
|
module = {
|
||||||
bluetooth.enable = true;
|
desktop = {
|
||||||
brightness.enable = true;
|
bluetooth.enable = true;
|
||||||
portal.enable = true;
|
brightness.enable = true;
|
||||||
realtime.enable = true;
|
portal.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;
|
||||||
|
|
Loading…
Reference in a new issue