1
1
Fork 0
nixos/options/custom/default.nix
Myned d3c1433509
custom: add browser option
Signed-off-by: Myned <dev@bjork.tech>
2024-12-21 13:40:32 -05:00

53 lines
1.5 KiB
Nix

{
config,
lib,
...
}:
with lib; let
cfg = config.custom;
in {
options.custom = {
### Profiles
default = mkOption {default = true;};
full = mkOption {default = false;};
minimal = mkOption {default = cfg.full;};
profile = mkOption {};
### Users
domain = mkOption {default = "bjork.tech";};
hostname = mkOption {};
realname = mkOption {default = "Myned";};
username = mkOption {default = "myned";};
sync = mkOption {default = "/home/myned/SYNC";};
### Hardware
width = mkOption {default = 1920;};
height = mkOption {default = 1080;};
refresh = mkOption {default = 60;};
ultrawide = mkOption {default = cfg.width * 9 / 16 > cfg.height;}; # Wider than 16:9
hidpi = mkOption {default = cfg.scale > 1;};
scale = mkOption {default = 1;};
# TODO: Use option for border size
border = mkOption {default = 2;};
gap = mkOption {default = 5;};
padding = mkOption {default = 51;}; # ?? journalctl --user -u waybar.service | grep height:
rounding = mkOption {default = 10;};
### Misc
wallpaper = mkOption {default = false;};
browser = {
command = mkOption {default = "${config.custom.programs.chromium.package}/bin/google-chrome-stable";};
desktop = mkOption {default = "google-chrome.desktop";};
};
font = {
emoji = mkOption {default = "Noto Color Emoji";};
monospace = mkOption {default = "IosevkaTermSlab NFP Medium";};
sans-serif = mkOption {default = "Outfit";};
serif = mkOption {default = "Liberation Serif";};
};
};
}