mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2026-03-20 00:12:56 +01:00
Compare commits
No commits in common. "273d6e920712cddca48e44deb3d8497290f3a3fc" and "5865e9b08c09964800da189fbf321aa2d528a20d" have entirely different histories.
273d6e9207
...
5865e9b08c
13 changed files with 17 additions and 62 deletions
2
flake.lock
generated
2
flake.lock
generated
|
|
@ -913,7 +913,7 @@
|
||||||
"oisd": {
|
"oisd": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"narHash": "sha256-fgfgm5GHDqq/RIRF8M1j6H3OZ/r1DVPgwMvwikdauNI=",
|
"narHash": "sha256-QIpM9e7dye+EDO9rvlhSbDVLtmcgw8aLtg0DncPHK2s=",
|
||||||
"type": "file",
|
"type": "file",
|
||||||
"url": "https://big.oisd.nl/domainswild"
|
"url": "https://big.oisd.nl/domainswild"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,6 @@ in
|
||||||
fwupd
|
fwupd
|
||||||
fw-ectool
|
fw-ectool
|
||||||
monero-gui
|
monero-gui
|
||||||
remmina
|
|
||||||
];
|
];
|
||||||
etc.hosts.mode = "0700";
|
etc.hosts.mode = "0700";
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -56,7 +56,7 @@
|
||||||
|
|
||||||
home.file.".cache/nwg-dock-pinned".text = ''
|
home.file.".cache/nwg-dock-pinned".text = ''
|
||||||
chromium-browser
|
chromium-browser
|
||||||
nautilus
|
thunar
|
||||||
${if (host == "sakura") then "darktable" else ""}
|
${if (host == "sakura") then "darktable" else ""}
|
||||||
${if (host == "sakura") then "flstudio" else ""}
|
${if (host == "sakura") then "flstudio" else ""}
|
||||||
${if (host == "iris") then "steam" else ""}
|
${if (host == "iris") then "steam" else ""}
|
||||||
|
|
@ -79,13 +79,13 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
listener {
|
listener {
|
||||||
timeout = 300 # 5m in seconds
|
timeout = 165 # in seconds
|
||||||
on-timeout = if [ -f "$HOME/.config/hypr/caffeine_mode" ]; then exit 0; else pgrep hyprlock || hyprlock; fi
|
on-timeout = pgrep hyprlock || hyprlock
|
||||||
}
|
}
|
||||||
|
|
||||||
listener {
|
listener {
|
||||||
timeout = 1800 # 30m in seconds
|
timeout = 1800 # in seconds
|
||||||
on-timeout = if [ -f "$HOME/.config/hypr/caffeine_mode" ]; then exit 0; else systemctl suspend; hyprlock; fi
|
on-timeout = systemctl suspend; hyprlock
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
@ -264,7 +264,7 @@
|
||||||
"$mainMod, D, exec, bemenu-run -l 5 --ignorecase"
|
"$mainMod, D, exec, bemenu-run -l 5 --ignorecase"
|
||||||
"SUPER SHIFT, L, exec, swaylock --image /home/${username}/.local/share/bg.png"
|
"SUPER SHIFT, L, exec, swaylock --image /home/${username}/.local/share/bg.png"
|
||||||
"SUPER, L, exec, swaylock --image /home/${username}/.local/share/bg.png"
|
"SUPER, L, exec, swaylock --image /home/${username}/.local/share/bg.png"
|
||||||
"$mainMod, E, exec, nautilus"
|
"$mainMod, E, exec, thunar"
|
||||||
"$mainMod SHIFT, B, exec, pkill -SIGUSR1 .waybar-wrapped"
|
"$mainMod SHIFT, B, exec, pkill -SIGUSR1 .waybar-wrapped"
|
||||||
"$mainMod, C,exec, hyprpicker -a"
|
"$mainMod, C,exec, hyprpicker -a"
|
||||||
"$mainMod, W,exec, wallpaper-picker"
|
"$mainMod, W,exec, wallpaper-picker"
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,6 @@
|
||||||
direnv
|
direnv
|
||||||
nwg-dock-hyprland
|
nwg-dock-hyprland
|
||||||
hyprland-monitor-attached
|
hyprland-monitor-attached
|
||||||
hypridle
|
|
||||||
];
|
];
|
||||||
# systemd.user.targets.hyprland-session.Unit.Wants = [ "xdg-desktop-autostart.target" ];
|
# systemd.user.targets.hyprland-session.Unit.Wants = [ "xdg-desktop-autostart.target" ];
|
||||||
wayland.windowManager.hyprland = {
|
wayland.windowManager.hyprland = {
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,6 @@
|
||||||
gnumake
|
gnumake
|
||||||
python3
|
python3
|
||||||
nautilus
|
nautilus
|
||||||
qbittorrent
|
|
||||||
|
|
||||||
# CLI shit
|
# CLI shit
|
||||||
bitwarden-cli
|
bitwarden-cli
|
||||||
|
|
|
||||||
|
|
@ -34,16 +34,6 @@ in
|
||||||
programs.qutebrowser = {
|
programs.qutebrowser = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
keyBindings = {
|
|
||||||
normal = {
|
|
||||||
"d" = "scroll-page 0 0.5";
|
|
||||||
"u" = "scroll-page 0 -0.5";
|
|
||||||
"x" = "tab-close -o";
|
|
||||||
"<Ctrl-Shift-T>" = "undo";
|
|
||||||
",v" = "spawn mpv {url}";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
fonts = {
|
fonts = {
|
||||||
default_family = "GohuFont 14 Nerd Font Mono";
|
default_family = "GohuFont 14 Nerd Font Mono";
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,6 @@ let
|
||||||
dock-on-all-monitors = pkgs.writeScriptBin "dock-on-all-monitors" (
|
dock-on-all-monitors = pkgs.writeScriptBin "dock-on-all-monitors" (
|
||||||
builtins.readFile ./scripts/dock-on-all-monitors.sh
|
builtins.readFile ./scripts/dock-on-all-monitors.sh
|
||||||
);
|
);
|
||||||
caffeine = pkgs.writeScriptBin "caffeine" (builtins.readFile ./scripts/caffeine);
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
|
|
@ -30,6 +29,5 @@ in
|
||||||
toggle_oppacity
|
toggle_oppacity
|
||||||
ascii
|
ascii
|
||||||
dock-on-all-monitors
|
dock-on-all-monitors
|
||||||
caffeine
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
CAFFEINE_FILE="$HOME/.config/hypr/caffeine_mode"
|
|
||||||
|
|
||||||
if [ -f "$CAFFEINE_FILE" ]; then
|
|
||||||
rm "$CAFFEINE_FILE"
|
|
||||||
notify-send "Caffeine" "Disabled"
|
|
||||||
else
|
|
||||||
touch "$CAFFEINE_FILE"
|
|
||||||
notify-send "Caffeine" "Enabled"
|
|
||||||
fi
|
|
||||||
|
|
@ -109,12 +109,11 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
"custom/music": {
|
"custom/music": {
|
||||||
"interval": "once",
|
"interval": 5,
|
||||||
"return-type": "json",
|
"return-type": "json",
|
||||||
"exec": "~/.local/bin/waybar-music",
|
"exec": "~/.local/bin/waybar-music",
|
||||||
"on-click": "playerctl play-pause",
|
"on-click": "playerctl play-pause",
|
||||||
"escape": true,
|
"escape": true
|
||||||
"signal": 2
|
|
||||||
},
|
},
|
||||||
|
|
||||||
"custom/devices": {
|
"custom/devices": {
|
||||||
|
|
|
||||||
|
|
@ -97,10 +97,8 @@ in
|
||||||
#!/usr/bin/env zsh
|
#!/usr/bin/env zsh
|
||||||
|
|
||||||
typeset -A known=(
|
typeset -A known=(
|
||||||
'ch700n' '38:18:4C:D1:AE:48'
|
'headphones' '38:18:4C:D1:AE:48'
|
||||||
'airpods' '2C:18:09:EF:BD:11'
|
'airpods' '2C:18:09:EF:BD:11'
|
||||||
'headphones' '38:18:4C:D4:B7:B4'
|
|
||||||
'trackpad' '38:18:4C:D4:B7:B4'
|
|
||||||
)
|
)
|
||||||
|
|
||||||
function get_addr_or_fail () {
|
function get_addr_or_fail () {
|
||||||
|
|
@ -196,18 +194,18 @@ in
|
||||||
|
|
||||||
if [[ "$(echo $MICROPHONE_STATE | grep 'Microphone: Connected')" ]]; then
|
if [[ "$(echo $MICROPHONE_STATE | grep 'Microphone: Connected')" ]]; then
|
||||||
MIC=1
|
MIC=1
|
||||||
MTEXT="microphone: available!"
|
MTEXT=" - available!"
|
||||||
else
|
else
|
||||||
MIC=0
|
MIC=0
|
||||||
MTEXT=""
|
MTEXT=" "
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$(echo $CAMERA_STATE | grep 'Camera: Connected')" ]]; then
|
if [[ "$(echo $CAMERA_STATE | grep 'Camera: Connected')" ]]; then
|
||||||
CAM=1
|
CAM=1
|
||||||
CTEXT="camera: available!"
|
CTEXT=" - available!"
|
||||||
else
|
else
|
||||||
CAM=0
|
CAM=0
|
||||||
CTEXT=""
|
CTEXT=" "
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "$CTEXT $MTEXT"
|
echo "$CTEXT $MTEXT"
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ in
|
||||||
"https://raw.githubusercontent.com/DNSCrypt/dnscrypt-resolvers/master/v3/public-resolvers.md"
|
"https://raw.githubusercontent.com/DNSCrypt/dnscrypt-resolvers/master/v3/public-resolvers.md"
|
||||||
"https://download.dnscrypt.info/resolvers-list/v3/public-resolvers.md"
|
"https://download.dnscrypt.info/resolvers-list/v3/public-resolvers.md"
|
||||||
];
|
];
|
||||||
minisign_key = "sha256-fgfgm5GHDqq/RIRF8M1j6H3OZ/r1DVPgwMvwikdauNI="; # See https://github.com/DNSCrypt/dnscrypt-resolvers/blob/master/v3/public-resolvers.md
|
minisign_key = "sha256-QIpM9e7dye+EDO9rvlhSbDVLtmcgw8aLtg0DncPHK2s="; # See https://github.com/DNSCrypt/dnscrypt-resolvers/blob/master/v3/public-resolvers.md
|
||||||
cache_file = "/var/lib/dnscrypt/public-resolvers.md";
|
cache_file = "/var/lib/dnscrypt/public-resolvers.md";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -16,28 +16,13 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
programs.obs-studio = {
|
|
||||||
enable = true;
|
|
||||||
enableVirtualCamera = true;
|
|
||||||
};
|
|
||||||
environment.systemPackages = [
|
|
||||||
(pkgs.wrapOBS {
|
|
||||||
plugins = with pkgs.obs-studio-plugins; [
|
|
||||||
wlrobs
|
|
||||||
obs-backgroundremoval
|
|
||||||
obs-pipewire-audio-capture
|
|
||||||
obs-vaapi # optional AMD hardware acceleration
|
|
||||||
obs-gstreamer
|
|
||||||
obs-vkcapture
|
|
||||||
];
|
|
||||||
})
|
|
||||||
];
|
|
||||||
home-manager = {
|
home-manager = {
|
||||||
users.${username} = {
|
users.${username} = {
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
gimp
|
gimp
|
||||||
darktable
|
darktable
|
||||||
audacity
|
audacity
|
||||||
|
obs-studio
|
||||||
kdePackages.kdenlive
|
kdePackages.kdenlive
|
||||||
orca-slicer
|
orca-slicer
|
||||||
freecad
|
freecad
|
||||||
|
|
|
||||||
|
|
@ -76,8 +76,7 @@ in
|
||||||
nsxiv
|
nsxiv
|
||||||
imv
|
imv
|
||||||
libreoffice
|
libreoffice
|
||||||
#xfce.thunar
|
xfce.thunar
|
||||||
nautilus
|
|
||||||
# spotify
|
# spotify
|
||||||
spotify-player
|
spotify-player
|
||||||
thunderbird
|
thunderbird
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue