nix:use variables

This commit is contained in:
js0ny 2025-11-02 20:24:17 +00:00
parent cf221c7c4b
commit dfcbd50294
14 changed files with 121 additions and 10 deletions

View file

@ -0,0 +1,31 @@
{
lib,
config,
...
}: {
options.currentUser = {
defaultShell = lib.mkOption {
type = lib.types.enum ["zsh" "bash" "fish"];
default = "zsh";
description = "The default shell to use.";
};
defaultTerminal = lib.mkOption {
type = lib.types.str;
default = "ghostty";
description = "The default terminal emulator.";
};
defaultTerminalRunner = lib.mkOption {
type = lib.types.str;
default = config.currentUser.defaultTerminal;
description = "The default terminal emulator to run CLI softwares directly";
};
iconTheme = lib.mkOption {
type = lib.types.str;
default = "Breeze";
description = "Default icon theme";
};
};
}

View file

@ -7,7 +7,16 @@
rofimoji
rofi-power-menu
swaylock-effects
swayidle
xwayland-satellite
wmname
hyprpolkitagent
];
fonts.packages = [pkgs.font-awesome];
xdg.portal = {
extraPortals = with pkgs; [
kdePackages.xdg-desktop-portal-kde
];
config.common.default = ["kde" "wlr"];
};
}

View file

@ -48,4 +48,8 @@
wl-clipboard
libnotify
];
xdg.portal = {
wlr.enable = true;
};
}

View file

@ -9,6 +9,7 @@
pkgs.nerd-fonts.jetbrains-mono
pkgs.nur.repos.definfo.sarasa-term-sc-nerd
pkgs.vollkorn
pkgs.font-awesome
];
in {
environment.systemPackages = fontPkgs;