2023-11-01 16:27:35 +01:00
|
|
|
{ inputs
|
|
|
|
, outputs
|
|
|
|
, lib
|
|
|
|
, config
|
|
|
|
, pkgs
|
|
|
|
, ...
|
2023-10-31 12:20:02 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
{
|
|
|
|
home = {
|
|
|
|
username = "kalle";
|
|
|
|
homeDirectory = "/home/kalle";
|
|
|
|
};
|
2024-01-10 11:54:07 +01:00
|
|
|
|
2023-10-31 12:20:02 +01:00
|
|
|
imports =
|
|
|
|
[
|
|
|
|
../../nvim
|
2024-02-29 10:34:02 +01:00
|
|
|
../../tmux
|
2023-11-01 23:14:49 +01:00
|
|
|
../../eww
|
2024-01-10 11:54:07 +01:00
|
|
|
../../hyprland
|
|
|
|
../../hyprland/hyprpaper.nix
|
2024-07-25 19:29:32 +02:00
|
|
|
../../ags
|
2023-10-31 12:20:02 +01:00
|
|
|
];
|
|
|
|
|
2024-01-10 11:54:07 +01:00
|
|
|
hyprland =
|
|
|
|
let
|
|
|
|
mod = "SUPER"; in
|
|
|
|
{
|
|
|
|
mod = mod;
|
|
|
|
|
|
|
|
primaryMonitor = "DP-2";
|
|
|
|
monitors = [
|
|
|
|
{
|
|
|
|
name = "DP-2";
|
|
|
|
width = 1920;
|
|
|
|
height = 1080;
|
|
|
|
refreshRate = 144;
|
|
|
|
x = 0;
|
|
|
|
y = 1080;
|
|
|
|
vrr = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
{
|
|
|
|
name = "HDMI-A-1";
|
|
|
|
width = 1920;
|
|
|
|
height = 1080;
|
|
|
|
x = 1500;
|
|
|
|
y = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
{
|
|
|
|
name = "HDMI-A-2";
|
|
|
|
width = 1920;
|
|
|
|
height = 1080;
|
|
|
|
x = 1920;
|
|
|
|
y = 1080;
|
|
|
|
transform = 3;
|
|
|
|
}
|
|
|
|
];
|
|
|
|
|
|
|
|
autoStart = [
|
|
|
|
# Bar
|
2024-07-27 01:23:05 +02:00
|
|
|
"${pkgs.ags}/bin/ags"
|
2024-01-10 11:54:07 +01:00
|
|
|
"${pkgs.firefox}/bin/firefox"
|
|
|
|
"${pkgs.discord}/bin/discord"
|
|
|
|
];
|
|
|
|
|
|
|
|
environment = {
|
|
|
|
XCURSOR_SIZE = "24";
|
|
|
|
QT_QPA_PLATFORMTHEME = "qt5ct";
|
|
|
|
};
|
|
|
|
|
|
|
|
sensitivity = 0.1;
|
|
|
|
|
|
|
|
layout = "dwindle";
|
|
|
|
|
|
|
|
layerRules = {
|
|
|
|
"gtk-layer-shell" = [ "blur" "ignorezero" ];
|
2024-07-25 19:29:32 +02:00
|
|
|
"notifications2" = [ "noanim" "blur" "ignorezero"];
|
2024-01-10 11:54:07 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
windowRules = {
|
|
|
|
# Auto workspace
|
|
|
|
firefox = [ "workspace 1 silent" ];
|
|
|
|
discord = [ "workspace name:HDMI-A-2" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
windowRulesV2 = {
|
|
|
|
# ULauncher
|
|
|
|
"class:^(ulauncher)$" = [
|
|
|
|
"forceinput"
|
|
|
|
"dimaround"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
# Media keys
|
|
|
|
# bind = ,XF86AudioPlay, exec, playerctl --player plasma-browser-integration play-pause
|
|
|
|
# bind = ,XF86AudioPrev, exec, playerctl previous
|
|
|
|
# bind = ,XF86AudioNext, exec, playerctl next
|
|
|
|
# bind = ,XF86AudioLowerVolume, exec, playerctl --player plasma-browser-integration volume 0.01-
|
|
|
|
# bind = ,XF86AudioRaiseVolume, exec, playerctl --player plasma-browser-integration volume 0.01+
|
|
|
|
|
|
|
|
# This is a dumb work around for hyprland not passing ALT half the time with the pass dispatcher.
|
|
|
|
# bind = ALT, M, exec, xdotool key 'ALT+m'
|
|
|
|
# bind = ALT, B, exec, xdotool key 'ALT+b'
|
|
|
|
binds = {
|
|
|
|
"${mod}, return" = "exec, kitty";
|
|
|
|
"${mod}, E" = "exec, ulauncher-toggle #wofi --show drun";
|
|
|
|
"${mod}, Print" = "exec, bash -c \"grim -g \\\"$(slurp)\\\" - | wl-copy\"";
|
|
|
|
# Clipboard history
|
|
|
|
# bind = $mainMod, V, exec, cliphist list | wofi --dmenu | cliphist decode | wl-copy
|
|
|
|
};
|
|
|
|
|
|
|
|
mouseBinds = { };
|
|
|
|
};
|
|
|
|
|
|
|
|
hyprpaper = {
|
|
|
|
wallpaperFolder = "/home/kalle/Pictures/Wallpapers";
|
|
|
|
};
|
|
|
|
|
2023-11-01 16:27:35 +01:00
|
|
|
nixpkgs = {
|
|
|
|
overlays = with outputs.overlays; [
|
|
|
|
nvim-plugins
|
|
|
|
];
|
|
|
|
|
|
|
|
config = {
|
|
|
|
allowUnfree = true;
|
|
|
|
allowUnfreePredicate = _: true;
|
2024-02-29 10:34:02 +01:00
|
|
|
|
|
|
|
permittedInsecurePackages = [
|
|
|
|
"electron-25.9.0"
|
|
|
|
];
|
2023-11-01 16:27:35 +01:00
|
|
|
};
|
|
|
|
};
|
2023-10-31 12:20:02 +01:00
|
|
|
|
|
|
|
# The home.packages option allows you to install Nix packages into your
|
|
|
|
# environment.
|
|
|
|
home.packages = with pkgs; [
|
|
|
|
discord
|
2024-02-29 10:34:02 +01:00
|
|
|
vesktop
|
2024-01-10 11:54:07 +01:00
|
|
|
chromium
|
2023-10-31 12:20:02 +01:00
|
|
|
httpie
|
|
|
|
kate
|
2024-01-10 11:54:07 +01:00
|
|
|
dolphin
|
|
|
|
ark
|
2023-11-01 16:27:35 +01:00
|
|
|
rustup
|
2024-01-10 11:54:07 +01:00
|
|
|
gcc
|
2023-11-01 23:14:49 +01:00
|
|
|
prismlauncher
|
2024-01-10 11:54:07 +01:00
|
|
|
pavucontrol
|
|
|
|
difftastic
|
|
|
|
sops
|
2024-07-25 19:29:32 +02:00
|
|
|
(obsidian.override {
|
2024-07-27 01:23:05 +02:00
|
|
|
electron = electron_29-bin;
|
2024-07-25 19:29:32 +02:00
|
|
|
})
|
|
|
|
unzip
|
|
|
|
vlc
|
2024-07-27 01:23:05 +02:00
|
|
|
feishin
|
2024-01-10 11:54:07 +01:00
|
|
|
|
|
|
|
cachix
|
2023-10-31 12:20:02 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
programs.home-manager.enable = true;
|
2024-07-27 01:23:05 +02:00
|
|
|
|
|
|
|
programs.firefox = {
|
|
|
|
enable = true;
|
|
|
|
nativeMessagingHosts = [ pkgs.plasma-browser-integration ];
|
|
|
|
};
|
2024-07-25 19:29:32 +02:00
|
|
|
|
2024-02-29 10:34:02 +01:00
|
|
|
gtk = {
|
2024-07-25 19:29:32 +02:00
|
|
|
enable = true;
|
2024-02-29 10:34:02 +01:00
|
|
|
theme = {
|
2024-07-25 19:29:32 +02:00
|
|
|
name = "Adwaita-dark";
|
|
|
|
package = pkgs.gnome-themes-extra;
|
2024-02-29 10:34:02 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
iconTheme = {
|
|
|
|
name = "breeze-dark";
|
2024-07-25 19:29:32 +02:00
|
|
|
package = pkgs.kdePackages.breeze-icons;
|
|
|
|
};
|
|
|
|
|
|
|
|
cursorTheme = {
|
|
|
|
name = "breeze_cursors";
|
|
|
|
package = pkgs.libsForQt5.breeze-qt5;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
qt = {
|
|
|
|
enable = true;
|
|
|
|
style.name = "breeze-dark";
|
|
|
|
};
|
|
|
|
|
|
|
|
dconf = {
|
|
|
|
enable = true;
|
|
|
|
settings = {
|
|
|
|
"org/gnome/desktop/interface" = {
|
|
|
|
color-scheme = "prefer-dark";
|
|
|
|
};
|
2024-02-29 10:34:02 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-01-10 11:54:07 +01:00
|
|
|
programs.bash = {
|
|
|
|
enable = true;
|
|
|
|
shellAliases = {
|
|
|
|
# Git aliases
|
|
|
|
gg = "git log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an (%ae)%C(reset)' --all";
|
|
|
|
gca = "git add -A; git commit -a --amend --no-edit";
|
|
|
|
gs = "git status";
|
|
|
|
|
|
|
|
# Replace some commands with better versions
|
|
|
|
ssh = "kitty +kitten ssh";
|
2024-07-25 19:29:32 +02:00
|
|
|
diff = "${pkgs.difftastic}/bin/difft";
|
2024-01-10 11:54:07 +01:00
|
|
|
};
|
|
|
|
initExtra = ''
|
|
|
|
function open() {
|
|
|
|
xdg-open $@ &> /dev/null &
|
|
|
|
}
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
programs.kitty = {
|
|
|
|
enable = true;
|
|
|
|
theme = "Catppuccin-Mocha";
|
|
|
|
settings = {
|
|
|
|
background_opacity = "0.8";
|
|
|
|
allow_remote_control = true;
|
2024-07-25 19:29:32 +02:00
|
|
|
enable_audio_bell = false;
|
2024-01-10 11:54:07 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
programs.starship = {
|
|
|
|
enable = true;
|
|
|
|
settings = {
|
|
|
|
add_newline = true;
|
|
|
|
|
|
|
|
# Remove text from nix shell component
|
|
|
|
nix_shell.format = "via [$symbol]($style) ";
|
|
|
|
|
|
|
|
git_status.disabled = true;
|
|
|
|
package.disabled = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
programs.direnv = {
|
|
|
|
enable = true;
|
|
|
|
enableBashIntegration = true;
|
|
|
|
nix-direnv.enable = true;
|
|
|
|
};
|
|
|
|
|
2023-10-31 12:20:02 +01:00
|
|
|
programs.git = {
|
|
|
|
enable = true;
|
|
|
|
userName = "Kalle Struik";
|
|
|
|
userEmail = "kalle@kallestruik.nl";
|
2024-01-10 11:54:07 +01:00
|
|
|
difftastic.enable = true;
|
2023-10-31 12:20:02 +01:00
|
|
|
extraConfig = {
|
|
|
|
init.defaultBranch = "main";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
home.sessionVariables = {
|
|
|
|
EDITOR = "nvim";
|
|
|
|
};
|
|
|
|
|
|
|
|
# This value determines the Home Manager release that your configuration is
|
|
|
|
# compatible with. This helps avoid breakage when a new Home Manager release
|
|
|
|
# introduces backwards incompatible changes.
|
|
|
|
#
|
|
|
|
# You should not change this value, even if you update Home Manager. If you do
|
|
|
|
# want to update the value, then make sure to first check the Home Manager
|
|
|
|
# release notes.
|
|
|
|
home.stateVersion = "23.05"; # Please read the comment before changing.
|
|
|
|
}
|