1
0
Fork 0
forked from emily/nixfiles
This commit is contained in:
emily 2024-02-29 21:24:55 +01:00
parent f05fcc34b8
commit fe69cf3047
Signed by untrusted user: emily
GPG key ID: F6F4C66207FCF995
3 changed files with 64 additions and 24 deletions

View file

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

View file

@ -12,6 +12,8 @@
boot.plymouth.enable = true;
security.pam.services.swaylock = {};
services.geoclue2.enable = true;
services.pipewire = {
@ -19,6 +21,9 @@
alsa.enable = true;
pulse.enable = true;
};
services.udisks2.enable = true;
environment.variables = {
SDL_VIDEODRIVER = "wayland";
QT_QPA_PLATFORM = "wayland";
@ -107,22 +112,6 @@
enable = true;
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 = {
enable = true;
settings = let
@ -265,14 +254,14 @@
"$mod, F2, exec, ${firefox}"
# Rofi
"$mod, D, exec, ${rofi} -show drun -theme ~/.config/rofi/launcher.rasi"
"$mod, R, exec, ${rofi} -show run -theme ~/.config/rofi/runner.rasi"
"$mod, D, exec, ${rofi} -show drun -theme $XDG_CONFIG_HONE/rofi/launcher.rasi"
"$mod, R, exec, ${rofi} -show run -theme $XDG_CONFIG_HOME/rofi/runner.rasi"
"$mod, X, exec, ~/.local/bin/hypr/rofi_powermenu.sh"
"$mod, A, exec, ~/.local/bin/hypr/rofi_screenshot.sh"
# Misc
"$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
", XF86MonBrightnessUp, exec, ${brightnessctl} s +10%"
@ -566,6 +555,18 @@
enable = true;
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 = {
enable = true;
provider = "geoclue2";
@ -624,23 +625,58 @@
enable = true;
systemdTarget = "hyprland-session.target";
events = [
{ event = "before-sleep"; command = "${swaylock} -f -i ~/Pictures/wallpapers/lockscreen.png"; }
{ event = "lock"; 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 ${config.home-manager.users.emily.xdg.userDirs.pictures}/wallpapers/lockscreen.png"; }
];
};
services.syncthing = {
enable = true;
tray.enable = true;
tray.command = "syncthingtray --wait";
tray.command = "syncthingtray --replace";
};
services.udiskie = {
enable = true;
automount = false;
};
systemd.user.services.syncthingtray.Service = {
ExecStartPre = "${pkgs.coreutils-full}/bin/sleep 2";
Restart = "on-failure";
RestartSec = "1s";
};
systemd.user.targets.tray.Unit = {
BindsTo = "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 = {
enable = true;
extraPlugins = [ pkgs.vimPlugins.molokai vimPlugins.vim-airline-themes ];
extraPlugins = with pkgs; [
vimPlugins.molokai
vimPlugins.vim-airline-themes
];
colorscheme = "molokai";
vimAlias = true;
highlightOverride.Normal = {
@ -13,6 +16,7 @@
};
options = {
number = true;
expandtab = true;
autoindent = true;
mouse = "";
encoding = "utf-8";