move stuff to extras

This commit is contained in:
Tao Tien 2023-07-23 20:26:39 -07:00
parent 1dd8b80d42
commit 9279c2e232
4 changed files with 6 additions and 6 deletions

9
extras/dev.nix Normal file
View file

@ -0,0 +1,9 @@
{ pkgs, ... }: {
environment.systemPackages = with pkgs; [
elf2uf2-rs
gcc
gdb
lldb
rustup
];
}

30
extras/gaming.nix Normal file
View file

@ -0,0 +1,30 @@
{ pkgs, ... }: {
environment.systemPackages = with pkgs; [
lutris
mangohud
prismlauncher
wine
];
programs.steam.enable = true;
programs.gamemode.enable = true;
programs.gamescope.enable = true;
security.rtkit.enable = true;
environment.etc =
let
json = pkgs.formats.json { };
in
{
"pipewire/pipewire.d/92-low-latency.conf".source = json.generate "92-low-latency.conf" {
context.properties = {
# default.clock.rate = 48000;
# default.allowed-rates = []
default.clock.quantum = 32;
default.clock.min-quantum = 32;
default.clock.max-quantum = 32;
};
};
};
}

23
extras/uwuraid.nix Normal file
View file

@ -0,0 +1,23 @@
{ ... }: {
services.rpcbind.enable = true;
systemd.mounts = let commonMountOptions = { type = "nfs"; mountConfig = { Options = "noatime"; }; }; in
[
(commonMountOptions // { what = "100.86.160.104:/mnt/user/anime"; where = "/mnt/uwuraid/anime"; })
(commonMountOptions // { what = "100.86.160.104:/mnt/user/backup"; where = "/mnt/uwuraid/backup"; })
(commonMountOptions // { what = "100.86.160.104:/mnt/user/everything"; where = "/mnt/uwuraid/everything"; })
(commonMountOptions // { what = "100.86.160.104:/mnt/user/movies"; where = "/mnt/uwuraid/movies"; })
(commonMountOptions // { what = "100.86.160.104:/mnt/user/photos"; where = "/mnt/uwuraid/photos"; })
(commonMountOptions // { what = "100.86.160.104:/mnt/user/syncthing"; where = "/mnt/uwuraid/syncthing"; })
(commonMountOptions // { what = "100.86.160.104:/mnt/user/television"; where = "/mnt/uwuraid/television"; })
];
systemd.automounts = let commonAutoMountOptions = { wantedBy = [ "multi-user.target" ]; automountConfig = { TimeoutIdleSec = "60"; }; }; in
[
(commonAutoMountOptions // { where = "/mnt/uwuraid/anime"; })
(commonAutoMountOptions // { where = "/mnt/uwuraid/backup"; })
(commonAutoMountOptions // { where = "/mnt/uwuraid/everything"; })
(commonAutoMountOptions // { where = "/mnt/uwuraid/movies"; })
(commonAutoMountOptions // { where = "/mnt/uwuraid/photos"; })
(commonAutoMountOptions // { where = "/mnt/uwuraid/syncthing"; })
(commonAutoMountOptions // { where = "/mnt/uwuraid/television"; })
];
}