diff --git a/modules/desktop/noctalia.nix b/modules/desktop/noctalia.nix index 15d425a..dd0a829 100644 --- a/modules/desktop/noctalia.nix +++ b/modules/desktop/noctalia.nix @@ -3,12 +3,22 @@ services.upower.enable = true; }; - flake.modules.homeManager.noctalia = { ... }: { - - programs.noctalia = { - enable = true; - settings = (import ./noctalia/_settings.nix) { }; + flake.modules.homeManager.noctalia = { lib, config, ... }: { + options = { + modules.noctalia.smallScreen = lib.mkOption { + type = lib.types.bool; + default = false; + description = "Whether to adjust to small screen. Affects mostly the visibility of the middle bar panel."; + }; }; + config = { + programs.noctalia = { + enable = true; + settings = (import ./noctalia/_settings.nix) { + smallScreen = config.modules.noctalia.smallScreen; + }; + }; + }; }; } diff --git a/modules/desktop/noctalia/_settings.nix b/modules/desktop/noctalia/_settings.nix index b154b7b..6d660eb 100644 --- a/modules/desktop/noctalia/_settings.nix +++ b/modules/desktop/noctalia/_settings.nix @@ -1,6 +1,6 @@ { + smallScreen ? false, }: - { accessibility = { ui_scale = 1.25; @@ -22,10 +22,14 @@ default = { background_opacity = 0; capsule = true; - center = [ - "audio_visualizer" - "media" - ]; + center = + if smallScreen then + [ ] + else + [ + "audio_visualizer" + "media" + ]; end = [ "tray" "notifications" diff --git a/modules/hardware/bluetooth.nix b/modules/hardware/bluetooth.nix new file mode 100644 index 0000000..d19b6f3 --- /dev/null +++ b/modules/hardware/bluetooth.nix @@ -0,0 +1,6 @@ +{ ... }: +{ + flake.modules.nixos.bluetooth = { + hardware.bluetooth.enable = true; + }; +}