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:
parent
09df446bd7
commit
21c0dc8176
10
Makefile
10
Makefile
|
@ -1,10 +1,8 @@
|
|||
.PHONY: build test switch
|
||||
|
||||
build:
|
||||
nixos-rebuild build --flake .
|
||||
.PHONY: build test
|
||||
|
||||
test:
|
||||
sudo nixos-rebuild test --flake .
|
||||
|
||||
switch:
|
||||
sudo nixos-rebuild switch --flake .
|
||||
build:
|
||||
nixos-rebuild build --flake .
|
||||
|
||||
|
|
19
home/alacritty/default.nix
Normal file
19
home/alacritty/default.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,14 +1,6 @@
|
|||
{lib, ...}: {
|
||||
imports = [./config/default.nix ./scripts/default.nix];
|
||||
stylix.targets = {
|
||||
avizo.enable = true;
|
||||
firefox.enable = true;
|
||||
foot.enable = true;
|
||||
fzf.enable = true;
|
||||
rofi.enable = true;
|
||||
swaylock.enable = true;
|
||||
xresources.enable = true;
|
||||
};
|
||||
stylix.targets.fzf.enable = true;
|
||||
programs = rec {
|
||||
bash.enable = true;
|
||||
fish.enable = true;
|
||||
|
|
|
@ -4,6 +4,10 @@
|
|||
pkgs,
|
||||
...
|
||||
}: {
|
||||
stylix.targets = {
|
||||
avizo.enable = true;
|
||||
xresources.enable = true;
|
||||
};
|
||||
imports = [
|
||||
../default.nix
|
||||
../accounts/default.nix
|
||||
|
@ -11,6 +15,7 @@
|
|||
../waybar/default.nix
|
||||
../rofi/default.nix
|
||||
../swaync/default.nix
|
||||
../alacritty/default.nix
|
||||
../emacs/default.nix
|
||||
../nyxt/default.nix
|
||||
../obs/default.nix
|
||||
|
@ -18,6 +23,8 @@
|
|||
services = {
|
||||
gpg-agent.pinentryFlavor = "gnome3";
|
||||
avizo.enable = true;
|
||||
blueman-applet.enable = true;
|
||||
network-manager-applet.enable = true;
|
||||
syncthing.enable = true;
|
||||
udiskie = {
|
||||
enable = true;
|
||||
|
@ -26,22 +33,6 @@
|
|||
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 = {
|
||||
enable = true;
|
||||
cursorTheme = {
|
||||
|
@ -92,9 +83,9 @@
|
|||
exec-once = with config; [
|
||||
"hyprctl setcursor ${gtk.theme.name} ${toString gtk.cursorTheme.size}"
|
||||
"git -C $HOME/.emacs pull --ff-only"
|
||||
"swaync"
|
||||
"${pkgs.swaynotificationcenter}/bin/swaync"
|
||||
"${pkgs.hyprpaper}/bin/hyprpaper"
|
||||
"${pkgs.dex}/bin/dex --autostart"
|
||||
"${pkgs.libsForQt5.polkit-kde-agent}/libexec/polkit-kde-authentication-agent-1"
|
||||
];
|
||||
gestures.workspace_swipe = true;
|
||||
input = {
|
||||
|
@ -220,11 +211,12 @@
|
|||
"SUPER SHIFT, ${toString w}, movetoworkspace, ${toString w}"
|
||||
];
|
||||
in
|
||||
with config.programs;
|
||||
with lib.lists;
|
||||
flatten (forEach (range 1 9) workspace)
|
||||
++ [
|
||||
# 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 SHIFT, Q, exec, rofi -replace -show power-menu"
|
||||
"SUPER, V, togglefloating"
|
||||
|
@ -234,16 +226,15 @@
|
|||
"SUPER, P, exec, pkill rofi || rofi-pass"
|
||||
"SUPER SHIFT, P, exec, pkill rofi || rofi-pass --last-used"
|
||||
"SUPER ALT, P, exec, pkill rofi || rofi-pass --insert"
|
||||
"SUPER, Z, exec, swaync-client -t -sw"
|
||||
"SUPER SHIFT, Z, exec, swaync-client -d -sw"
|
||||
"SUPER, Z, exec, ${pkgs.swaynotificationcenter}/bin/swaync-client -t -sw"
|
||||
"SUPER SHIFT, Z, exec, ${pkgs.swaynotificationcenter}/bin/swaync-client -d -sw"
|
||||
|
||||
# Common program shortcuts
|
||||
"SUPER, Space, exec, rofi -replace -show combi"
|
||||
"SUPER, Return, exec, foot"
|
||||
"SUPER SHIFT, Return, exec, emacsclient -c"
|
||||
"SUPER, S, exec, foot -e btm --group --battery"
|
||||
"SUPER, W, exec, nyxt --no-socket --with-file bookmarks=${../nyxt/bookmarks.lisp}"
|
||||
"SUPER, F, exec, thunar $HOME"
|
||||
"SUPER, Space, exec, ${rofi.package}/bin/rofi -replace -show combi"
|
||||
"SUPER, Return, exec, ${alacritty.package}/bin/alacritty"
|
||||
"SUPER SHIFT, Return, exec, ${emacs.finalPackage}/bin/emacsclient -c"
|
||||
"SUPER, S, exec, ${alacritty.package}/bin/alacritty -e btm --group --battery"
|
||||
"SUPER, W, exec, ${pkgs.nyxt}/bin/nyxt --no-socket --with-file bookmarks=${../nyxt/bookmarks.lisp}"
|
||||
|
||||
# Misc useful binds
|
||||
'',Print,exec,${pkgs.grim}/bin/grim -g "$(${pkgs.slurp}/bin/slurp)"''
|
||||
|
@ -274,10 +265,10 @@
|
|||
"SUPER SHIFT, bracketleft, movecurrentworkspacetomonitor, -1"
|
||||
"SUPER, O, focusurgentorlast"
|
||||
];
|
||||
bindl = [
|
||||
bindl = with config.services; [
|
||||
# Sound
|
||||
",XF86AudioMute,exec,${pkgs.avizo}/bin/volumectl %"
|
||||
",XF86AudioMicMute,exec,${pkgs.avizo}/bin/volumectl -m %"
|
||||
",XF86AudioMute,exec,${avizo.package}/bin/volumectl %"
|
||||
",XF86AudioMicMute,exec,${avizo.package}/bin/volumectl -m %"
|
||||
|
||||
# Playback
|
||||
",XF86AudioPlay,exec,${pkgs.playerctl}/bin/playerctl play-pause"
|
||||
|
@ -285,14 +276,14 @@
|
|||
",XF86AudioPrev,exec,${pkgs.playerctl}/bin/playerctl previous"
|
||||
",XF86AudioNext,exec,${pkgs.playerctl}/bin/playerctl next"
|
||||
];
|
||||
bindle = [
|
||||
bindle = with config.services; [
|
||||
# Sound
|
||||
",XF86AudioRaiseVolume,exec,${pkgs.avizo}/bin/volumectl -u + 5"
|
||||
",XF86AudioLowerVolume,exec,${pkgs.avizo}/bin/volumectl -u - 5"
|
||||
",XF86AudioRaiseVolume,exec,${avizo.package}/bin/volumectl -u + 5"
|
||||
",XF86AudioLowerVolume,exec,${avizo.package}/bin/volumectl -u - 5"
|
||||
|
||||
# Brightness
|
||||
",XF86MonBrightnessUp,exec,${pkgs.avizo}/bin/lightctl + 5"
|
||||
",XF86MonBrightnessDown,exec,${pkgs.avizo}/bin/lightctl - 5"
|
||||
",XF86MonBrightnessUp,exec,${avizo.package}/bin/lightctl + 5"
|
||||
",XF86MonBrightnessDown,exec,${avizo.package}/bin/lightctl - 5"
|
||||
];
|
||||
bindm = [
|
||||
# Move/resize windows with mainMod + LMB/RMB and dragging
|
||||
|
|
|
@ -3,11 +3,12 @@
|
|||
pkgs,
|
||||
...
|
||||
}: {
|
||||
stylix.targets.rofi.enable = true;
|
||||
programs.rofi = {
|
||||
enable = true;
|
||||
package = pkgs.rofi-wayland;
|
||||
location = "center";
|
||||
terminal = "foot";
|
||||
terminal = "${pkgs.alacritty}/bin/alacritty";
|
||||
pass = {
|
||||
enable = true;
|
||||
package = pkgs.rofi-pass-wayland;
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
pkgs,
|
||||
...
|
||||
}: {
|
||||
stylix.targets.swaylock.enable = true;
|
||||
programs.swaylock = {
|
||||
enable = true;
|
||||
package = pkgs.swaylock-effects;
|
||||
|
|
|
@ -36,11 +36,10 @@
|
|||
# TODO workspace rewrites
|
||||
"rewrite" = {
|
||||
"(.*) - GNU Emacs at (.*)" = " $1 [$2]";
|
||||
"foot" = " ";
|
||||
"Alacritty" = " ";
|
||||
"Nyxt - (.*)" = " $1";
|
||||
"(.*) — Mozilla Firefox" = " $1";
|
||||
"(.*) - Chromium" = " $1";
|
||||
"(.*) - Thunar" = " $1";
|
||||
".*WebCord (.*)" = " $1";
|
||||
"[Ss]team" = " ";
|
||||
"(.*) - mpv" = " $1";
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
}: {
|
||||
imports = [./default.nix];
|
||||
environment.systemPackages = with pkgs; [
|
||||
dex
|
||||
libnotify
|
||||
libcamera
|
||||
glib
|
||||
|
|
|
@ -10,13 +10,7 @@
|
|||
GRIM_DEFAULT_DIR = "$HOME/Pictures/Grim";
|
||||
};
|
||||
systemPackages = with pkgs; [
|
||||
libsForQt5.polkit-kde-agent
|
||||
swaylock-effects
|
||||
swaynotificationcenter
|
||||
xdg-utils
|
||||
hyprpaper
|
||||
pipewire
|
||||
wireplumber
|
||||
wtype
|
||||
wl-clipboard
|
||||
swayimg
|
||||
|
@ -24,12 +18,9 @@
|
|||
pavucontrol
|
||||
playerctl
|
||||
brightnessctl
|
||||
networkmanagerapplet
|
||||
bluez
|
||||
protonvpn-gui
|
||||
mpv
|
||||
streamlink
|
||||
mpg123
|
||||
libreoffice
|
||||
webcord
|
||||
];
|
||||
|
@ -38,8 +29,6 @@
|
|||
services = {
|
||||
blueman.enable = true;
|
||||
udisks2.enable = true;
|
||||
gvfs.enable = true;
|
||||
tumbler.enable = true;
|
||||
xserver.enable = false;
|
||||
greetd.settings = let
|
||||
command = "Hyprland";
|
||||
|
@ -78,10 +67,6 @@
|
|||
programs = {
|
||||
dconf.enable = true;
|
||||
light.enable = true;
|
||||
thunar = {
|
||||
enable = true;
|
||||
plugins = with pkgs.xfce; [thunar-archive-plugin thunar-volman];
|
||||
};
|
||||
hyprland = {
|
||||
enable = true;
|
||||
xwayland.enable = true;
|
||||
|
|
Loading…
Reference in a new issue