feat(rick): install desktop using nix

This commit is contained in:
Yorick Barbanneau 2025-09-25 20:50:43 +02:00
parent a97da40ffe
commit b19cd40328
Signed by: ephase
GPG key ID: 246042E52B41FFCF
2 changed files with 29 additions and 21 deletions

View file

@ -1,10 +1,10 @@
{ pkgs, ... }: {
{ pkgs, inputs, ... }: {
config.modules = {
application = {
gnupg.enable = false;
gnupg.enable = true;
zathura.enable = true;
foot.enable = false;
imv.enable = false;
foot.enable = true;
imv.enable = true;
};
audio = {
cmus.enable = true;
@ -12,7 +12,11 @@
cli = {
direnv.enable = true;
ghq.enable = true;
git.enable = true;
git = {
enable = true;
userEmail = inputs.nix-private.git.personal.userEmail;
signingKey = inputs.nix-private.git.personal.signingKey;
};
neovim.enable = true;
starship.enable = true;
tmux.enable = true;
@ -29,8 +33,9 @@
web.webcord.enable = false;
gaming.lutris.enable = false;
desktop.sway = {
enable = false;
enable = true;
kanshi = false;
swaylock.useNullPackage = true;
wallpapers.lockscreen = "${./files/lockscreen.png}";
wallpapers.desktop = "${./files/background.png} fill #000000";
waybar = {
@ -39,7 +44,7 @@
enable = false;
};
cpuThermal = {
thermalZone = "2";
thermalZone = 2;
# hwmonPathAbs = "";
# inputFilename = "";
};

View file

@ -1,21 +1,24 @@
_:
{
wayland.windowManager.sway.config.output = {
"eDP-1" = {
scale = "1.4";
};
"HDMI-A-1" = {
disable = "";
};
};
wayland.windowManager.sway.config.input = {
"4617:27904:MNT_Research_MNT_Reform_Keyboard_2.0_US/LT" = {
xkb_layout = "us";
xkb_variant = "altgr-intl";
};
};
programs.zsh.loginExtra = ''
#notmutch
export NOTMUCH_CONFIG="$HOME/.config/notmuch/config"
export PATH=~/.local/bin:$PATH
# export PATH=~/.local/bin:$PATH
# export XDG_DATA_HOME=$HOME/.local/share
unset DEBUGINFOD_URLS
if [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then
export QT_QPA_PLATFORM="wayland-egl"
export QT_WAYLAND_DISABLE_WINDOWDECORATION=1
export MOZ_ENABLE_WAYLAND=1
export QT_QPA_PLATFORMTHEME=qt5ct
export NO_AT_BRIDGE=1
export XDG_SESSION_TYPE=wayland
export XDG_CURRENT_DESKTOP=sway
export SSH_AUTH_SOCK=$XDG_RUNTIME_DIR/ssh-agent.socket
exec ~/.local/bin/sway.sh
fi
'';
}
}