feat: format

This commit is contained in:
s-prechtl 2024-09-15 11:57:16 +02:00
parent 95f31e1d7a
commit 0844945c23
15 changed files with 1111 additions and 1080 deletions

View file

@ -1,42 +1,44 @@
{ config, pkgs, ... }:
{
programs.alacritty = {
enable = true;
settings = {
colors = {
bright = {
black = "#928374";
blue = "#83a598";
cyan = "#8ec07c";
green = "#b8bb26";
magenta = "#d3869b";
red = "#fb4934";
white = "#ebdbb2";
yellow = "#fabd2f";
};
normal = {
black = "#282828";
blue = "#458588";
cyan = "#689d6a";
green = "#98971a";
magenta = "#b16286";
red = "#cc241d";
white = "#a89984";
yellow = "#d79921";
};
primary = {
background = "#282828";
foreground = "#ebdbb2";
};
};
env = {
TERM = "xterm-256color";
};
font = {
size = 12.0;
normal.family = "JetBrainsMono Nerd Font Mono";
};
};
};
config,
pkgs,
...
}: {
programs.alacritty = {
enable = true;
settings = {
colors = {
bright = {
black = "#928374";
blue = "#83a598";
cyan = "#8ec07c";
green = "#b8bb26";
magenta = "#d3869b";
red = "#fb4934";
white = "#ebdbb2";
yellow = "#fabd2f";
};
normal = {
black = "#282828";
blue = "#458588";
cyan = "#689d6a";
green = "#98971a";
magenta = "#b16286";
red = "#cc241d";
white = "#a89984";
yellow = "#d79921";
};
primary = {
background = "#282828";
foreground = "#ebdbb2";
};
};
env = {
TERM = "xterm-256color";
};
font = {
size = 12.0;
normal.family = "JetBrainsMono Nerd Font Mono";
};
};
};
}

View file

@ -1,11 +1,13 @@
{ config, pkgs, ... }:
{
programs.btop = {
enable = true;
settings = {
color_theme = "gruvbox_dark_v2";
vim_keys = true;
};
};
config,
pkgs,
...
}: {
programs.btop = {
enable = true;
settings = {
color_theme = "gruvbox_dark_v2";
vim_keys = true;
};
};
}

View file

@ -1,14 +1,16 @@
{ config, pkgs, ... }:
{
programs.git = {
enable = true;
delta.enable = true;
userEmail = "stefan@tague.at";
userName = "s-prechtl";
extraConfig = {
init.defaultBranch = "master";
push.autoSetupRemote = true;
};
};
config,
pkgs,
...
}: {
programs.git = {
enable = true;
delta.enable = true;
userEmail = "stefan@tague.at";
userName = "s-prechtl";
extraConfig = {
init.defaultBranch = "master";
push.autoSetupRemote = true;
};
};
}

View file

@ -1,156 +1,159 @@
{ config, pkgs, ... }:
{
config,
pkgs,
...
}: {
imports = [
./hyprlock.nix
];
./hyprlock.nix
];
wayland.windowManager.hyprland = {
enable = true;
xwayland.enable = true;
systemd.enable = true;
settings = {
# BINDS
"$mod" = "SUPER";
bind = [
"SUPERSHIFT, E, exit"
"$mod, Q, killactive"
"$mod, B, exec, brave"
"$mod, return, exec, alacritty"
"$mod,E,exec,nautilus"
"$mod,D,exec,killall -q wofi; wofi --show drun -I"
"SUPERSHIFT,R,exec,hyprctl reload"
"$mod,space,togglefloating,"
"ALTSHIFT, L, exec, swaylock"
"$mod,F,fullscreen"
"ALTSHIFT,K,exec,amixer set 'Master' 5%+"
"ALTSHIFT,J,exec,amixer set 'Master' 5%-"
"SUPERSHIFT,N,exec, swaync-client -t -sw"
"$mod, M, exec,hyprctl keyword monitor 'eDP-1, enable'"
"SUPERSHIFT, M, exec,hyprctl keyword monitor 'eDP-1, disable'"
"SUPERSHIFT,P,exec,hyprshot -m region -o ~/Screenshot/"
"SUPERALTSHIFT, P, exec, hyprshot -m window -o ~/Screenshot/"
enable = true;
xwayland.enable = true;
systemd.enable = true;
settings = {
# BINDS
"$mod" = "SUPER";
bind =
[
"SUPERSHIFT, E, exit"
"$mod, Q, killactive"
"$mod, B, exec, brave"
"$mod, return, exec, alacritty"
"$mod,E,exec,nautilus"
"$mod,D,exec,killall -q wofi; wofi --show drun -I"
"SUPERSHIFT,R,exec,hyprctl reload"
"$mod,space,togglefloating,"
"ALTSHIFT, L, exec, swaylock"
"$mod,F,fullscreen"
"ALTSHIFT,K,exec,amixer set 'Master' 5%+"
"ALTSHIFT,J,exec,amixer set 'Master' 5%-"
"SUPERSHIFT,N,exec, swaync-client -t -sw"
"$mod, M, exec,hyprctl keyword monitor 'eDP-1, enable'"
"SUPERSHIFT, M, exec,hyprctl keyword monitor 'eDP-1, disable'"
"SUPERSHIFT,P,exec,hyprshot -m region -o ~/Screenshot/"
"SUPERALTSHIFT, P, exec, hyprshot -m window -o ~/Screenshot/"
"$mod,left,movefocus,l"
"$mod, H,movefocus,l"
"SUPERALT, left, movewindow, l"
"SUPERALT, H, movewindow, l"
"$mod,right,movefocus,r"
"$mod, L,movefocus,r"
"SUPERALT, right, movewindow, r"
"SUPERALT, L, movewindow, r"
"$mod,up,movefocus,u"
"$mod, K,movefocus,u"
"SUPERALT, up, movewindow, u"
"SUPERALT, K, movewindow, u"
"$mod,down,movefocus,d"
"$mod, J,movefocus,d"
"SUPERALT, down, movewindow, d"
"SUPERALT, J, movewindow, d"
]
++ (
# workspaces
# binds $mod + [shift +] {1..9} to [move to] workspace {1..9}
builtins.concatLists (builtins.genList (i:
let ws = i + 1;
in [
"$mod, code:1${toString i}, workspace, ${toString ws}"
"$mod SHIFT, code:1${toString i}, movetoworkspace, ${toString ws}"
]
)
9)
);
"$mod,left,movefocus,l"
"$mod, H,movefocus,l"
"SUPERALT, left, movewindow, l"
"SUPERALT, H, movewindow, l"
"$mod,right,movefocus,r"
"$mod, L,movefocus,r"
"SUPERALT, right, movewindow, r"
"SUPERALT, L, movewindow, r"
"$mod,up,movefocus,u"
"$mod, K,movefocus,u"
"SUPERALT, up, movewindow, u"
"SUPERALT, K, movewindow, u"
"$mod,down,movefocus,d"
"$mod, J,movefocus,d"
"SUPERALT, down, movewindow, d"
"SUPERALT, J, movewindow, d"
]
++ (
# workspaces
# binds $mod + [shift +] {1..9} to [move to] workspace {1..9}
builtins.concatLists (builtins.genList (
i: let
ws = i + 1;
in [
"$mod, code:1${toString i}, workspace, ${toString ws}"
"$mod SHIFT, code:1${toString i}, movetoworkspace, ${toString ws}"
]
)
9)
);
bindm = [
"$mod, mouse:272,movewindow"
"$mod, mouse:273,resizewindow"
];
binde = [
",XF86MonBrightnessDown,exec,brightnessctl --device=intel_backlight s 5%-"
",XF86MonBrightnessUp,exec,brightnessctl --device=intel_backlight s 5%+"
"SUPERSHIFT,right,resizeactive, 10 0"
"SUPERSHIFT,L,resizeactive, 10 0"
"SUPERSHIFT,down,resizeactive, 0 10"
"SUPERSHIFT,J,resizeactive, 0 10"
"SUPERSHIFT,left,resizeactive, -10 0"
"SUPERSHIFT,H,resizeactive, -10 0"
"SUPERSHIFT,up,resizeactive, 0 -10"
"SUPERSHIFT,K,resizeactive, 0 -10"
];
bindm = [
"$mod, mouse:272,movewindow"
"$mod, mouse:273,resizewindow"
];
binde = [
",XF86MonBrightnessDown,exec,brightnessctl --device=intel_backlight s 5%-"
",XF86MonBrightnessUp,exec,brightnessctl --device=intel_backlight s 5%+"
"SUPERSHIFT,right,resizeactive, 10 0"
"SUPERSHIFT,L,resizeactive, 10 0"
"SUPERSHIFT,down,resizeactive, 0 10"
"SUPERSHIFT,J,resizeactive, 0 10"
"SUPERSHIFT,left,resizeactive, -10 0"
"SUPERSHIFT,H,resizeactive, -10 0"
"SUPERSHIFT,up,resizeactive, 0 -10"
"SUPERSHIFT,K,resizeactive, 0 -10"
];
# MONITOR
# MONITOR
monitor = [
"eDP-1,2560x1600@165.0,0x0,2"
];
monitor = [
"eDP-1,2560x1600@165.0,0x0,2"
];
# INPUT
# INPUT
input = {
kb_layout="us";
kb_options="compose:ralt,caps:escape";
follow_mouse=2;
input = {
kb_layout = "us";
kb_options = "compose:ralt,caps:escape";
follow_mouse = 2;
touchpad = {
natural_scroll="yes";
};
touchpad = {
natural_scroll = "yes";
};
sensitivity=0.0; # -1.0 - 1.0, 0 means no modification.
};
sensitivity = 0.0; # -1.0 - 1.0, 0 means no modification.
};
# GENERAL
general = {
gaps_in=10;
gaps_out=20;
# GENERAL
general = {
gaps_in = 10;
gaps_out = 20;
border_size=2;
"col.active_border"="0xffBF616A";
"col.inactive_border"="0xffebdbb2";
};
border_size = 2;
"col.active_border" = "0xffBF616A";
"col.inactive_border" = "0xffebdbb2";
};
# CURSOR
cursor = {
no_warps=true;
inactive_timeout=3;
};
# CURSOR
cursor = {
no_warps = true;
inactive_timeout = 3;
};
# DECORATION
decoration = {
active_opacity=0.95;
inactive_opacity=0.95;
rounding=10;
};
# DECORATION
decoration = {
active_opacity = 0.95;
inactive_opacity = 0.95;
rounding = 10;
};
# ANIMATION
animations = {
enabled=1;
bezier="overshot,0.13,0.99,0.29,1.1";
animation = [
"windows,1,4,overshot,slide"
"border,1,10,default"
"fade,1,10,default"
"workspaces,1,6,overshot,slide"
];
};
# ANIMATION
animations = {
enabled = 1;
bezier = "overshot,0.13,0.99,0.29,1.1";
animation = [
"windows,1,4,overshot,slide"
"border,1,10,default"
"fade,1,10,default"
"workspaces,1,6,overshot,slide"
];
};
# EXEC ONCE
exec-once = [
"waybar"
"nm-applet"
"swaync"
"whatpulse"
];
# EXEC ONCE
exec-once = [
"waybar"
"nm-applet"
"swaync"
"whatpulse"
];
# WINDOW RULES
windowrule = [
"move 400 400, float, title:(jetbrains toolbox)"
"float,wofi"
"opacity 1 override,title:^(.*)(Brave)(.*)$"
];
# WINDOW RULES
windowrule = [
"move 400 400, float, title:(jetbrains toolbox)"
"float,wofi"
"opacity 1 override,title:^(.*)(Brave)(.*)$"
];
};
};
};
# Optional, hint Electron apps to use Wayland:
home.sessionVariables = {
NIXOS_OZONE_WL = "1";
NIXOS_OZONE_WL = "1";
};
}

View file

@ -1,39 +1,41 @@
{ config, pkgs, ... }:
{
programs.hyprlock = {
enable = true;
settings = {
general = {
disable_loading_bar = true;
grace = 300;
hide_cursor = true;
no_fade_in = false;
};
config,
pkgs,
...
}: {
programs.hyprlock = {
enable = true;
settings = {
general = {
disable_loading_bar = true;
grace = 300;
hide_cursor = true;
no_fade_in = false;
};
background = [
{
path = "screenshot";
blur_passes = 3;
blur_size = 8;
}
];
background = [
{
path = "screenshot";
blur_passes = 3;
blur_size = 8;
}
];
input-field = [
{
size = "200, 50";
position = "0, -80";
monitor = "";
dots_center = true;
fade_on_empty = false;
font_color = "rgb(202, 211, 245)";
inner_color = "rgb(91, 96, 120)";
outer_color = "rgb(24, 25, 38)";
outline_thickness = 5;
placeholder_text = "<span foreground='##cad3f5'>Password...</span>";
shadow_passes = 2;
}
];
};
};
input-field = [
{
size = "200, 50";
position = "0, -80";
monitor = "";
dots_center = true;
fade_on_empty = false;
font_color = "rgb(202, 211, 245)";
inner_color = "rgb(91, 96, 120)";
outer_color = "rgb(24, 25, 38)";
outline_thickness = 5;
placeholder_text = "<span foreground='##cad3f5'>Password...</span>";
shadow_passes = 2;
}
];
};
};
}

View file

@ -1,8 +1,10 @@
{ config, pkgs, ... }:
{
services.nextcloud-client = {
enable = true;
startInBackground = true;
};
config,
pkgs,
...
}: {
services.nextcloud-client = {
enable = true;
startInBackground = true;
};
}

View file

@ -1,12 +1,14 @@
{ config, pkgs, ... }:
{
programs.password-store = {
config,
pkgs,
...
}: {
programs.password-store = {
enable = true;
settings = {
PASSWORD_STORE_DIR="$HOME/.password-store";
PASSWORD_STORE_GENERATED_LENGTH = "20";
PASSWORD_STORE_ENABLE_EXTENSIONS = "true";
PASSWORD_STORE_DIR = "$HOME/.password-store";
PASSWORD_STORE_GENERATED_LENGTH = "20";
PASSWORD_STORE_ENABLE_EXTENSIONS = "true";
};
};
programs.browserpass.enable = true;

File diff suppressed because it is too large Load diff

View file

@ -1,68 +1,70 @@
{ config, pkgs, ... }:
{
programs.wofi = {
enable = true;
settings = {
allow-images=true;
image-size="64px";
gtk_dark=true;
insensitive=true;
halign=true;
location="center";
prompt="Search...";
orientation="vertical";
};
style = ''
@define-color base00 #282828;
@define-color base01 #3C3836;
@define-color base02 #504945;
@define-color base03 #665C54;
@define-color base04 #BDAE93;
@define-color base06 #D5C4A1;
@define-color base06 #EBDBB2;
@define-color base07 #FBF1C7;
@define-color base08 #FB4934;
@define-color base09 #FE8019;
@define-color base0A #FABD2F;
@define-color base0B #B8BB26;
@define-color base0C #8EC07C;
@define-color base0D #83A598;
@define-color base0E #D3869B;
@define-color base0F #D65D0E;
config,
pkgs,
...
}: {
programs.wofi = {
enable = true;
settings = {
allow-images = true;
image-size = "64px";
gtk_dark = true;
insensitive = true;
halign = true;
location = "center";
prompt = "Search...";
orientation = "vertical";
};
style = ''
@define-color base00 #282828;
@define-color base01 #3C3836;
@define-color base02 #504945;
@define-color base03 #665C54;
@define-color base04 #BDAE93;
@define-color base06 #D5C4A1;
@define-color base06 #EBDBB2;
@define-color base07 #FBF1C7;
@define-color base08 #FB4934;
@define-color base09 #FE8019;
@define-color base0A #FABD2F;
@define-color base0B #B8BB26;
@define-color base0C #8EC07C;
@define-color base0D #83A598;
@define-color base0E #D3869B;
@define-color base0F #D65D0E;
window {
margin: 5px;
border-radius: 10px;
background-color: @base03;
}
window {
margin: 5px;
border-radius: 10px;
background-color: @base03;
}
#input {
border-radius: 5px;
background-color: @base03;
color: @base06;
}
#input {
border-radius: 5px;
background-color: @base03;
color: @base06;
}
#inner-box {
margin: 5px;
color: @base06;
background-color: @base00;
}
#inner-box {
margin: 5px;
color: @base06;
background-color: @base00;
}
#outer-box {
margin: 5px;
background-color: @base00;
}
#outer-box {
margin: 5px;
background-color: @base00;
}
#scroll {
margin: 5px;
background-color: @base00;
}
#scroll {
margin: 5px;
background-color: @base00;
}
#text {
margin: 2px;
}
#text {
margin: 2px;
}
'';
};
'';
};
}

View file

@ -1,25 +1,27 @@
{ config, pkgs, ... }:
{
programs.eza.enable = true;
programs.zsh = {
enable = true;
shellAliases = {
ll = "exa --icons -l";
l = "exa --icons -la";
ls = "exa --icons";
update = "sudo nixos-rebuild switch";
clear = "clear && fastfetch";
};
config,
pkgs,
...
}: {
programs.eza.enable = true;
programs.zsh = {
enable = true;
shellAliases = {
ll = "exa --icons -l";
l = "exa --icons -la";
ls = "exa --icons";
update = "sudo nixos-rebuild switch";
clear = "clear && fastfetch";
};
history.size = 10000;
autosuggestion.enable = true;
syntaxHighlighting.enable = true;
history.size = 10000;
autosuggestion.enable = true;
syntaxHighlighting.enable = true;
oh-my-zsh = {
enable = true;
plugins = [ "git" "docker" ];
theme = "strug";
};
};
oh-my-zsh = {
enable = true;
plugins = ["git" "docker"];
theme = "strug";
};
};
}