bump
This commit is contained in:
Tao Tien 2024-10-07 19:41:32 -07:00
parent 15a359a954
commit eb8c06c947
6 changed files with 173 additions and 161 deletions

View file

@ -68,6 +68,7 @@
#rust
bacon
cargo-expand
cargo-feature
cargo-generate
cargo-watch

View file

@ -56,48 +56,48 @@ in {
];
# THE FINALS audio borked
services.pipewire.enable = !if_desktop;
hardware.pulseaudio.enable = if_desktop;
hardware.pulseaudio.support32Bit = if_desktop;
services.pipewire.extraConfig = {
pipewire."99-low-latency" = {
context.properties = {
default.allowed-rates = [44100 48000 96000 192000];
default.clock.rate = 192000;
default.clock.quantum = 32;
default.clock.min-quantum = 32;
default.clock.max-quantum = 32;
};
context.modules = [
{
name = "libpipewire-module-rt";
args = {
nice.level = -12;
rt.prio = 89;
rt.time.soft = 200000;
rt.time.hard = 200000;
};
flags = ["ifexists nofail"];
}
];
};
pipewire-pulse."99-low-latency" = {
context.modules = [
{
name = "libpipewire-module-protocol-pulse";
args = {
pulse.min.req = "32/192000";
pulse.default.req = "32/192000";
pulse.max.req = "32/192000";
pulse.min.quantum = "32/192000";
pulse.max.quantum = "32/192000";
};
}
];
stream.properties = {
node.latency = "32/192000";
resample.quality = 1;
};
};
};
# services.pipewire.enable = !if_desktop;
# hardware.pulseaudio.enable = if_desktop;
# hardware.pulseaudio.support32Bit = if_desktop;
# services.pipewire.extraConfig = {
# pipewire."99-low-latency" = {
# context.properties = {
# default.allowed-rates = [44100 48000 96000 192000];
# default.clock.rate = 192000;
# default.clock.quantum = 32;
# default.clock.min-quantum = 32;
# default.clock.max-quantum = 32;
# };
# context.modules = [
# {
# name = "libpipewire-module-rt";
# args = {
# nice.level = -12;
# rt.prio = 89;
# rt.time.soft = 200000;
# rt.time.hard = 200000;
# };
# flags = ["ifexists nofail"];
# }
# ];
# };
# pipewire-pulse."99-low-latency" = {
# context.modules = [
# {
# name = "libpipewire-module-protocol-pulse";
# args = {
# pulse.min.req = "32/192000";
# pulse.default.req = "32/192000";
# pulse.max.req = "32/192000";
# pulse.min.quantum = "32/192000";
# pulse.max.quantum = "32/192000";
# };
# }
# ];
# stream.properties = {
# node.latency = "32/192000";
# resample.quality = 1;
# };
# };
# };
}

View file

@ -1,95 +1,95 @@
{config, ...}: {
age.secrets.uwuraid.file = ../secrets/uwuraid.age;
# systemd.mounts = let
# opts = {
# type = "cifs";
# mountConfig = {Options = "x-systemd.automount,users,noauto,credentials=${config.age.secrets.uwuraid.path},noatime,uid=1000,gid=100";};
# };
# in [
# (opts
# // {
# what = "//100.97.47.81/anime";
# where = "/mnt/uwuraid/anime";
# })
# # (opts
# # // {
# # what = "//100.97.47.81/appdata";
# # where = "/mnt/uwuraid/appdata";
# # })
# (opts
# // {
# what = "//100.97.47.81/backup";
# where = "/mnt/uwuraid/backup";
# })
# (opts
# // {
# what = "//100.97.47.81/everything";
# where = "/mnt/uwuraid/everything";
# })
# (opts
# // {
# what = "//100.97.47.81/games";
# where = "/mnt/uwuraid/games";
# })
# # (opts
# # // {
# # what = "//100.97.47.81/isos";
# # where = "/mnt/uwuraid/isos";
# # })
# # (opts
# # // {
# # what = "//100.97.47.81/jellyfin";
# # where = "/mnt/uwuraid/jellyfin";
# # })
# (opts
# // {
# what = "//100.97.47.81/movies";
# where = "/mnt/uwuraid/movies";
# })
# (opts
# // {
# what = "//100.97.47.81/music";
# where = "/mnt/uwuraid/music";
# })
# (opts
# // {
# what = "//100.97.47.81/photos";
# where = "/mnt/uwuraid/photos";
# })
# (opts
# // {
# what = "//100.97.47.81/syncthing";
# where = "/mnt/uwuraid/syncthing";
# })
# # (opts
# # // {
# # what = "//100.97.47.81/television";
# # where = "/mnt/uwuraid/television";
# # })
# (opts
# // {
# what = "//100.97.47.81/virginia";
# where = "/mnt/uwuraid/virginia";
# })
# ];
# systemd.automounts = let
# opts = {
# wantedBy = ["multi-user.target"];
# automountConfig = {TimeoutIdleSec = "60";};
# };
# in [
# (opts // {where = "/mnt/uwuraid/anime";})
# # (opts // {where = "/mnt/uwuraid/appdata";})
# (opts // {where = "/mnt/uwuraid/backup";})
# (opts // {where = "/mnt/uwuraid/everything";})
# (opts // {where = "/mnt/uwuraid/games";})
# # (opts // {where = "/mnt/uwuraid/isos";})
# # (opts // { where = "/mnt/uwuraid/jellyfin"; })
# (opts // {where = "/mnt/uwuraid/movies";})
# (opts // {where = "/mnt/uwuraid/music";})
# (opts // {where = "/mnt/uwuraid/photos";})
# (opts // {where = "/mnt/uwuraid/syncthing";})
# (opts // {where = "/mnt/uwuraid/virginia";})
# # (opts // {where = "/mnt/uwuraid/television";})
# ];
systemd.mounts = let
opts = {
type = "cifs";
mountConfig = {Options = "x-systemd.automount,users,noauto,credentials=${config.age.secrets.uwuraid.path},noatime,uid=1000,gid=100";};
};
in [
(opts
// {
what = "//100.97.47.81/anime";
where = "/mnt/uwuraid/anime";
})
# (opts
# // {
# what = "//100.97.47.81/appdata";
# where = "/mnt/uwuraid/appdata";
# })
(opts
// {
what = "//100.97.47.81/backup";
where = "/mnt/uwuraid/backup";
})
(opts
// {
what = "//100.97.47.81/everything";
where = "/mnt/uwuraid/everything";
})
(opts
// {
what = "//100.97.47.81/games";
where = "/mnt/uwuraid/games";
})
# (opts
# // {
# what = "//100.97.47.81/isos";
# where = "/mnt/uwuraid/isos";
# })
# (opts
# // {
# what = "//100.97.47.81/jellyfin";
# where = "/mnt/uwuraid/jellyfin";
# })
(opts
// {
what = "//100.97.47.81/movies";
where = "/mnt/uwuraid/movies";
})
(opts
// {
what = "//100.97.47.81/music";
where = "/mnt/uwuraid/music";
})
(opts
// {
what = "//100.97.47.81/photos";
where = "/mnt/uwuraid/photos";
})
(opts
// {
what = "//100.97.47.81/syncthing";
where = "/mnt/uwuraid/syncthing";
})
# (opts
# // {
# what = "//100.97.47.81/television";
# where = "/mnt/uwuraid/television";
# })
(opts
// {
what = "//100.97.47.81/virginia";
where = "/mnt/uwuraid/virginia";
})
];
systemd.automounts = let
opts = {
wantedBy = ["multi-user.target"];
automountConfig = {TimeoutIdleSec = "60";};
};
in [
(opts // {where = "/mnt/uwuraid/anime";})
# (opts // {where = "/mnt/uwuraid/appdata";})
(opts // {where = "/mnt/uwuraid/backup";})
(opts // {where = "/mnt/uwuraid/everything";})
(opts // {where = "/mnt/uwuraid/games";})
# (opts // {where = "/mnt/uwuraid/isos";})
# (opts // { where = "/mnt/uwuraid/jellyfin"; })
(opts // {where = "/mnt/uwuraid/movies";})
(opts // {where = "/mnt/uwuraid/music";})
(opts // {where = "/mnt/uwuraid/photos";})
(opts // {where = "/mnt/uwuraid/syncthing";})
(opts // {where = "/mnt/uwuraid/virginia";})
# (opts // {where = "/mnt/uwuraid/television";})
];
}