who needs atomic commits?

This commit is contained in:
twoneis 2024-04-25 03:06:42 +02:00
parent b3464f8df7
commit d8538e9d52
6 changed files with 20 additions and 15 deletions

View file

@ -1,4 +1,4 @@
{ ... }: { { pkgs, ... }: {
# Enable sound with pipewire. # Enable sound with pipewire.
sound.enable = false; sound.enable = false;
hardware.pulseaudio.enable = false; hardware.pulseaudio.enable = false;
@ -9,4 +9,7 @@
pulse.enable = true; pulse.enable = true;
#jack.enable = true; #jack.enable = true;
}; };
environment.systemPackages = with pkgs; [
pamixer
];
} }

View file

@ -1,6 +1,3 @@
{ pkgs, ... }: { { ... }: {
services.blueman.enable = true; services.blueman.enable = true;
environment.systemPackages = with pkgs; [
blueman
];
} }

View file

@ -15,12 +15,16 @@
./virt.nix ./virt.nix
]; ];
# Needed for some nautilus features like auto-mount and trash
services.gvfs.enable = true;
# 57621: spotifyd
networking.firewall.allowedTCPPorts = [ 57621 ]; networking.firewall.allowedTCPPorts = [ 57621 ];
# Auto-mount new devices # Auto-mount new devices
services.udev.extraRules = '' # services.udev.extraRules = ''
ACTION=="add", SUBSYSTEMS=="usb", SUBSYSTEM=="block", ENV{ID_FS_USAGE}=="filesystem", RUN{program}+="${pkgs.systemd}/bin/systemd-mount --no-block --automount=yes --collect $devnode /media" # ACTION=="add", SUBSYSTEMS=="usb", SUBSYSTEM=="block", ENV{ID_FS_USAGE}=="filesystem", RUN{program}+="${pkgs.systemd}/bin/systemd-mount --no-block --automount=yes --collect $devnode /media"
''; # '';
services.xserver.displayManager.gdm.enable = true; services.xserver.displayManager.gdm.enable = true;

View file

@ -9,13 +9,13 @@
services.spotifyd = { services.spotifyd = {
enable = true; enable = true;
package = (pkgs.spotifyd.override {withKeyring = true; });
settings = { settings = {
global = { global = {
device_name = "desktop"; device_name = "desktop";
bitrate = 160; bitrate = 160;
volume_normalisation = true; volume_normalisation = true;
autoplay = false; autoplay = false;
zeroconf_port = 57621;
}; };
}; };
}; };

View file

@ -2,8 +2,9 @@
theme = import ../../../../colors.nix; theme = import ../../../../colors.nix;
in lib.mkIf (osConfig.withNiri) { in lib.mkIf (osConfig.withNiri) {
home.packages = with pkgs; [ home.packages = with pkgs; [
polkit_gnome
swaybg swaybg
iwgtk
blueberry
]; ];
programs.fuzzel= { programs.fuzzel= {
@ -34,9 +35,7 @@ in lib.mkIf (osConfig.withNiri) {
"clock" "clock"
]; ];
modules-right = [ modules-right = [
"temperature" "wireplumber"
"cpu"
"memory"
"battery" "battery"
]; ];
}; };

View file

@ -75,6 +75,8 @@
spawn-at-startup = [ spawn-at-startup = [
{ command = ["waybar"]; } { command = ["waybar"]; }
{ command = ["swaybg" "-i" "${../../../wallpaper/wallpaper.png}" "-m" "fill"]; } { command = ["swaybg" "-i" "${../../../wallpaper/wallpaper.png}" "-m" "fill"]; }
{ command = ["pamixer" "--set-volume" "0"]; }
{ command = ["systemctl" "--user" "restart" "spotifyd.service"]; }
]; ];
binds = { binds = {
@ -82,8 +84,8 @@
"Mod+B".action.spawn = "firefox"; "Mod+B".action.spawn = "firefox";
"Mod+S".action.spawn = ["fuzzel" "-I" "-T" "alacritty"]; "Mod+S".action.spawn = ["fuzzel" "-I" "-T" "alacritty"];
"XF86AudioRaiseVolume".action.spawn = "wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.1+"; "XF86AudioRaiseVolume".action.spawn = "pamixer -i 5";
"XF86AudioLowerVolume".action.spawn = "wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.1-"; "XF86AudioLowerVolume".action.spawn = "pamixer -d 5";
"Mod+Backspace".action.close-window = []; "Mod+Backspace".action.close-window = [];