This commit is contained in:
tulg 2025-10-19 19:40:13 +03:00
parent 510db0f1d4
commit 6810e6bb0f
6 changed files with 452 additions and 79 deletions

160
modules/home.nix Normal file
View file

@ -0,0 +1,160 @@
{ config, lib, pkgs, inputs, nix-colors, ... }:
let
dots = "${config.home.homeDirectory}/nixdots/config";
symlink = path: config.lib.file.mkOutOfStoreSymlink path;
spicePkgs = inputs.spicetify-nix.legacyPackages.${pkgs.stdenv.system};
in
{
imports = [
inputs.zen-browser.homeModules.twilight
inputs.spicetify-nix.homeManagerModules.default
];
home.username = "tulg";
home.homeDirectory = "/home/tulg";
home.stateVersion = "25.05";
home.packages = with pkgs; [
networkmanagerapplet
wdisplays
nwg-look
rose-pine-gtk-theme
xfce.thunar
arc-theme
tmux
fastfetch
btop
# spotify
pavucontrol
wl-clipboard
hyprcursor
parsec-bin
file-roller
hyprpolkitagent
swww
grim
slurp
lf
pistol
waybar
wofi
mako
kitty
vesktop
libsForQt5.qtstyleplugin-kvantum
libsForQt5.qt5ct
rose-pine-kvantum
];
programs.vscode.enable = true;
programs.zen-browser.enable = true;
programs.zen-browser.policies = {
DisableAppUpdate = true;
DisableTelemetry = true;
};
programs.spicetify = {
enable = true;
theme = spicePkgs.themes.ziro;
colorScheme = "rose-pine-moon";
};
xdg.configFile."hypr" = {
source = symlink "${dots}/hypr";
recursive = true;
};
xdg.configFile."waybar" = {
source = symlink "${dots}/waybar";
recursive = true;
};
xdg.configFile."kitty" = {
source = symlink "${dots}/kitty";
recursive = true;
};
xdg.configFile."wofi" = {
source = symlink "${dots}/wofi";
recursive = true;
};
xdg.configFile."mako" = {
source = symlink "${dots}/mako";
recursive = true;
};
xdg.configFile."lf" = {
source = symlink "${dots}/lf";
recursive = true;
};
programs.firefox.enable = true;
programs.bash = {
enable = true;
shellAliases = {
a = "echo ids";
};
bashrcExtra = ''
PS1="\[\e[38;5;177m\]\u\[\e[38;5;220m\]@\[\e[38;5;1m\]\h \[\e[38;5;33m\]\w \[\033[0m\]\$ "
'';
};
programs.git = {
enable = true;
userName = "tulg";
userEmail = "tulg@protonmail.ch";
};
gtk = {
enable = true;
theme = {
name = "Nordic-darker";
package = pkgs.nordic;
};
iconTheme = {
name = "Papirus-Dark";
package = pkgs.papirus-icon-theme;
};
};
home.pointerCursor = {
gtk.enable = true;
x11.enable = true;
package = pkgs.bibata-cursors;
name = "Bibata-Modern-Classic";
size = 16;
};
nixpkgs.config.qt5 = {
enable = true;
platformTheme = "qt5ct";
style = {
package = pkgs.rose-pine-kvantum;
name = "Rose-pine";
};
};
#
#
home.sessionVariables = {
NIXOS_OZONE_WL = "1"; # hint Electron apps to use Wayland
GTK_THEME = "rose-pine";
QT_QPA_PLATFORMTHEME = "qt5ct";
QT_QPA_PLATFORM = "wayland";
# PS1="\[\e[38;5;177m\]\u\[\e[38;5;220m\]@\[\e[38;5;1m\]\h \[\e[38;5;33m\]\w \[\033[0m\]$ ";
};
xdg.portal = {
enable = true;
config.common.default = "*";
xdgOpenUsePortal = true;
extraPortals = [
pkgs.xdg-desktop-portal-hyprland
pkgs.xdg-desktop-portal-gtk
];
};
}