Module : Refactor a bit.

This commit is contained in:
Dmitry Voronin 2024-08-24 20:29:51 +03:00
parent 514523e4f0
commit 2e58f63b16
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k
4 changed files with 11 additions and 9 deletions

View file

@ -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 {

View file

@ -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 {};
} }

View file

@ -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;