chore: reinit

This commit is contained in:
Thiago Sposito 2025-08-25 22:42:48 -03:00
parent 095e9f4f6b
commit 3027322470
Signed by: thiago
GPG key ID: 3065EA73A976D430
29 changed files with 1215 additions and 528 deletions

View file

@ -0,0 +1,40 @@
{ pkgs, ... }:
{
dconf.settings = {
"org/gnome/shell" = {
disable-user-extensions = false;
favorite-apps = [
"org.gnome.Settings.desktop"
"org.gnome.Nautilus.desktop"
"firefox.desktop"
"org.gnome.Calendar.desktop"
"code.desktop"
"kitty.desktop"
];
enabled-extensions = [
""
"trayIconsReloaded@selfmade.pl"
"Vitals@CoreCoding.com"
"sound-output-device-chooser@kgshank.net"
"space-bar@luchrioh"
"Forge@forge-ext"
];
};
};
home.packages = with pkgs; [
gnome-tweaks
gnomeExtensions.appindicator
gnomeExtensions.pop-shell
gnomeExtensions.forge
gnomeExtensions.tray-icons-reloaded
gnomeExtensions.vitals
gnomeExtensions.sound-output-device-chooser
gnomeExtensions.space-bar
nordzy-icon-theme
];
}

View file

@ -1,12 +1,9 @@
{ config
, inputs
, lib
, pkgs
{ pkgs
, ...
}:
{
imports = [
./hyprland
./gnome
./vim.nix
./zsh.nix
];
@ -14,9 +11,6 @@
nixpkgs = {
config = {
allowUnfree = true;
config.permittedInsecurePackages = [
"libsoup-2.74.3"
];
# Workaround for https://github.com/nix-community/home-manager/issues/2942
# nixpkgs.config.allowUnfreePredicate =
# pkg:
@ -32,34 +26,27 @@
home = {
homeDirectory = "/home/thiago";
packages = with pkgs; [
bambu-studio
direnv
fira-code
firefox
heroic
hwinfo
hydralauncher
inkscape
keymapp
lazygit
libinput
librespot
luarocks
nerd-fonts.fira-code
nil
nixpkgs-fmt
nordic
obsidian
pinentry-curses
python3
python3Packages.pip
rclone
ripgrep
shfmt
statix
stylua
sysbench
transmission_4
uget
unzip
waydroid
wl-clipboard
];
username = "thiago";
};
@ -87,7 +74,7 @@
};
lfs.enable = true;
signing = {
key = "3065EA73A976D430";
key = "EC7C84664FF515B63AD510B63065EA73A976D430";
signByDefault = true;
};
userEmail = "th.spo@pm.me";
@ -99,21 +86,25 @@
kitty = {
enable = true;
keybindings = {
# splitting
"ctrl+shift+enter" = "new_window";
"ctrl+shift+\\" = "new_window --location=hsplit";
# resizing
"ctrl+alt+left" = "resize_window narrower";
"ctrl+alt+right" = "resize_window wider";
"ctrl+alt+up" = "resize_window taller";
"ctrl+alt+down" = "resize_window shorter";
};
settings = {
hide_window_decorations = "titlebar-only";
font_size = 16;
font = "ComicShannsMono Nerd Font Mono";
font_size = 18;
font_family = "GohuFont 14 Nerd Font Mono";
inactive_text_alpha = "0.6";
background_blur = 16;
background_opacity = 0.0;
# background_blur = 32;
background_opacity = 1.0;
};
themeFile = "Nord";
};
vscode = {
@ -121,29 +112,6 @@
};
};
systemd.user.services.librespot-connect = {
Unit = {
Description = "Librespot (Spotify Connect) bound to LAN interface";
After = [ "network.target" ];
};
Service = {
ExecStart = "${pkgs.librespot}/bin/librespot \
--name LS-TEST \
--backend pulseaudio \
--device default \
--bitrate 320 \
--disable-audio-cache \
--enable-volume-normalisation \
--initial-volume 75 \
--zeroconf-port 17005";
Restart = "on-failure";
BindToDevice = "wlp7s0"; # Force binding to LAN interface
};
Install = {
WantedBy = [ "default.target" ];
};
};
systemd.user.startServices = "sd-switch";
home.stateVersion = "24.05";
home.stateVersion = "25.11";
}

View file

@ -0,0 +1,58 @@
{
"layer": "top",
"position": "right",
"exclusive": true,
"modules-left": [
"hyprland/workspaces",
"hyprland/window"
],
"modules-center": [
"clock",
"temperature"
],
"modules-right": [
"pulseaudio",
"battery",
"network",
"tray"
],
"clock": {
"format": "{:%d/%m %H:%M}",
"interval": 1
},
"temperature": {
"hwmon-path-abs": "/sys/class/hwmon/hwmon1/temp1_input",
"format": " {temperatureC}°C",
"critical-threshold": 90,
"format-icons": [
"",
"",
""
]
},
"battery": {
"format": "{capacity}% {icon}",
"format-charging": "{capacity}% ⚡",
"format-icons": [
"",
"",
"",
"",
""
]
},
"network": {
"format-wifi": " {essid}",
"format-ethernet": " {ipaddr}",
"format-disconnected": " "
},
"pulseaudio": {
"format": "{volume}% {icon}",
"format-muted": "",
"format-icons": [
"",
"",
""
]
}
}

View file

@ -0,0 +1,48 @@
* {
color: #ffffff;
}
window#waybar {
background: transparent;
}
#workspaces {
flex-wrap: wrap;
max-width: 120px;
}
#workspaces button {
background: #ff00ff;
border-radius: 0;
width: 40px;
height: 40px;
margin: 2px;
padding: 0;
flex: 0 0 40px;
}
#workspaces button.active {
background: #ff00ff;
border: 2px solid #ffffff;
}
#window {
background: transparent;
}
#clock,
#battery,
#network,
#pulseaudio,
#tray,
#temperature {
background: transparent;
}
#pulseaudio.muted {
background: transparent;
}
#network.disconnected {
background: transparent;
}

View file

@ -1,4 +1,5 @@
_: {
{ lib, ... }:
{
home.sessionVariables = {
fileManager = "thunar";
menu = "fuzzel --show drun";
@ -14,17 +15,33 @@ _: {
};
home.file = {
".config/fuzzel/fuzzel.ini".text = builtins.readFile ./config/fuzzel.ini;
".config/waybar/config".text = builtins.readFile ./config/waybar_config.json;
".config/waybar/style.css".text = builtins.readFile ./config/waybar_style.css;
# ".config/waybar/config".text = builtins.readFile ./config/waybar_config.json;
# ".config/waybar/style.css".text = builtins.readFile ./config/waybar_style.css;
".config/hyprland/wallpaper/e-villa.png" = {
source = builtins.fetchurl {
url = "https://ipfs.io/ipfs/bafybeibsjbhleghcc4zdgarmsftd6jt27rb73g3mlbuup3cmuedw54uyqa";
sha256 = "0gxa45qigjcjb12v243jv37nji5dax6rn5y6l823f0a2s2hfkqm5";
};
force = true;
};
};
services.hyprpaper.enable = true;
services.hyprpaper.settings = {
preload = [ "/home/thiago/.config/hyprland/wallpaper/hydra.jpg" ];
wallpaper = [ "HDMI-A-1,/home/thiago/.config/hyprland/wallpaper/hydra.jpg" ];
};
wayland.windowManager.hyprland = {
enable = true;
settings = {
"$mod" = "SUPER";
layerrule = "ignorezero, waybar";
layerrule = [
"ignorezero, waybar"
"blur, waybar"
];
bind = [
"$mod, q, exec, kitty"
"$mod, f, exec, firefox"
"$mod, c, killactive,"
"$mod, m, exit,"
"$mod, e, exec, $fileManager"
@ -65,8 +82,8 @@ _: {
];
bindm = [
"$mod, mouse:272, movewindow"
"$mod, mouse:273, resizewindow"
"$mod, mouse:272, movewindow" # Hold $mod and left mouse button to move window
"$mod, mouse:273, resizewindow" # Hold $mod and right mouse button to resize window
];
bindel = [
@ -91,14 +108,12 @@ _: {
];
monitor = [
",preferred,auto,auto"
"HDMI-A-2,1920x1080@50,0x0,1"
"eDP-1,2560x1600@60,1920x0,2"
];
general = {
gaps_in = 2;
gaps_out = 3;
border_size = 1;
gaps_in = 3;
gaps_out = 6;
border_size = 0;
resize_on_border = true;
allow_tearing = false;
layout = "dwindle";
@ -106,8 +121,10 @@ _: {
decoration = {
rounding = 2;
fullscreen_opacity = 1.0;
active_opacity = 1.0;
inactive_opacity = 0.9;
inactive_opacity = 0.95;
shadow = {
enabled = true;
range = 4;
@ -116,14 +133,16 @@ _: {
};
blur = {
enabled = true;
size = 17;
passes = 1;
size = 4;
passes = 4;
vibrancy = 0.1696;
vibrancy_darkness = 0.08;
# noise = 0.002;
};
};
animations = {
enabled = "yes, please :)";
enabled = true;
bezier = [
"easeOutQuint,0.23,1,0.32,1"
"easeInOutCubic,0.65,0.05,0.36,1"
@ -131,29 +150,32 @@ _: {
"almostLinear,0.5,0.5,0.75,1.0"
"quick,0.15,0,0.1,1"
];
animation = [
"global, 1, 10, default"
"border, 1, 5.39, easeOutQuint"
"windows, 1, 4.79, easeOutQuint"
"windowsIn, 1, 4.1, easeOutQuint, popin 87%"
"windowsOut, 1, 1.49, linear, popin 87%"
"fadeIn, 1, 1.73, almostLinear"
"fadeOut, 1, 1.46, almostLinear"
"fade, 1, 3.03, quick"
"layers, 1, 3.81, easeOutQuint"
"layersIn, 1, 4, easeOutQuint, fade"
"layersOut, 1, 1.5, linear, fade"
"fadeLayersIn, 1, 1.79, almostLinear"
"border, 1, 5.39, easeOutQuint"
"windows, 1, 4.79, easeOutQuint"
"windowsIn, 1, 4.1, easeOutQuint, popin 87%"
"windowsOut, 1, 1.49, linear, popin 87%"
"fadeIn, 1, 1.73, almostLinear"
"fadeOut, 1, 1.46, almostLinear"
"fade, 1, 3.03, quick"
"layers, 1, 3.81, easeOutQuint"
"layersIn, 1, 4, easeOutQuint, fade"
"layersOut, 1, 1.5, linear, fade"
"fadeLayersIn, 1, 1.79, almostLinear"
"fadeLayersOut, 1, 1.39, almostLinear"
"workspaces, 1, 1.94, almostLinear, fade"
"workspacesIn, 1, 1.21, almostLinear, fade"
"workspaces, 1, 1.94, almostLinear, fade"
"workspacesIn, 1, 1.21, almostLinear, fade"
"workspacesOut, 1, 1.94, almostLinear, fade"
];
};
dwindle = {
pseudotile = true;
default_split_ratio = 0.618;
preserve_split = true;
smart_split = true;
};
master = {

View file

@ -2,7 +2,7 @@
{
imports = [
inputs.nixvim.homeManagerModules.nixvim
inputs.nixvim.homeModules.nixvim
];
home.packages = with pkgs; [
ripgrep
@ -96,4 +96,3 @@
'';
};
}

View file

@ -3,16 +3,7 @@
, pkgs
, ...
}:
let
isWayland = config.custom.sessionType == "wayland";
in
{
options.custom.sessionType = lib.mkOption {
type = lib.types.str;
default = "x11";
description = "The X session type: 'wayland' or 'x11'";
};
config = {
home.file."scripts/lsgpu.sh" = {
source = ./scripts/lsgpu.sh;
@ -28,25 +19,15 @@ in
export GPG_TTY=$(tty)
'';
shellAliases = lib.mkMerge [
{
"vi" = "nvim";
"vim" = "nvim";
"ll" = "ls -l";
"lsgpu" = "$HOME/scripts/lsgpu.sh";
"gedit" = "gnome-text-editor";
}
(lib.mkIf isWayland {
"pbcopy" = "wl-copy";
"pbpaste" = "wl-paste";
})
(lib.mkIf (!isWayland) {
"pbcopy" = "xclip -selection clipboard -i";
"pbpaste" = "xclip -selection clipboard -o";
})
];
shellAliases = {
"vi" = "nvim";
"vim" = "nvim";
"ll" = "ls -l";
"lsgpu" = "$HOME/scripts/lsgpu.sh";
"gedit" = "gnome-text-editor";
"pbcopy" = "wl-copy";
"pbpaste" = "wl-paste";
};
oh-my-zsh = {
enable = true;
@ -57,7 +38,5 @@ in
];
};
};
home.packages = with pkgs; [ xclip ];
};
}