Skip to content

Commit 5453d5a

Browse files
committed
updoot, plus timekpr
1 parent 3ed24ae commit 5453d5a

8 files changed

Lines changed: 59 additions & 33 deletions

File tree

flake.lock

Lines changed: 18 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

home/desktop-hyprland.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ in
9292
pkill --euid "$USER" --signal SIGINT wf-recorder && exit
9393
Coords=$(slurp) || exit
9494
rm -f "/home/$USER/new.mp4"
95-
wf-recorder -g "$Coords" -f "/home/$USER/new.mp4" || exit
95+
wf-recorder -audio=easyeffects_sink.monitor -g "$Coords" -f "/home/$USER/new.mp4" || exit
9696
vlc "/home/$USER/new.mp4"
9797
''}"
9898
"$mod SHIFT, A, exec, ${pkgs.writeShellScript "audio.sh" ''

home/music.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
"ardour/.cache/ardour7"
2727
"ardour/.config/ardour8"
2828
"ardour/.cache/ardour8"
29+
"ardour/.config/ardour9"
30+
"ardour/.cache/ardour9"
2931

3032
"vital/.local/share/vital"
3133

hosts/newhorizons.nix

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,8 @@ in
8989
musnix.enable = true;
9090

9191
# security.pam.services.hyprlock = {};
92-
xdg.portal = {
93-
enable = true;
94-
extraPortals = [ pkgs.xdg-desktop-portal-hyprland ];
95-
config.common.default = "*";
96-
};
92+
93+
environment.pathsToLink = [ "/share/applications" "/share/xdg-desktop-portal" ];
9794

9895
# nvidia
9996
hardware.nvidia.modesetting.enable = true;

hosts/terrestrial.nix

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
impermanence.enable = true;
2020
pipewire.enable = true;
2121
networking.enable = true;
22+
timekpr.enable = true;
2223

2324
backup.directories = [
2425
"/etc/ssh"
@@ -104,19 +105,14 @@
104105
};
105106
};
106107

108+
# yay firewall
107109
networking.firewall.trustedInterfaces = [ "p2p-wl+" ];
108110
networking.firewall.allowedTCPPorts = [ 7236 7250 ];
109111
networking.firewall.allowedUDPPorts = [ 7236 5353 ];
110-
xdg.portal.xdgOpenUsePortal = true;
111112

112113
# some other stuff
113114
networking.interfaces."enp4s0".wakeOnLan.enable = true;
114-
115-
xdg.portal = {
116-
enable = true;
117-
extraPortals = [ pkgs.xdg-desktop-portal-hyprland ];
118-
config.common.default = "*";
119-
};
115+
environment.pathsToLink = [ "/share/applications" "/share/xdg-desktop-portal" ];
120116

121117
programs.nix-ld.enable = true;
122118
programs.nix-ld.libraries = with pkgs; [

shared/modules/default.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,6 @@
1313
./vbhost.nix
1414
./xserver.nix
1515
./wivrn.nix
16+
./timekpr.nix
1617
];
1718
}

shared/modules/steam.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ lib.module config "steam" {
2525
hardware.graphics.enable = true;
2626
hardware.graphics.enable32Bit = true;
2727

28-
# remote play / vr streaming
29-
networking.firewall.allowedTCPPorts = [ 27036 27037 ];
28+
# remote play / vr streaming / local transfer
29+
networking.firewall.allowedTCPPorts = [ 27036 27037 27040 ];
3030
networking.firewall.allowedUDPPorts = [ 27031 27036 10400 10401 ];
3131
}

shared/modules/timekpr.nix

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{ lib, config, pkgs, ... }:
2+
3+
{
4+
options.asta = {
5+
timekpr.enable = lib.mkEnableOption "timekpr";
6+
};
7+
8+
config = lib.mkIf config.asta.timekpr.enable {
9+
10+
services.timekpr.enable = true;
11+
services.timekpr.package = pkgs.timekpr.overrideAttrs (old: {
12+
buildInputs = (old.buildInputs or []) ++ [pkgs.libayatana-appindicator];
13+
});
14+
15+
asta.backup.directories = [
16+
# "/etc/timekpr"
17+
"/var/lib/timekpr"
18+
];
19+
20+
asta.modules = [{
21+
asta.backup.directories = [
22+
"timekpr/.config/timekpr"
23+
];
24+
wayland.windowManager.hyprland.settings.exec-once = [
25+
"timekprc"
26+
];
27+
}];
28+
29+
};
30+
}

0 commit comments

Comments
 (0)