This commit is contained in:
Daniel Ziltener 2024-10-04 02:31:25 +02:00
parent bcc51bc93b
commit fd506c76c5
Signed by: zilti
GPG key ID: B38976E82C9DAE42
3 changed files with 214 additions and 142 deletions

1
.gitignore vendored
View file

@ -8,3 +8,4 @@ hardware-configuration.nix
*~ *~
flake.lock flake.lock

336
home.nix
View file

@ -1,4 +1,10 @@
args@{ config, pkgs, split-monitor-workspaces, nix-flatpak, ... }: args@{
config,
pkgs,
split-monitor-workspaces,
nix-flatpak,
...
}:
{ {
home.username = "zilti"; home.username = "zilti";
@ -93,16 +99,21 @@ args@{ config, pkgs, split-monitor-workspaces, nix-flatpak, ... }:
wlr-randr wlr-randr
]; ];
imports = [ ./hyprland/hyprland.nix imports = [
./waybar/settings.nix ./hyprland/hyprland.nix
./emacs/emacs.nix ./waybar/settings.nix
# ./chicken/chicken.nix ./emacs/emacs.nix
]; # ./chicken/chicken.nix
./kodi/kodi.nix
];
home.stateVersion = "24.05"; home.stateVersion = "24.05";
programs.home-manager.enable = true; programs.home-manager.enable = true;
home.sessionPath = [ "${config.home.homeDirectory}/.config/emacs/bin" "${config.home.homeDirectory}/.local/bin" ]; home.sessionPath = [
"${config.home.homeDirectory}/.config/emacs/bin"
"${config.home.homeDirectory}/.local/bin"
];
home.sessionVariables = { home.sessionVariables = {
#PASSWORD_STORE_DIR = "${config.home.homeDirectory}/.local/share/password-store"; #PASSWORD_STORE_DIR = "${config.home.homeDirectory}/.local/share/password-store";
@ -189,8 +200,12 @@ args@{ config, pkgs, split-monitor-workspaces, nix-flatpak, ... }:
enable = true; enable = true;
}; };
}; };
thunderbird = { enable = true; }; thunderbird = {
aerc = { enable = true; }; enable = true;
};
aerc = {
enable = true;
};
}; };
bevuta = { bevuta = {
realName = "Daniel Ziltener"; realName = "Daniel Ziltener";
@ -211,8 +226,12 @@ args@{ config, pkgs, split-monitor-workspaces, nix-flatpak, ... }:
enable = true; enable = true;
}; };
}; };
thunderbird = { enable = true; }; thunderbird = {
aerc = { enable = true; }; enable = true;
};
aerc = {
enable = true;
};
}; };
}; };
}; };
@ -246,8 +265,14 @@ args@{ config, pkgs, split-monitor-workspaces, nix-flatpak, ... }:
}; };
}; };
remotes = [ remotes = [
{ name = "flathub"; location = "https://dl.flathub.org/repo/flathub.flatpakrepo"; } {
{ name = "flathub-beta"; location = "https://dl.flathub.org/beta-repo/flathub-beta.flatpakrepo"; } name = "flathub";
location = "https://dl.flathub.org/repo/flathub.flatpakrepo";
}
{
name = "flathub-beta";
location = "https://dl.flathub.org/beta-repo/flathub-beta.flatpakrepo";
}
]; ];
packages = [ packages = [
"com.github.tchx84.Flatseal" "com.github.tchx84.Flatseal"
@ -285,7 +310,9 @@ args@{ config, pkgs, split-monitor-workspaces, nix-flatpak, ... }:
kitty_mod = "ctrl+shift"; kitty_mod = "ctrl+shift";
enabled_layouts = "horizontal"; enabled_layouts = "horizontal";
}; };
keybindings = { "kitty_mod+enter" = "new_window"; }; keybindings = {
"kitty_mod+enter" = "new_window";
};
font = { font = {
name = "VictorMono Nerd Font Mono"; name = "VictorMono Nerd Font Mono";
size = 10; size = 10;
@ -319,28 +346,34 @@ args@{ config, pkgs, split-monitor-workspaces, nix-flatpak, ... }:
nix-direnv.enable = true; nix-direnv.enable = true;
}; };
programs.hstr = { enable = true; }; programs.hstr = {
enable = true;
};
programs.htop = { enable = true; }; programs.htop = {
enable = true;
};
programs.ripgrep = { enable = true; }; programs.ripgrep = {
enable = true;
};
home.file.".config/senpai/senpai.scfg" = { home.file.".config/senpai/senpai.scfg" = {
enable = true; enable = true;
text = '' text = ''
address ircs://lyrion.ch address ircs://lyrion.ch
nickname zilti nickname zilti
realname "Daniel Ziltener" realname "Daniel Ziltener"
password-cmd pass show Privat/Soju password-cmd pass show Privat/Soju
''; '';
}; };
home.file.".config/xdg-desktop-portal/hyprland-portals.conf" = { home.file.".config/xdg-desktop-portal/hyprland-portals.conf" = {
enable = true; enable = true;
text = '' text = ''
[preferred] [preferred]
default=hyprland;gtk default=hyprland;gtk
org.freedesktop.impl.portal.FileChooser=kde org.freedesktop.impl.portal.FileChooser=kde
''; '';
}; };
@ -384,7 +417,9 @@ args@{ config, pkgs, split-monitor-workspaces, nix-flatpak, ... }:
key = "37F655BAF43BC0FF300A91A1B38976E82C9DAE42"; key = "37F655BAF43BC0FF300A91A1B38976E82C9DAE42";
signByDefault = true; signByDefault = true;
}; };
diff-so-fancy = { enable = true; }; diff-so-fancy = {
enable = true;
};
extraConfig = { extraConfig = {
sendemail = { sendemail = {
annotate = true; annotate = true;
@ -414,12 +449,16 @@ args@{ config, pkgs, split-monitor-workspaces, nix-flatpak, ... }:
settings = { }; settings = { };
}; };
programs.tealdeer = { enable = true; }; programs.tealdeer = {
enable = true;
};
# https://github.com/ianthehenry/sd # https://github.com/ianthehenry/sd
programs.script-directory = { programs.script-directory = {
enable = true; enable = true;
settings = { SD_EDITOR = "vim"; }; settings = {
SD_EDITOR = "vim";
};
}; };
programs.password-store = { programs.password-store = {
@ -427,19 +466,27 @@ args@{ config, pkgs, split-monitor-workspaces, nix-flatpak, ... }:
package = pkgs.pass.withExtensions (exts: [ exts.pass-otp ]); package = pkgs.pass.withExtensions (exts: [ exts.pass-otp ]);
}; };
programs.browserpass = { enable = true; }; programs.browserpass = {
enable = true;
};
services.pueue = { enable = true; }; services.pueue = {
enable = true;
};
services.network-manager-applet.enable = true; services.network-manager-applet.enable = true;
services.batsignal = { enable = true; }; services.batsignal = {
enable = true;
};
# services.fusuma = { # services.fusuma = {
# enable = true; # enable = true;
# }; # };
services.copyq = { enable = true; }; services.copyq = {
enable = true;
};
# programs.vdirsyncer = { # programs.vdirsyncer = {
# enable = true; # enable = true;
@ -501,125 +548,124 @@ args@{ config, pkgs, split-monitor-workspaces, nix-flatpak, ... }:
# startInBackground = true; # startInBackground = true;
# }; # };
# programs.swaylock = { # programs.swaylock = {
# enable = true; # enable = true;
# package = "${pkgs.swaylock-effects}"; # package = "${pkgs.swaylock-effects}";
# settings = { # settings = {
# screenshots = true; # screenshots = true;
# clock = true; # clock = true;
# indicator-idle-visible = true; # indicator-idle-visible = true;
# grace = 3; # grace = 3;
# fade-in = 3; # fade-in = 3;
# effect-blur = "7x5"; # effect-blur = "7x5";
# effect-vignette = "0.5:0.5"; # effect-vignette = "0.5:0.5";
# }; # };
# }; # };
programs.hyprlock = { programs.hyprlock = {
enable = true; enable = true;
settings = { settings = {
general = { general = {
grace = 3; grace = 3;
}; };
background = { background = {
path = "screenshot"; path = "screenshot";
blur_passes = 2; blur_passes = 2;
blur_size = 8; blur_size = 8;
noise = 0.0117; noise = 1.17e-2;
contrast = 0.8916; contrast = 0.8916;
brightness = 0.8172; brightness = 0.8172;
vibrancy = 0.1696; vibrancy = 0.1696;
vibrancy_darkness = 0.0; vibrancy_darkness = 0.0;
}; };
input-field = { input-field = {
size = "200, 50"; size = "200, 50";
outline_thickness = 3; outline_thickness = 3;
dots_size = 0.33; dots_size = 0.33;
dots_spacing = 0.15; dots_spacing = 0.15;
dots_center = true; dots_center = true;
dots_rounding = -1; dots_rounding = -1;
outer_color = "rgb(151515)"; outer_color = "rgb(151515)";
inner_color = "rgb(200,200,200)"; inner_color = "rgb(200,200,200)";
font_color = "rgb(10,10,10)"; font_color = "rgb(10,10,10)";
fade_on_empty = true; fade_on_empty = true;
fade_timeout = 1000; fade_timeout = 1000;
placeholder_text = "<i>Input Password...</i>"; placeholder_text = "<i>Input Password...</i>";
hide_input = false; hide_input = false;
rounding = -1; rounding = -1;
check_color = "rgb(204,136,34)"; check_color = "rgb(204,136,34)";
fail_color = "rgb(204,34,34)"; fail_color = "rgb(204,34,34)";
fail_text = "<i>$FAIL <b>($ATTEMPTS)</b></i>"; fail_text = "<i>$FAIL <b>($ATTEMPTS)</b></i>";
fail_transition = 300; fail_transition = 300;
capslock_color = -1; capslock_color = -1;
numlock_color = -1; numlock_color = -1;
bothlock_color = -1; bothlock_color = -1;
invert_numlock = false; invert_numlock = false;
position = "0, -20"; position = "0, -20";
halign = "center"; halign = "center";
valign = "center"; valign = "center";
};
}; };
}; };
};
# services.swayidle = { # services.swayidle = {
# enable = true; # enable = true;
# events = [ ]; # events = [ ];
# timeouts = [{ # timeouts = [{
# timeout = 600; # timeout = 600;
# #command = "${pkgs.swaylock-effects}/bin/swaylock"; # #command = "${pkgs.swaylock-effects}/bin/swaylock";
# command = "hyprlock"; # command = "hyprlock";
# }]; # }];
# }; # };
services.hypridle = { services.hypridle = {
enable = true; enable = true;
settings = { settings = {
general = { general = {
after_sleep_cmd = "hyprctl dispatch dpms on"; after_sleep_cmd = "hyprctl dispatch dpms on";
};
listener = [
{
timeout = 300;
on-timeout = "${pkgs.hyprlock}/bin/hyprlock";
}
{
timeout = 1200;
on-timeout = "hyprctl dispatch dpms off";
on-resume = "hyprctl dispatch dpms on";
}
];
}; };
listener = [
{
timeout = 300;
on-timeout = "${pkgs.hyprlock}/bin/hyprlock";
}
{
timeout = 1200;
on-timeout = "hyprctl dispatch dpms off";
on-resume = "hyprctl dispatch dpms on";
}
];
}; };
};
services.hyprpaper = { services.hyprpaper = {
enable = true; enable = true;
settings = { settings = {
ipc = "on"; ipc = "on";
splash = true; splash = true;
splash_offset = 2.0; splash_offset = 2.0;
preload = [ preload = [
"${config.home.homeDirectory}/Stow/Desktop/config/wallpapers/Next/contents/images/3840x2160.png" "${config.home.homeDirectory}/Stow/Desktop/config/wallpapers/Next/contents/images/3840x2160.png"
]; ];
wallpaper = [ wallpaper = [
",${config.home.homeDirectory}/Stow/Desktop/config/wallpapers/Next/contents/images/3840x2160.png" ",${config.home.homeDirectory}/Stow/Desktop/config/wallpapers/Next/contents/images/3840x2160.png"
]; ];
};
}; };
};
# services.mako = { # services.mako = {
# enable = true; # enable = true;
# defaultTimeout = 5000; # defaultTimeout = 5000;
# }; # };
# services.gammastep = {
# enable = true;
# provider = "geoclue2";
# temperature = {
# day = 5500;
# night = 2700;
# };
# };
# services.gammastep = {
# enable = true;
# provider = "geoclue2";
# temperature = {
# day = 5500;
# night = 2700;
# };
# };
services.swaync = { services.swaync = {
enable = true; enable = true;
@ -629,7 +675,9 @@ services.hyprpaper = {
}; };
}; };
programs.wlogout = { enable = true; }; programs.wlogout = {
enable = true;
};
programs.fuzzel = { programs.fuzzel = {
enable = true; enable = true;
@ -655,11 +703,15 @@ services.hyprpaper = {
programs.firefox = { programs.firefox = {
enable = true; enable = true;
profiles.default = { isDefault = true; }; profiles.default = {
isDefault = true;
};
}; };
programs.thunderbird = { programs.thunderbird = {
enable = true; enable = true;
profiles.default = { isDefault = true; }; profiles.default = {
isDefault = true;
};
}; };
} }

19
kodi/kodi.nix Normal file
View file

@ -0,0 +1,19 @@
{ pkgs, ... }:
{
home.packages = with pkgs; [
(kodi.passthru.withPackages (
kodiPkgs: with kodiPkgs; [
certifi
controller-topology-project
inputstream-adaptive
invidious
keymap
mediathekview
sendtokodi
sponsorblock
youtube
]
))
];
}