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

182
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 = [
./hyprland/hyprland.nix
./waybar/settings.nix ./waybar/settings.nix
./emacs/emacs.nix ./emacs/emacs.nix
# ./chicken/chicken.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,11 +346,17 @@ 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;
@ -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,21 +548,21 @@ 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 = {
@ -525,7 +572,7 @@ programs.hyprlock = {
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;
@ -559,19 +606,19 @@ programs.hyprlock = {
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 = {
@ -589,9 +636,9 @@ services.hypridle = {
} }
]; ];
}; };
}; };
services.hyprpaper = { services.hyprpaper = {
enable = true; enable = true;
settings = { settings = {
ipc = "on"; ipc = "on";
@ -604,22 +651,21 @@ services.hyprpaper = {
",${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
]
))
];
}