feat(vars): add hostName and big refactors
This commit is contained in:
parent
1fe3920c50
commit
66e3a03d7d
20 changed files with 150 additions and 126 deletions
home
|
@ -39,7 +39,7 @@
|
|||
family = "JetBrainsMono Nerd Font";
|
||||
style = "Italic";
|
||||
};
|
||||
size = config.services.device-vars.fontSize;
|
||||
size = config.vars.fontSize;
|
||||
};
|
||||
|
||||
# https://github.com/dracula/alacritty/blob/05faff15c0158712be87d200081633d9f4850a7d/dracula.yml
|
||||
|
|
|
@ -7,11 +7,15 @@
|
|||
lib,
|
||||
...
|
||||
}: let
|
||||
configDir = config.services.device-vars.configDir;
|
||||
# Nix utils
|
||||
symlink = config.lib.file.mkOutOfStoreSymlink;
|
||||
optionals = lib.lists.optionals;
|
||||
|
||||
# Config stuff
|
||||
isNvidia = osConfig.hardware.nvidia.modesetting.enable;
|
||||
isTouchscreen = osConfig.hardware.sensor.iio.enable;
|
||||
confPath = "${config.vars.configDir}/hypr/main.conf";
|
||||
kdeconnect = osConfig.programs.kdeconnect;
|
||||
|
||||
gset = pkgs.gsettings-desktop-schemas;
|
||||
polkit = pkgs.plasma5Packages.polkit-kde-agent;
|
||||
|
@ -22,9 +26,10 @@ in {
|
|||
../wofi
|
||||
];
|
||||
|
||||
xdg.configFile = lib.mkIf (configDir != null) {
|
||||
"hypr/main.conf".source = symlink "${configDir}/hypr/main.conf";
|
||||
};
|
||||
xdg.configFile = with lib;
|
||||
mkIf (pathExists confPath) {
|
||||
"hypr/main.conf".source = symlink confPath;
|
||||
};
|
||||
|
||||
wayland.windowManager.hyprland = {
|
||||
enable = true;
|
||||
|
@ -32,7 +37,7 @@ in {
|
|||
|
||||
plugins =
|
||||
[]
|
||||
++ (optionals (isTouchscreen) [
|
||||
++ (optionals isTouchscreen [
|
||||
hyprgrass.packages.${pkgs.system}.default
|
||||
]);
|
||||
|
||||
|
@ -93,8 +98,8 @@ in {
|
|||
"swww init --no-cache && swww img -t none ${pkgs.dracula-theme}/wallpapers/waves.png"
|
||||
"wl-paste --watch cliphist store"
|
||||
]
|
||||
++ (optionals (osConfig.programs.kdeconnect.enable) [
|
||||
"${osConfig.programs.kdeconnect.package}/libexec/kdeconnectd"
|
||||
++ (optionals (kdeconnect.enable) [
|
||||
"${kdeconnect.package}/libexec/kdeconnectd"
|
||||
"kdeconnect-indicator"
|
||||
])
|
||||
++ (optionals (osConfig.services.gnome.gnome-keyring.enable) [
|
||||
|
@ -179,7 +184,7 @@ in {
|
|||
|
||||
source =
|
||||
[]
|
||||
++ optionals (configDir != null) [
|
||||
++ optionals (lib.pathExists confPath) [
|
||||
"~/.config/hypr/main.conf"
|
||||
];
|
||||
};
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
config,
|
||||
...
|
||||
}: let
|
||||
fontSize = config.services.device-vars.fontSize;
|
||||
dracula-xresources = pkgs.fetchFromGitHub {
|
||||
owner = "dracula";
|
||||
repo = "xresources";
|
||||
|
@ -39,7 +38,7 @@ in {
|
|||
|
||||
font = {
|
||||
name = "Sans Serif";
|
||||
size = fontSize;
|
||||
size = config.vars.fontSize;
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -57,8 +56,8 @@ in {
|
|||
xdg.configFile = let
|
||||
qtconf = ''
|
||||
[Fonts]
|
||||
fixed="Sans Serif,${lib.strings.floatToString fontSize},-1,5,50,0,0,0,0,0"
|
||||
general="Sans Serif,${lib.strings.floatToString fontSize},-1,5,50,0,0,0,0,0"
|
||||
fixed="Sans Serif,${lib.strings.floatToString config.vars.fontSize},-1,5,50,0,0,0,0,0"
|
||||
general="Sans Serif,${lib.strings.floatToString config.vars.fontSize},-1,5,50,0,0,0,0,0"
|
||||
|
||||
[Appearance]
|
||||
icon_theme=Flat-Remix-Violet-Dark
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue