Switch foot back to alacritty, rearrange some sections

Move stylix target control into individual expressions

Remove thunar

Remove dex, enable systemd services for blueman-applet and
network-manager-applet

Remove mpg123

Qualify package calls in hyprland config using nixpkg definitions

Remove "make switch" from Makefile, replaced by (preferred)
nixos-update
This commit is contained in:
Evie Litherland-Smith 2024-01-30 16:10:12 +00:00
parent 09df446bd7
commit 21c0dc8176
9 changed files with 54 additions and 69 deletions

View file

@ -1,10 +1,8 @@
.PHONY: build test switch .PHONY: build test
build:
nixos-rebuild build --flake .
test: test:
sudo nixos-rebuild test --flake . sudo nixos-rebuild test --flake .
switch: build:
sudo nixos-rebuild switch --flake . nixos-rebuild build --flake .

View file

@ -0,0 +1,19 @@
{...}: {
stylix.targets.alacritty.enable = true;
programs.alacritty = {
enable = true;
settings = {
window = {
dynamic_title = true;
padding = {
x = 10;
y = 10;
};
decorations = "none";
};
selection.save_to_clipboard = true;
live_config_reload = true;
mouse.hide_when_typing = true;
};
};
}

View file

@ -1,14 +1,6 @@
{lib, ...}: { {lib, ...}: {
imports = [./config/default.nix ./scripts/default.nix]; imports = [./config/default.nix ./scripts/default.nix];
stylix.targets = { stylix.targets.fzf.enable = true;
avizo.enable = true;
firefox.enable = true;
foot.enable = true;
fzf.enable = true;
rofi.enable = true;
swaylock.enable = true;
xresources.enable = true;
};
programs = rec { programs = rec {
bash.enable = true; bash.enable = true;
fish.enable = true; fish.enable = true;

View file

@ -4,6 +4,10 @@
pkgs, pkgs,
... ...
}: { }: {
stylix.targets = {
avizo.enable = true;
xresources.enable = true;
};
imports = [ imports = [
../default.nix ../default.nix
../accounts/default.nix ../accounts/default.nix
@ -11,6 +15,7 @@
../waybar/default.nix ../waybar/default.nix
../rofi/default.nix ../rofi/default.nix
../swaync/default.nix ../swaync/default.nix
../alacritty/default.nix
../emacs/default.nix ../emacs/default.nix
../nyxt/default.nix ../nyxt/default.nix
../obs/default.nix ../obs/default.nix
@ -18,6 +23,8 @@
services = { services = {
gpg-agent.pinentryFlavor = "gnome3"; gpg-agent.pinentryFlavor = "gnome3";
avizo.enable = true; avizo.enable = true;
blueman-applet.enable = true;
network-manager-applet.enable = true;
syncthing.enable = true; syncthing.enable = true;
udiskie = { udiskie = {
enable = true; enable = true;
@ -26,22 +33,6 @@
tray = "never"; tray = "never";
}; };
}; };
programs.foot = {
enable = true;
settings = {
main = {
pad = "10x10";
locked-title = false;
notify-focus-inhibit = true;
selection-target = "both";
};
bell = {
urgent = true;
notify = true;
};
mouse = {hide-when-typing = "yes";};
};
};
gtk = { gtk = {
enable = true; enable = true;
cursorTheme = { cursorTheme = {
@ -92,9 +83,9 @@
exec-once = with config; [ exec-once = with config; [
"hyprctl setcursor ${gtk.theme.name} ${toString gtk.cursorTheme.size}" "hyprctl setcursor ${gtk.theme.name} ${toString gtk.cursorTheme.size}"
"git -C $HOME/.emacs pull --ff-only" "git -C $HOME/.emacs pull --ff-only"
"swaync" "${pkgs.swaynotificationcenter}/bin/swaync"
"${pkgs.hyprpaper}/bin/hyprpaper" "${pkgs.hyprpaper}/bin/hyprpaper"
"${pkgs.dex}/bin/dex --autostart" "${pkgs.libsForQt5.polkit-kde-agent}/libexec/polkit-kde-authentication-agent-1"
]; ];
gestures.workspace_swipe = true; gestures.workspace_swipe = true;
input = { input = {
@ -220,11 +211,12 @@
"SUPER SHIFT, ${toString w}, movetoworkspace, ${toString w}" "SUPER SHIFT, ${toString w}, movetoworkspace, ${toString w}"
]; ];
in in
with config.programs;
with lib.lists; with lib.lists;
flatten (forEach (range 1 9) workspace) flatten (forEach (range 1 9) workspace)
++ [ ++ [
# See https://wiki.hyprland.org/Configuring/Keywords/ for more # See https://wiki.hyprland.org/Configuring/Keywords/ for more
"SUPER, F1, exec, ${pkgs.swaylock-effects}/bin/swaylock --screenshots --clock --indicator --grace-no-mouse" "SUPER, F1, exec, ${swaylock.package}/bin/swaylock --screenshots --clock --indicator --grace-no-mouse"
"SUPER, Q, killactive," "SUPER, Q, killactive,"
"SUPER SHIFT, Q, exec, rofi -replace -show power-menu" "SUPER SHIFT, Q, exec, rofi -replace -show power-menu"
"SUPER, V, togglefloating" "SUPER, V, togglefloating"
@ -234,16 +226,15 @@
"SUPER, P, exec, pkill rofi || rofi-pass" "SUPER, P, exec, pkill rofi || rofi-pass"
"SUPER SHIFT, P, exec, pkill rofi || rofi-pass --last-used" "SUPER SHIFT, P, exec, pkill rofi || rofi-pass --last-used"
"SUPER ALT, P, exec, pkill rofi || rofi-pass --insert" "SUPER ALT, P, exec, pkill rofi || rofi-pass --insert"
"SUPER, Z, exec, swaync-client -t -sw" "SUPER, Z, exec, ${pkgs.swaynotificationcenter}/bin/swaync-client -t -sw"
"SUPER SHIFT, Z, exec, swaync-client -d -sw" "SUPER SHIFT, Z, exec, ${pkgs.swaynotificationcenter}/bin/swaync-client -d -sw"
# Common program shortcuts # Common program shortcuts
"SUPER, Space, exec, rofi -replace -show combi" "SUPER, Space, exec, ${rofi.package}/bin/rofi -replace -show combi"
"SUPER, Return, exec, foot" "SUPER, Return, exec, ${alacritty.package}/bin/alacritty"
"SUPER SHIFT, Return, exec, emacsclient -c" "SUPER SHIFT, Return, exec, ${emacs.finalPackage}/bin/emacsclient -c"
"SUPER, S, exec, foot -e btm --group --battery" "SUPER, S, exec, ${alacritty.package}/bin/alacritty -e btm --group --battery"
"SUPER, W, exec, nyxt --no-socket --with-file bookmarks=${../nyxt/bookmarks.lisp}" "SUPER, W, exec, ${pkgs.nyxt}/bin/nyxt --no-socket --with-file bookmarks=${../nyxt/bookmarks.lisp}"
"SUPER, F, exec, thunar $HOME"
# Misc useful binds # Misc useful binds
'',Print,exec,${pkgs.grim}/bin/grim -g "$(${pkgs.slurp}/bin/slurp)"'' '',Print,exec,${pkgs.grim}/bin/grim -g "$(${pkgs.slurp}/bin/slurp)"''
@ -274,10 +265,10 @@
"SUPER SHIFT, bracketleft, movecurrentworkspacetomonitor, -1" "SUPER SHIFT, bracketleft, movecurrentworkspacetomonitor, -1"
"SUPER, O, focusurgentorlast" "SUPER, O, focusurgentorlast"
]; ];
bindl = [ bindl = with config.services; [
# Sound # Sound
",XF86AudioMute,exec,${pkgs.avizo}/bin/volumectl %" ",XF86AudioMute,exec,${avizo.package}/bin/volumectl %"
",XF86AudioMicMute,exec,${pkgs.avizo}/bin/volumectl -m %" ",XF86AudioMicMute,exec,${avizo.package}/bin/volumectl -m %"
# Playback # Playback
",XF86AudioPlay,exec,${pkgs.playerctl}/bin/playerctl play-pause" ",XF86AudioPlay,exec,${pkgs.playerctl}/bin/playerctl play-pause"
@ -285,14 +276,14 @@
",XF86AudioPrev,exec,${pkgs.playerctl}/bin/playerctl previous" ",XF86AudioPrev,exec,${pkgs.playerctl}/bin/playerctl previous"
",XF86AudioNext,exec,${pkgs.playerctl}/bin/playerctl next" ",XF86AudioNext,exec,${pkgs.playerctl}/bin/playerctl next"
]; ];
bindle = [ bindle = with config.services; [
# Sound # Sound
",XF86AudioRaiseVolume,exec,${pkgs.avizo}/bin/volumectl -u + 5" ",XF86AudioRaiseVolume,exec,${avizo.package}/bin/volumectl -u + 5"
",XF86AudioLowerVolume,exec,${pkgs.avizo}/bin/volumectl -u - 5" ",XF86AudioLowerVolume,exec,${avizo.package}/bin/volumectl -u - 5"
# Brightness # Brightness
",XF86MonBrightnessUp,exec,${pkgs.avizo}/bin/lightctl + 5" ",XF86MonBrightnessUp,exec,${avizo.package}/bin/lightctl + 5"
",XF86MonBrightnessDown,exec,${pkgs.avizo}/bin/lightctl - 5" ",XF86MonBrightnessDown,exec,${avizo.package}/bin/lightctl - 5"
]; ];
bindm = [ bindm = [
# Move/resize windows with mainMod + LMB/RMB and dragging # Move/resize windows with mainMod + LMB/RMB and dragging

View file

@ -3,11 +3,12 @@
pkgs, pkgs,
... ...
}: { }: {
stylix.targets.rofi.enable = true;
programs.rofi = { programs.rofi = {
enable = true; enable = true;
package = pkgs.rofi-wayland; package = pkgs.rofi-wayland;
location = "center"; location = "center";
terminal = "foot"; terminal = "${pkgs.alacritty}/bin/alacritty";
pass = { pass = {
enable = true; enable = true;
package = pkgs.rofi-pass-wayland; package = pkgs.rofi-pass-wayland;

View file

@ -3,6 +3,7 @@
pkgs, pkgs,
... ...
}: { }: {
stylix.targets.swaylock.enable = true;
programs.swaylock = { programs.swaylock = {
enable = true; enable = true;
package = pkgs.swaylock-effects; package = pkgs.swaylock-effects;

View file

@ -36,11 +36,10 @@
# TODO workspace rewrites # TODO workspace rewrites
"rewrite" = { "rewrite" = {
"(.*) - GNU Emacs at (.*)" = " $1 [$2]"; "(.*) - GNU Emacs at (.*)" = " $1 [$2]";
"foot" = " "; "Alacritty" = " ";
"Nyxt - (.*)" = "󰀹 $1"; "Nyxt - (.*)" = "󰀹 $1";
"(.*) Mozilla Firefox" = "󰈹 $1"; "(.*) Mozilla Firefox" = "󰈹 $1";
"(.*) - Chromium" = "󰊯 $1"; "(.*) - Chromium" = "󰊯 $1";
"(.*) - Thunar" = "󰝰 $1";
".*WebCord (.*)" = "󰙯 $1"; ".*WebCord (.*)" = "󰙯 $1";
"[Ss]team" = "󰓓 "; "[Ss]team" = "󰓓 ";
"(.*) - mpv" = "󰦟 $1"; "(.*) - mpv" = "󰦟 $1";

View file

@ -5,7 +5,6 @@
}: { }: {
imports = [./default.nix]; imports = [./default.nix];
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
dex
libnotify libnotify
libcamera libcamera
glib glib

View file

@ -10,13 +10,7 @@
GRIM_DEFAULT_DIR = "$HOME/Pictures/Grim"; GRIM_DEFAULT_DIR = "$HOME/Pictures/Grim";
}; };
systemPackages = with pkgs; [ systemPackages = with pkgs; [
libsForQt5.polkit-kde-agent
swaylock-effects
swaynotificationcenter
xdg-utils xdg-utils
hyprpaper
pipewire
wireplumber
wtype wtype
wl-clipboard wl-clipboard
swayimg swayimg
@ -24,12 +18,9 @@
pavucontrol pavucontrol
playerctl playerctl
brightnessctl brightnessctl
networkmanagerapplet
bluez
protonvpn-gui protonvpn-gui
mpv mpv
streamlink streamlink
mpg123
libreoffice libreoffice
webcord webcord
]; ];
@ -38,8 +29,6 @@
services = { services = {
blueman.enable = true; blueman.enable = true;
udisks2.enable = true; udisks2.enable = true;
gvfs.enable = true;
tumbler.enable = true;
xserver.enable = false; xserver.enable = false;
greetd.settings = let greetd.settings = let
command = "Hyprland"; command = "Hyprland";
@ -78,10 +67,6 @@
programs = { programs = {
dconf.enable = true; dconf.enable = true;
light.enable = true; light.enable = true;
thunar = {
enable = true;
plugins = with pkgs.xfce; [thunar-archive-plugin thunar-volman];
};
hyprland = { hyprland = {
enable = true; enable = true;
xwayland.enable = true; xwayland.enable = true;