clean home manager

This commit is contained in:
afoucaultc 2026-08-08 16:05:06 +02:00
parent db38c76bb0
commit 481556c7ac
19 changed files with 155 additions and 67 deletions

View file

@ -1 +1 @@
/nix/store/m7baqiydal7zmd55ki3lbh7qqc8xr0ms-home-manager-files/.config/hypr/.luarc.json
/nix/store/yaksysd8kvxqwyv04sd4g97la1sh762c-home-manager-files/.config/hypr/.luarc.json

View file

@ -1,8 +1,7 @@
-- shutdown hyprland and lock
hl.bind(
"CTRL + ALT + M",
hl.dsp.exec_cmd("command -v hyprshutdown >/dev/null 2>&1 && hyprshutdown || hyprctl dispatch exit"),
{ description = "hyprland shutdown" }
hl.dsp.exec_cmd("command -v hyprshutdown >/dev/null 2>&1 && hyprshutdown || hyprctl dispatch 'hl.dsp.exit()'")
)
hl.bind("CTRL + ALT + L", hl.dsp.exec_cmd(lockscreen))
-- launchers

View file

@ -1 +1 @@
/nix/store/m7baqiydal7zmd55ki3lbh7qqc8xr0ms-home-manager-files/.config/hypr/hyprland.lua
/nix/store/yaksysd8kvxqwyv04sd4g97la1sh762c-home-manager-files/.config/hypr/hyprland.lua

View file

@ -1 +1 @@
/nix/store/m7baqiydal7zmd55ki3lbh7qqc8xr0ms-home-manager-files/.config/inkscape/palettes
/nix/store/yaksysd8kvxqwyv04sd4g97la1sh762c-home-manager-files/.config/inkscape/palettes

View file

@ -1 +1 @@
/nix/store/m7baqiydal7zmd55ki3lbh7qqc8xr0ms-home-manager-files/.config/inkscape/templates
/nix/store/yaksysd8kvxqwyv04sd4g97la1sh762c-home-manager-files/.config/inkscape/templates

View file

@ -1 +1 @@
/nix/store/m7baqiydal7zmd55ki3lbh7qqc8xr0ms-home-manager-files/.config/kitty/kitty.conf
/nix/store/yaksysd8kvxqwyv04sd4g97la1sh762c-home-manager-files/.config/kitty/kitty.conf

12
flake.lock generated
View file

@ -336,11 +336,11 @@
"tinted-zed": "tinted-zed"
},
"locked": {
"lastModified": 1786128941,
"narHash": "sha256-xjrN7ziovhkScO/neQAg8g7Wkl1wmf9YcL6+wMlDYPw=",
"lastModified": 1786144742,
"narHash": "sha256-ROqWcNC1qYU2p0EY1d9BHnZbcl0ZDaCmXtojENSqL18=",
"owner": "danth",
"repo": "stylix",
"rev": "ce31340522e54e072cb3504ba082f1ecdde47639",
"rev": "d18ba6834c7f1141429b6d4cf148fff6c8c41139",
"type": "github"
},
"original": {
@ -472,11 +472,11 @@
]
},
"locked": {
"lastModified": 1786118193,
"narHash": "sha256-RhkiElXANPrHOXTncgUmKHVw8FHuRZjAXmtUPQfB91c=",
"lastModified": 1786171986,
"narHash": "sha256-kvmCZLYbByuE+zskqtf5+UPGrFI8e8KspB8jVey0nj0=",
"owner": "0xc000022070",
"repo": "zen-browser-flake",
"rev": "43272965c62be2c512630bc80deeb6792b2f285b",
"rev": "f3a721857afb4c34f687390213e0bc034d8e4999",
"type": "github"
},
"original": {

View file

@ -6,25 +6,8 @@
imports = [
# fichier individuel dans packages = programs.xyz existant
# sinon, dans other_apps*
./packages/btop.nix
./packages/firefox.nix
./packages/git.nix
./packages/security.nix
./packages/hyprland.nix
./packages/kitty.nix
./packages/mpv.nix
./packages/neovim.nix
./packages/niri/niri.nix
./packages/nextcloud.nix
./packages/other_apps_light.nix
./packages/mako.nix
./packages/python.nix
./packages/texlive.nix
./packages/thunderbird.nix
./packages/tmux.nix
./packages/zathura.nix
./packages/zen.nix
./packages/zsh.nix
./shared.nix
# dotfiles links
./dotfiles_apps.nix
];

View file

@ -6,27 +6,9 @@
imports = [
# fichier individuel dans packages = programs.xyz existant
# sinon, dans other_apps*
./packages/btop.nix
./packages/firefox.nix
./packages/git.nix
./packages/security.nix
./packages/hyprland.nix
./packages/kitty.nix
./packages/mpv.nix
#./packages/music.nix
./packages/neovim.nix
./packages/niri/niri.nix
./packages/nextcloud.nix
./packages/obs.nix
./packages/other_apps.nix
./packages/mako.nix
./packages/python.nix
./packages/texlive.nix
./packages/thunderbird.nix
./packages/tmux.nix
./packages/zathura.nix
./packages/zen.nix
./packages/zsh.nix
./shared.nix
# dotfiles links
./dotfiles_apps.nix
];

View file

@ -131,5 +131,8 @@
"Alt+Tab".action.toggle-overview = { };
# Quitter niri
"Ctrl+Alt+M".action.quit = { };
# workspaces
};
}

View file

@ -1,15 +1,80 @@
{ ... }:
{ config, ... }:
{
programs.niri.settings.workspaces = {
programs.niri.settings = {
workspaces = {
"1" = {
name = "web";
open-on-output = "eDP-1";
};
"2" = {
name = "code";
name = "latex";
};
"3" = {
name = "chat";
name = "games";
};
"4" = {
name = "discord";
};
};
window-rules = [
# Kitty lancé spécifiquement pour la session LaTeX -> 0.7, sans bordure/gaps
{
matches = [ { app-id = "^kitty-latex$"; } ];
open-on-workspace = "latex";
open-maximized = true; # <- corrigé
default-column-width.proportion = 0.7;
border.enable = false;
focus-ring.enable = false;
}
# Zathura -> 0.3, sans bordure/gaps
{
matches = [
{ app-id = "^org\\.pwmt\\.zathura$"; }
{ app-id = "^zathura$"; }
];
open-on-workspace = "latex";
open-maximized = true; # <- corrigé
default-column-width.proportion = 0.3;
border.enable = false;
focus-ring.enable = false;
}
# Steam -> workspace games
{
matches = [
{ app-id = "^steam$"; }
{ app-id = "^steam_app.*"; }
];
open-on-workspace = "games";
}
# Vesktop -> workspace discord
{
matches = [ { app-id = "^[Vv]esktop$"; } ];
open-on-workspace = "discord";
}
];
binds = {
"Alt+1".action.spawn = [
"sh"
"-c"
''niri msg action focus-workspace "web"; notify-send -a niri -u low -t 900 "web" || true''
];
"Alt+2".action.spawn = [
"sh"
"-c"
''niri msg action focus-workspace "latex"; notify-send -a niri -u low -t 900 "latex" || true''
];
"Alt+3".action.spawn = [
"sh"
"-c"
''niri msg action focus-workspace "games"; notify-send -a niri -u low -t 900 "games" || true''
];
"Alt+4".action.spawn = [
"sh"
"-c"
''niri msg action focus-workspace "discord"; notify-send -a niri -u low -t 900 "discord" || true''
];
};
};
}

View file

@ -13,5 +13,6 @@
brightnessctl
xwayland-satellite
wl-clipboard
libnotify
];
}

View file

@ -0,0 +1,23 @@
{ ... }:
{
imports = [
./packages/btop.nix
./packages/firefox.nix
./packages/git.nix
./packages/security.nix
./packages/hyprland.nix
./packages/kitty.nix
./packages/mpv.nix
./packages/neovim.nix
./packages/niri/niri.nix
./packages/nextcloud.nix
./packages/mako.nix
./packages/python.nix
./packages/texlive.nix
./packages/thunderbird.nix
./packages/tmux.nix
./packages/zathura.nix
./packages/zen.nix
./packages/zsh.nix
];
}

View file

@ -2,5 +2,8 @@
{
programs.niri.enable = true;
programs.niri.package = pkgs.niri;
systemd.user.services.niri.enableDefaultPath = false;
systemd.user.services.niri = {
enableDefaultPath = false;
overrideStrategy = "asDropin";
};
}

View file

@ -4,7 +4,6 @@
enable = true;
settings = {
default_session = {
# for niri
command = "${pkgs.tuigreet}/bin/tuigreet --time --remember --remember-user-session --cmd ${config.programs.niri.package}/bin/niri";
};
};

View file

@ -1,7 +1,10 @@
{ pkgs, ... }:
{
services.mullvad-vpn.gui = {
services.mullvad-vpn = {
enable = true;
gui = {
enable = true;
package = pkgs.mullvad-vpn;
};
};
}

View file

@ -5,8 +5,12 @@
enable = true;
};
systemd.user.services.protonmail-bridge.serviceConfig = {
systemd.user.services.protonmail-bridge = {
after = [ "gnome-keyring.service" ];
wants = [ "gnome-keyring.service" ];
serviceConfig = {
ExecStartPre = "${pkgs.bash}/bin/bash -c 'until ${pkgs.systemd}/bin/busctl --user list | grep -q org.freedesktop.secrets; do sleep 1; done'";
RestartSec = "10s";
};
};
}

View file

@ -11,4 +11,15 @@
configurationLimit = 10;
};
boot.loader.efi.canTouchEfiVariables = true;
# affichage logs
boot = {
consoleLogLevel = 3;
initrd.verbose = false;
kernelParams = [
"quiet"
"udev.log_level=3"
"rd.udev.log_level=3"
"rd.systemd.show_status=auto"
];
};
}

View file

@ -11,4 +11,16 @@
configurationLimit = 5;
};
boot.loader.efi.canTouchEfiVariables = true;
# affichage logs
boot = {
consoleLogLevel = 3;
initrd.verbose = false;
kernelParams = [
"quiet"
"udev.log_level=3"
"rd.udev.log_level=3"
"rd.systemd.show_status=auto"
];
};
}