diff options
Diffstat (limited to 'modules/user/desktop/default.nix')
| -rw-r--r-- | modules/user/desktop/default.nix | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/modules/user/desktop/default.nix b/modules/user/desktop/default.nix new file mode 100644 index 0000000..1cfd36b --- /dev/null +++ b/modules/user/desktop/default.nix @@ -0,0 +1,49 @@ +{ + config, + lib, + pkgs, + options, + ... +}: +{ + imports = [ + ./swayfx.nix + ]; + + options.desktop = { + windowManager = lib.mkOption { + description = "Which window manager to use"; + default = null; + type = with lib.types; nullOr (enum [ ]); + }; + }; + + config = { + home.packages = with pkgs; [ + fira-code # monospace font + ]; + + programs.foot = { + enable = lib.mkDefault (config.desktop != null); + settings = { + bell = { + notify = true; + urgent = true; + }; + + colors = { + alpha = 0.7; + }; + + cursor.blink = true; + main = { + font = "Fira Code:size=8"; + dpi-aware = true; + }; + + mouse.hide-when-typing = true; + }; + }; + }; + +} |
