From 59d637b1a5fe0ee5b6d46007384e82992e80219d Mon Sep 17 00:00:00 2001 From: Tao Tien <29749622+taotien@users.noreply.github.com> Date: Thu, 3 Oct 2024 14:16:09 -0700 Subject: [PATCH] uhu --- extras/gaming.nix | 6 +- extras/uwuraid.nix | 184 ++++++++++++++++++++++----------------------- 2 files changed, 95 insertions(+), 95 deletions(-) diff --git a/extras/gaming.nix b/extras/gaming.nix index ac2ca42..4445921 100644 --- a/extras/gaming.nix +++ b/extras/gaming.nix @@ -56,9 +56,9 @@ in { ]; # THE FINALS audio borked - # services.pipewire.enable = !if_desktop; - # hardware.pulseaudio.enable = if_desktop; - # hardware.pulseaudio.support32Bit = if_desktop; + services.pipewire.enable = !if_desktop; + hardware.pulseaudio.enable = if_desktop; + hardware.pulseaudio.support32Bit = if_desktop; services.pipewire.extraConfig = { pipewire."99-low-latency" = { context.properties = { diff --git a/extras/uwuraid.nix b/extras/uwuraid.nix index 5a22ce3..2f9885a 100644 --- a/extras/uwuraid.nix +++ b/extras/uwuraid.nix @@ -1,95 +1,95 @@ {config, ...}: { age.secrets.uwuraid.file = ../secrets/uwuraid.age; - systemd.mounts = let - opts = { - type = "cifs"; - mountConfig = {Options = "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";}) + # ]; }