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

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