Home Gen509 @ 2025-05-03-15:04 by jonas@comfy-station

This commit is contained in:
Jonas Röger 2025-05-03 15:04:35 +02:00
parent 9ebf6152a0
commit 31a51c89c3
7 changed files with 248 additions and 181 deletions

View File

@ -1,11 +1,7 @@
{config, ...}: rec {
imports = [
../modules/home/borg.nix
../modules/home/firefox.nix
../modules/home/kdeconnect.nix
../modules/home/ssh.nix
../modules/home/themes/gtk
../modules/home/themes/qt
../modules/home/yubikey.nix
];
@ -22,6 +18,12 @@
hive.hyprland.enable = true;
hive.kitty.enable = true;
hive.nextcloud.enable = true;
hive.firefox = {
enable = true;
plasmaIntegration = true;
passFF = true;
};
hive.kdeconnect.enable = true;
hive.ranger.enable = true;
hive.swaync.enable = true;
hive.waybar.enable = true;

View File

@ -1,8 +1,6 @@
{config, ...}: rec {
imports = [
../modules/home/borg.nix
../modules/home/firefox.nix
../modules/home/kdeconnect.nix
../modules/home/ssh.nix
../modules/home/yubikey.nix
];

View File

@ -38,5 +38,9 @@
./home/wlogout
./home/wofi
./home/zsh
./home/firefox.nix
./home/kdeconnect.nix
./home/plasma.nix
./home/wallpaper.nix
];
}

View File

@ -1,9 +1,18 @@
{
config,
lib,
inputs,
pkgs,
...
}: {
}: let
cfg = config.hive.firefox;
in {
options.hive.firefox = {
enable = lib.mkEnableOption "Enable Firefox";
plasmaIntegration = lib.mkEnableOption "Enable Plasma Integration";
passFF = lib.mkEnableOption "Enable PassFF";
};
config = lib.mkIf cfg.enable {
programs.firefox = {
enable = true;
@ -40,15 +49,16 @@
};
# Extensions
extensions = with inputs.firefox-addons.packages."x86_64-linux"; [
extensions = with inputs.firefox-addons.packages."x86_64-linux"; ([
ublock-origin
violentmonkey
plasma-integration
passff
];
]
++ lib.optional cfg.plasmaIntegration plasma-integration
++ lib.optional cfg.passFF passff);
};
};
home.packages = with pkgs; [
passff-host
];
home.packages =
lib.optional cfg.passFF
pkgs.passff-host;
};
}

View File

@ -1,4 +1,15 @@
{...}: {
{
config,
lib,
...
}: let
cfg = config.hive.kdeconnect;
in {
options.hive.kdeconnect = {
enable = lib.mkEnableOption "Enable KDE Connect";
};
config = lib.mkIf cfg.enable {
services.kdeconnect.enable = true;
services.kdeconnect.indicator = false;
};
}

View File

@ -1,12 +1,14 @@
{
pkgs,
config,
lib,
pkgs,
...
}: {
home.file.".local/share/wallpaper" = {
source = ./static/wallpaper;
recursive = true;
};
}: let
cfg = config.hive.plasma;
in {
options.hive.plasma.enable = lib.mkEnableOption "Plasma configuration";
config = lib.mkIf cfg.enable {
# load hm-vars in x-session
xsession.enable = true;
@ -15,6 +17,12 @@
QT_STYLE_OVERRIDE = "kvantum";
};
# provide kvantum and nord theme
home.packages = [
pkgs.utterly-nord-plasma
pkgs.libsForQt5.qtstyleplugin-kvantum
];
programs.konsole = {
enable = true;
defaultProfile = "default";
@ -34,6 +42,23 @@
qt.enable = true;
qt.style.name = "kvantum";
# add nord like gtk theme
gtk = {
enable = true;
cursorTheme = {
package = pkgs.nordzy-cursor-theme;
name = "Nordzy-cursors";
};
theme = {
package = pkgs.nordic;
name = "Nordic";
};
iconTheme = {
package = pkgs.tela-circle-icon-theme;
name = "Tela-circle-nord";
};
};
programs.plasma = {
enable = true;
overrideConfig = true;
@ -138,4 +163,5 @@
};
};
};
};
}

View File

@ -0,0 +1,16 @@
{
config,
lib,
...
}: let
cfg = config.hive.wallpaper;
in {
options.hive.wallpaper.enable = lib.mkEnableOption "Wallpaper symlink";
config = lib.mkIf cfg.enable {
home.file.".local/share/wallpaper" = {
source = ./static/wallpaper;
recursive = true;
};
};
}