forked from Shinonome/dots-hyprland
environment etc
This commit is contained in:
@@ -35,9 +35,18 @@ in {
|
|||||||
environment.etc."skel/.config/quickshell" = {
|
environment.etc."skel/.config/quickshell" = {
|
||||||
source = "../../../.config/quickshell";
|
source = "../../../.config/quickshell";
|
||||||
};
|
};
|
||||||
environment.etc."oneui-icons" = {
|
environment.etc."skel/.local/share/OneUI" = {
|
||||||
source = inputs.oneUI;
|
source = inputs.oneUI;
|
||||||
};
|
};
|
||||||
|
environment.etc."skel/.config/hypr" = {
|
||||||
|
source = "../../../.config/hypr";
|
||||||
|
};
|
||||||
|
environment.etc."skel/.config/matugen" = {
|
||||||
|
source = "../../../.config/matugen";
|
||||||
|
};
|
||||||
|
environment.etc."skel/.config/fuzzel" = {
|
||||||
|
source = "../../../.config/fuzzel";
|
||||||
|
};
|
||||||
environment.systemPackages = with pkgs;
|
environment.systemPackages = with pkgs;
|
||||||
# --- Illogical Impulse Audio Dependencies ---
|
# --- Illogical Impulse Audio Dependencies ---
|
||||||
[
|
[
|
||||||
@@ -98,7 +107,7 @@ in {
|
|||||||
]
|
]
|
||||||
# --- Illogical Impulse Hyprland Dependencies ---
|
# --- Illogical Impulse Hyprland Dependencies ---
|
||||||
++ [
|
++ [
|
||||||
hyprland.packages.${pkgs.system}.default
|
# hyprland.packages.${pkgs.system}.default
|
||||||
hypridle
|
hypridle
|
||||||
hyprcursor
|
hyprcursor
|
||||||
hyprlang
|
hyprlang
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
{
|
{
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
|
pkgs,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
inherit
|
inherit
|
||||||
@@ -12,6 +13,13 @@
|
|||||||
types
|
types
|
||||||
;
|
;
|
||||||
cfg = config.illogical-impulse.terminal;
|
cfg = config.illogical-impulse.terminal;
|
||||||
|
|
||||||
|
commonTerminalConfig = {
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
starship
|
||||||
|
eza
|
||||||
|
];
|
||||||
|
};
|
||||||
in {
|
in {
|
||||||
options = {
|
options = {
|
||||||
illogical-impulse.terminal = {
|
illogical-impulse.terminal = {
|
||||||
@@ -22,8 +30,6 @@ in {
|
|||||||
Whether to enable the terminal-related configuration for this user.
|
Whether to enable the terminal-related configuration for this user.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
# New option to choose the terminal emulator.
|
|
||||||
terminalEmulator = mkOption {
|
terminalEmulator = mkOption {
|
||||||
type = types.enum ["foot" "kitty"];
|
type = types.enum ["foot" "kitty"];
|
||||||
default = "foot";
|
default = "foot";
|
||||||
@@ -34,17 +40,29 @@ in {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable (mkMerge [
|
config = mkIf cfg.enable (
|
||||||
(mkIf (cfg.terminalEmulator == "foot") {
|
mkMerge [
|
||||||
programs.foot = {
|
commonTerminalConfig
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
})
|
|
||||||
|
|
||||||
(mkIf (cfg.terminalEmulator == "kitty") {
|
(mkIf (cfg.terminalEmulator == "foot") {
|
||||||
programs.kitty = {
|
programs.foot = {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
# Foot-specific configuration
|
||||||
})
|
settings = {
|
||||||
]);
|
main.font = "FiraCode Nerd Font:size=10";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
})
|
||||||
|
|
||||||
|
(mkIf (cfg.terminalEmulator == "kitty") {
|
||||||
|
programs.kitty = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
font_family = "FiraCode Nerd Font Mono";
|
||||||
|
font_size = 10.0;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
})
|
||||||
|
]
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user