mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-03-18 15:34:13 +01:00
74 lines
1.9 KiB
Nix
74 lines
1.9 KiB
Nix
{
|
|
config,
|
|
pkgs,
|
|
...
|
|
}:
|
|
{
|
|
imports = [
|
|
./anyrun.nix
|
|
./nvidia.nix
|
|
];
|
|
|
|
# wayland related
|
|
home.sessionVariables = {
|
|
"NIXOS_OZONE_WL" = "1"; # for any ozone-based browser & electron apps to run on wayland
|
|
"MOZ_ENABLE_WAYLAND" = "1"; # for firefox to run on wayland
|
|
"MOZ_WEBRENDER" = "1";
|
|
# enable native Wayland support for most Electron apps
|
|
"ELECTRON_OZONE_PLATFORM_HINT" = "auto";
|
|
# misc
|
|
"_JAVA_AWT_WM_NONREPARENTING" = "1";
|
|
"QT_WAYLAND_DISABLE_WINDOWDECORATION" = "1";
|
|
"QT_QPA_PLATFORM" = "wayland";
|
|
"SDL_VIDEODRIVER" = "wayland";
|
|
"GDK_BACKEND" = "wayland";
|
|
"XDG_SESSION_TYPE" = "wayland";
|
|
};
|
|
|
|
home.packages = with pkgs; [
|
|
swaybg # the wallpaper
|
|
wl-clipboard # copying and pasting
|
|
hyprpicker # color picker
|
|
brightnessctl
|
|
hyprshot # screen shot
|
|
wf-recorder # screen recording
|
|
# audio
|
|
alsa-utils # provides amixer/alsamixer/...
|
|
networkmanagerapplet # provide GUI app: nm-connection-editor
|
|
];
|
|
|
|
xdg.configFile =
|
|
let
|
|
mkSymlink = config.lib.file.mkOutOfStoreSymlink;
|
|
confPath = "${config.home.homeDirectory}/nix-config/home/linux/gui/base/desktop/conf";
|
|
in
|
|
{
|
|
"mako".source = mkSymlink "${confPath}/mako";
|
|
"waybar".source = mkSymlink "${confPath}/waybar";
|
|
"wlogout".source = mkSymlink "${confPath}/wlogout";
|
|
"hypr/hypridle.conf".source = mkSymlink "${confPath}/hypridle.conf";
|
|
};
|
|
|
|
# status bar
|
|
programs.waybar = {
|
|
enable = true;
|
|
systemd.enable = true;
|
|
};
|
|
# Disable catppuccin to avoid conflict with my non-nix config.
|
|
catppuccin.waybar.enable = false;
|
|
|
|
# screen locker
|
|
programs.swaylock.enable = true;
|
|
|
|
# Logout Menu
|
|
programs.wlogout.enable = true;
|
|
catppuccin.wlogout.enable = false;
|
|
|
|
# Hyprland idle daemon
|
|
services.hypridle.enable = true;
|
|
|
|
# notification daemon, the same as dunst
|
|
services.mako.enable = true;
|
|
catppuccin.mako.enable = false;
|
|
}
|