This commit is contained in:
emily 2024-02-29 21:24:55 +01:00
parent f05fcc34b8
commit fe69cf3047
Signed by: emily
GPG key ID: F6F4C66207FCF995
3 changed files with 64 additions and 24 deletions

View file

@ -33,7 +33,7 @@
cider cider
pavucontrol pavucontrol
signal-desktop signal-desktop
element-desktop-wayland element-desktop
image-roll image-roll
wl-clipboard wl-clipboard

View file

@ -12,6 +12,8 @@
boot.plymouth.enable = true; boot.plymouth.enable = true;
security.pam.services.swaylock = {};
services.geoclue2.enable = true; services.geoclue2.enable = true;
services.pipewire = { services.pipewire = {
@ -19,6 +21,9 @@
alsa.enable = true; alsa.enable = true;
pulse.enable = true; pulse.enable = true;
}; };
services.udisks2.enable = true;
environment.variables = { environment.variables = {
SDL_VIDEODRIVER = "wayland"; SDL_VIDEODRIVER = "wayland";
QT_QPA_PLATFORM = "wayland"; QT_QPA_PLATFORM = "wayland";
@ -107,22 +112,6 @@
enable = true; enable = true;
source = config.stylix.image; source = config.stylix.image;
}; };
home.file.".local/bin/hypr" = {
enable = true;
executable = true;
recursive = true;
source = ./files/scripts;
};
home.file.".config/mako-icons/" = {
enable = true;
recursive = true;
source = ./files/icons;
};
home.file.".config/rofi" = {
enable = true;
recursive = true;
source = ./files/rofi;
};
wayland.windowManager.hyprland = { wayland.windowManager.hyprland = {
enable = true; enable = true;
settings = let settings = let
@ -265,14 +254,14 @@
"$mod, F2, exec, ${firefox}" "$mod, F2, exec, ${firefox}"
# Rofi # Rofi
"$mod, D, exec, ${rofi} -show drun -theme ~/.config/rofi/launcher.rasi" "$mod, D, exec, ${rofi} -show drun -theme $XDG_CONFIG_HONE/rofi/launcher.rasi"
"$mod, R, exec, ${rofi} -show run -theme ~/.config/rofi/runner.rasi" "$mod, R, exec, ${rofi} -show run -theme $XDG_CONFIG_HOME/rofi/runner.rasi"
"$mod, X, exec, ~/.local/bin/hypr/rofi_powermenu.sh" "$mod, X, exec, ~/.local/bin/hypr/rofi_powermenu.sh"
"$mod, A, exec, ~/.local/bin/hypr/rofi_screenshot.sh" "$mod, A, exec, ~/.local/bin/hypr/rofi_screenshot.sh"
# Misc # Misc
"$mod, C, exec, ~/.local/bin/hypr/colorpicker.sh" "$mod, C, exec, ~/.local/bin/hypr/colorpicker.sh"
"CTRL_ALT, L, exec, ${swaylock} -f -i ~/Pictures/wallpapers/lockscreen.png" "CTRL_ALT, L, exec, ${swaylock} -f -i $XDG_PICTURES_DIR/wallpapers/lockscreen.png"
# Function keys # Function keys
", XF86MonBrightnessUp, exec, ${brightnessctl} s +10%" ", XF86MonBrightnessUp, exec, ${brightnessctl} s +10%"
@ -566,6 +555,18 @@
enable = true; enable = true;
package = pkgs.rofi-wayland; package = pkgs.rofi-wayland;
}; };
qt = {
enable = true;
platformTheme = "qtct";
style.name = "kvantum-dark";
style.package = with pkgs; [
libsForQt5.qtstyleplugin-kvantum
qt6Packagee.qtstyleplugin-kvantum
(catppuccin-kvantum.override { accent = "Mauve"; variant = "Macchiato"; })
];
};
services.gammastep = { services.gammastep = {
enable = true; enable = true;
provider = "geoclue2"; provider = "geoclue2";
@ -624,23 +625,58 @@
enable = true; enable = true;
systemdTarget = "hyprland-session.target"; systemdTarget = "hyprland-session.target";
events = [ events = [
{ event = "before-sleep"; command = "${swaylock} -f -i ~/Pictures/wallpapers/lockscreen.png"; } { event = "before-sleep"; command = "${swaylock} -f -i ${config.home-manager.users.emily.xdg.userDirs.pictures}/wallpapers/lockscreen.png"; }
{ event = "lock"; command = "${swaylock} -f -i ~/Pictures/wallpapers/lockscreen.png"; } { event = "lock"; command = "${swaylock} -f -i ${config.home-manager.users.emily.xdg.userDirs.pictures}/wallpapers/lockscreen.png"; }
]; ];
}; };
services.syncthing = { services.syncthing = {
enable = true; enable = true;
tray.enable = true; tray.enable = true;
tray.command = "syncthingtray --wait"; tray.command = "syncthingtray --replace";
}; };
services.udiskie = { services.udiskie = {
enable = true; enable = true;
automount = false; automount = false;
}; };
systemd.user.services.syncthingtray.Service = {
ExecStartPre = "${pkgs.coreutils-full}/bin/sleep 2";
Restart = "on-failure";
RestartSec = "1s";
};
systemd.user.targets.tray.Unit = { systemd.user.targets.tray.Unit = {
BindsTo = "waybar.service"; BindsTo = "waybar.service";
After = "waybar.service"; After = "waybar.service";
}; };
home.file.".local/bin/hypr" = {
enable = true;
executable = true;
recursive = true;
source = ./files/scripts;
};
xdg.configFile."mako-icons" = {
enable = true;
recursive = true;
source = ./files/icons;
};
xdg.configFile."rofi" = {
enable = true;
recursive = true;
source = ./files/rofi;
};
xdg.userDirs =
let
home = config.home-manager.users.emily.home.homeDirectory;
in {
enable = true;
desktop = null;
documents = "${home}/docs";
downloads = "${home}/Downloads";
music = "${home}/music";
pictures = "${home}/Pictures";
publicShare = null;
templates = null;
videos = "${home}/videos";
};
}; };
} }

View file

@ -4,7 +4,10 @@
]; ];
home-manager.users.emily.programs.nixvim = { home-manager.users.emily.programs.nixvim = {
enable = true; enable = true;
extraPlugins = [ pkgs.vimPlugins.molokai vimPlugins.vim-airline-themes ]; extraPlugins = with pkgs; [
vimPlugins.molokai
vimPlugins.vim-airline-themes
];
colorscheme = "molokai"; colorscheme = "molokai";
vimAlias = true; vimAlias = true;
highlightOverride.Normal = { highlightOverride.Normal = {
@ -13,6 +16,7 @@
}; };
options = { options = {
number = true; number = true;
expandtab = true;
autoindent = true; autoindent = true;
mouse = ""; mouse = "";
encoding = "utf-8"; encoding = "utf-8";