feat(rick): install desktop using nix

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

View file

@ -1,10 +1,10 @@
{ pkgs, ... }: { { pkgs, inputs, ... }: {
config.modules = { config.modules = {
application = { application = {
gnupg.enable = false; gnupg.enable = true;
zathura.enable = true; zathura.enable = true;
foot.enable = false; foot.enable = true;
imv.enable = false; imv.enable = true;
}; };
audio = { audio = {
cmus.enable = true; cmus.enable = true;
@ -12,7 +12,11 @@
cli = { cli = {
direnv.enable = true; direnv.enable = true;
ghq.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; neovim.enable = true;
starship.enable = true; starship.enable = true;
tmux.enable = true; tmux.enable = true;
@ -29,8 +33,9 @@
web.webcord.enable = false; web.webcord.enable = false;
gaming.lutris.enable = false; gaming.lutris.enable = false;
desktop.sway = { desktop.sway = {
enable = false; enable = true;
kanshi = false; kanshi = false;
swaylock.useNullPackage = true;
wallpapers.lockscreen = "${./files/lockscreen.png}"; wallpapers.lockscreen = "${./files/lockscreen.png}";
wallpapers.desktop = "${./files/background.png} fill #000000"; wallpapers.desktop = "${./files/background.png} fill #000000";
waybar = { waybar = {

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 = '' programs.zsh.loginExtra = ''
#notmutch #notmutch
export NOTMUCH_CONFIG="$HOME/.config/notmuch/config" export NOTMUCH_CONFIG="$HOME/.config/notmuch/config"
export PATH=~/.local/bin:$PATH # export PATH=~/.local/bin:$PATH
# export XDG_DATA_HOME=$HOME/.local/share # export XDG_DATA_HOME=$HOME/.local/share
unset DEBUGINFOD_URLS 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
'';
}