alejandra?
This commit is contained in:
parent
63baacc410
commit
21d7561a56
17 changed files with 296 additions and 204 deletions
|
|
@ -1,4 +1,4 @@
|
|||
{ pkgs, ... }: {
|
||||
{pkgs, ...}: {
|
||||
environment.systemPackages = with pkgs; [
|
||||
cosmic-term
|
||||
fontconfig
|
||||
|
|
|
|||
|
|
@ -1,4 +1,8 @@
|
|||
{ inputs, pkgs, ... }: {
|
||||
{
|
||||
inputs,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
environment.systemPackages = with pkgs; [
|
||||
# freecad
|
||||
# pijul
|
||||
|
|
@ -33,6 +37,7 @@
|
|||
# nix
|
||||
nil
|
||||
nixpkgs-fmt
|
||||
alejandra
|
||||
|
||||
# python
|
||||
pypy3
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
# { pkgs, aagl, ... }: {
|
||||
{ pkgs, ... }: {
|
||||
{pkgs, ...}: {
|
||||
# imports = [ aagl.nixosModules.default ];
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
|
|
@ -24,48 +24,51 @@
|
|||
# nix.settings = aagl.nixConfig;
|
||||
# programs.honkers-railway-launcher.enable = true;
|
||||
|
||||
users = { groups.game = { }; };
|
||||
users = {groups.game = {};};
|
||||
security.pam.loginLimits = [
|
||||
{ domain = "@game"; type = "-"; item = "nice"; value = -20; }
|
||||
{
|
||||
domain = "@game";
|
||||
type = "-";
|
||||
item = "nice";
|
||||
value = -20;
|
||||
}
|
||||
];
|
||||
|
||||
security.rtkit.enable = true;
|
||||
environment.etc =
|
||||
let
|
||||
json = pkgs.formats.json { };
|
||||
in
|
||||
{
|
||||
"pipewire/pipewire.conf.d/92-low-latency.conf".source = json.generate "92-low-latency.conf" {
|
||||
context.properties = {
|
||||
# default.allowed-rates = []
|
||||
default.clock.rate = 48000;
|
||||
default.clock.quantum = 32;
|
||||
default.clock.min-quantum = 32;
|
||||
default.clock.max-quantum = 32;
|
||||
};
|
||||
environment.etc = let
|
||||
json = pkgs.formats.json {};
|
||||
in {
|
||||
"pipewire/pipewire.conf.d/92-low-latency.conf".source = json.generate "92-low-latency.conf" {
|
||||
context.properties = {
|
||||
# default.allowed-rates = []
|
||||
default.clock.rate = 48000;
|
||||
default.clock.quantum = 32;
|
||||
default.clock.min-quantum = 32;
|
||||
default.clock.max-quantum = 32;
|
||||
};
|
||||
"pipewire/pipewire-pulse.d/92-low-latency.conf".source = json.generate "92-low-latency.conf" {
|
||||
context.modules = [
|
||||
{
|
||||
name = "libpipewire-module-protocol-pulse";
|
||||
args = {
|
||||
pulse.min.req = "32/48000";
|
||||
pulse.default.req = "32/48000";
|
||||
pulse.max.req = "32/48000";
|
||||
pulse.min.quantum = "32/48000";
|
||||
pulse.max.quantum = "32/48000";
|
||||
};
|
||||
}
|
||||
];
|
||||
stream.properties = {
|
||||
node.latency = "32/48000";
|
||||
resample.quality = 1;
|
||||
};
|
||||
};
|
||||
# "pipewire/pipewire.d/99-input-denoising.conf" = json.generate "99-input-denoising.conf" {
|
||||
# context.modules = [{
|
||||
# name = "libpipewire-module-filter-chain";
|
||||
# }];
|
||||
# };
|
||||
};
|
||||
"pipewire/pipewire-pulse.d/92-low-latency.conf".source = json.generate "92-low-latency.conf" {
|
||||
context.modules = [
|
||||
{
|
||||
name = "libpipewire-module-protocol-pulse";
|
||||
args = {
|
||||
pulse.min.req = "32/48000";
|
||||
pulse.default.req = "32/48000";
|
||||
pulse.max.req = "32/48000";
|
||||
pulse.min.quantum = "32/48000";
|
||||
pulse.max.quantum = "32/48000";
|
||||
};
|
||||
}
|
||||
];
|
||||
stream.properties = {
|
||||
node.latency = "32/48000";
|
||||
resample.quality = 1;
|
||||
};
|
||||
};
|
||||
# "pipewire/pipewire.d/99-input-denoising.conf" = json.generate "99-input-denoising.conf" {
|
||||
# context.modules = [{
|
||||
# name = "libpipewire-module-filter-chain";
|
||||
# }];
|
||||
# };
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,43 +1,79 @@
|
|||
{ ... }: {
|
||||
{...}: {
|
||||
services.rpcbind.enable = true;
|
||||
systemd.mounts =
|
||||
let
|
||||
opts = {
|
||||
type = "cifs";
|
||||
mountConfig = { Options = "users,noauto,credentials=/etc/nixos/smb-secrets,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/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"; })
|
||||
];
|
||||
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/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/television"; })
|
||||
];
|
||||
systemd.mounts = let
|
||||
opts = {
|
||||
type = "cifs";
|
||||
mountConfig = {Options = "users,noauto,credentials=/etc/nixos/smb-secrets,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/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";
|
||||
})
|
||||
];
|
||||
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/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/television";})
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue