2024-03-12 22:14:08 -04:00
|
|
|
# Custom desktop with AMD Ryzen 5 2600, 16GB RAM, AMD Rx 6700, and 1TB SSD + 2TB HDD.
|
2024-03-03 21:42:59 -05:00
|
|
|
{
|
2024-04-07 22:16:33 -04:00
|
|
|
config,
|
|
|
|
lib,
|
2024-07-09 19:17:53 -04:00
|
|
|
self,
|
2024-04-07 22:16:33 -04:00
|
|
|
...
|
2024-04-22 20:34:02 -04:00
|
|
|
}: let
|
2024-07-05 20:58:05 -04:00
|
|
|
archiveDirectory = "/mnt/Archive";
|
2024-04-22 20:34:02 -04:00
|
|
|
domain = "raffauflabs.com";
|
|
|
|
mediaDirectory = "/mnt/Media";
|
|
|
|
in {
|
2024-05-24 09:37:37 -04:00
|
|
|
imports = [
|
2024-07-16 21:13:30 -04:00
|
|
|
./disko.nix
|
2024-05-24 09:37:37 -04:00
|
|
|
./home.nix
|
2024-07-22 19:56:56 -04:00
|
|
|
./secrets.nix
|
2024-08-15 15:55:39 -04:00
|
|
|
./stylix.nix
|
2024-07-09 19:17:53 -04:00
|
|
|
self.inputs.nixhw.nixosModules.common-amd-cpu
|
|
|
|
self.inputs.nixhw.nixosModules.common-amd-gpu
|
|
|
|
self.inputs.nixhw.nixosModules.common-bluetooth
|
|
|
|
self.inputs.nixhw.nixosModules.common-ssd
|
|
|
|
self.inputs.raffauflabs.nixosModules.raffauflabs
|
2024-08-22 07:46:19 -04:00
|
|
|
self.nixosModules.common-auto-upgrade
|
|
|
|
self.nixosModules.common-base
|
2024-08-22 09:09:30 -04:00
|
|
|
self.nixosModules.common-locale
|
2024-08-22 07:46:19 -04:00
|
|
|
self.nixosModules.common-nix
|
|
|
|
self.nixosModules.common-overlays
|
|
|
|
self.nixosModules.common-pkgs
|
|
|
|
self.nixosModules.common-tailscale
|
|
|
|
self.nixosModules.common-wifi-profiles
|
2024-05-24 09:37:37 -04:00
|
|
|
];
|
2024-03-03 21:42:59 -05:00
|
|
|
|
2024-07-07 19:17:35 -04:00
|
|
|
boot = {
|
2024-07-16 21:13:30 -04:00
|
|
|
initrd = {
|
|
|
|
availableKernelModules = ["xhci_pci" "ahci" "nvme" "usbhid" "sd_mod" "r8169"];
|
2024-08-24 15:25:41 -04:00
|
|
|
systemd.enable = true;
|
|
|
|
};
|
2024-07-16 21:13:30 -04:00
|
|
|
|
2024-08-24 15:25:41 -04:00
|
|
|
lanzaboote = {
|
|
|
|
enable = true;
|
|
|
|
pkiBundle = "/etc/secureboot";
|
2024-07-16 21:13:30 -04:00
|
|
|
};
|
2024-07-07 19:17:35 -04:00
|
|
|
|
|
|
|
loader = {
|
|
|
|
efi.canTouchEfiVariables = true;
|
2024-08-24 15:25:41 -04:00
|
|
|
systemd-boot.enable = lib.mkForce false;
|
2024-07-07 19:17:35 -04:00
|
|
|
};
|
2024-07-05 20:58:05 -04:00
|
|
|
};
|
2024-06-28 21:07:20 -04:00
|
|
|
|
2024-07-07 19:17:35 -04:00
|
|
|
hardware.enableAllFirmware = true;
|
2024-07-05 20:58:05 -04:00
|
|
|
networking.hostName = "mauville";
|
2024-06-30 23:01:57 -04:00
|
|
|
|
2024-07-05 20:58:05 -04:00
|
|
|
services = {
|
2024-07-11 21:06:45 -04:00
|
|
|
forgejo.settings.service.DISABLE_REGISTRATION = lib.mkForce true;
|
|
|
|
|
2024-04-22 20:18:47 -04:00
|
|
|
samba = {
|
|
|
|
enable = true;
|
|
|
|
openFirewall = true;
|
2024-06-22 12:10:36 -04:00
|
|
|
securityType = "user";
|
|
|
|
|
2024-08-09 21:00:32 -04:00
|
|
|
extraConfig = ''
|
|
|
|
read raw = Yes
|
|
|
|
write raw = Yes
|
|
|
|
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=131072 SO_SNDBUF=131072
|
|
|
|
min receivefile size = 16384
|
|
|
|
use sendfile = true
|
|
|
|
aio read size = 16384
|
|
|
|
aio write size = 16384
|
|
|
|
'';
|
|
|
|
|
2024-04-22 20:18:47 -04:00
|
|
|
shares = {
|
|
|
|
Media = {
|
2024-06-07 13:14:34 -04:00
|
|
|
browseable = "yes";
|
2024-07-05 20:58:05 -04:00
|
|
|
comment = "Media @ ${config.networking.hostName}";
|
2024-04-22 20:34:02 -04:00
|
|
|
path = mediaDirectory;
|
2024-04-22 20:18:47 -04:00
|
|
|
"read only" = "no";
|
|
|
|
"guest ok" = "yes";
|
|
|
|
"create mask" = "0755";
|
|
|
|
"directory mask" = "0755";
|
|
|
|
};
|
2024-06-22 12:10:36 -04:00
|
|
|
|
2024-04-22 20:18:47 -04:00
|
|
|
Archive = {
|
2024-06-07 13:14:34 -04:00
|
|
|
browseable = "yes";
|
2024-07-05 20:58:05 -04:00
|
|
|
comment = "Archive @ ${config.networking.hostName}";
|
2024-04-22 20:34:02 -04:00
|
|
|
path = archiveDirectory;
|
2024-04-22 20:18:47 -04:00
|
|
|
"create mask" = "0755";
|
|
|
|
"directory mask" = "0755";
|
2024-06-07 13:14:34 -04:00
|
|
|
"guest ok" = "yes";
|
|
|
|
"read only" = "no";
|
2024-04-22 20:18:47 -04:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2024-06-22 12:10:36 -04:00
|
|
|
|
2024-04-22 20:18:47 -04:00
|
|
|
samba-wsdd = {
|
|
|
|
enable = true;
|
|
|
|
openFirewall = true;
|
2024-03-30 21:14:13 -04:00
|
|
|
};
|
2024-07-17 00:24:59 -04:00
|
|
|
|
2024-07-17 21:12:52 -04:00
|
|
|
transmission = {
|
|
|
|
enable = true;
|
|
|
|
credentialsFile = config.age.secrets.transmission.path;
|
|
|
|
openFirewall = true;
|
2024-07-17 21:51:14 -04:00
|
|
|
openRPCPort = true;
|
2024-07-17 21:12:52 -04:00
|
|
|
|
|
|
|
settings = {
|
|
|
|
download-dir = mediaDirectory;
|
2024-07-18 19:45:16 -04:00
|
|
|
peer-port = 51413;
|
2024-07-17 21:51:14 -04:00
|
|
|
rpc-bind-address = "0.0.0.0";
|
2024-07-17 21:12:52 -04:00
|
|
|
rpc-port = 9091;
|
|
|
|
};
|
|
|
|
};
|
2024-03-28 16:36:10 -04:00
|
|
|
};
|
|
|
|
|
2024-07-07 22:23:19 -04:00
|
|
|
environment.variables.GDK_SCALE = "1.25";
|
2024-08-24 17:03:40 -04:00
|
|
|
system.stateVersion = "24.05";
|
2024-07-07 17:17:51 -04:00
|
|
|
zramSwap.memoryPercent = 100;
|
|
|
|
|
2024-06-26 22:13:02 -04:00
|
|
|
ar = {
|
2024-06-22 12:10:36 -04:00
|
|
|
apps = {
|
2024-06-28 21:07:20 -04:00
|
|
|
firefox.enable = true;
|
2024-06-22 12:10:36 -04:00
|
|
|
nicotine-plus.enable = true;
|
|
|
|
podman.enable = true;
|
|
|
|
steam.enable = true;
|
|
|
|
virt-manager.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
desktop = {
|
|
|
|
greetd = {
|
|
|
|
enable = true;
|
2024-07-10 20:30:11 -04:00
|
|
|
autologin = "aly";
|
2024-08-11 20:40:29 -04:00
|
|
|
session = lib.getExe config.programs.sway.package;
|
2024-06-22 12:10:36 -04:00
|
|
|
};
|
|
|
|
|
2024-06-22 12:22:31 -04:00
|
|
|
steam.enable = true;
|
2024-08-11 20:40:29 -04:00
|
|
|
sway.enable = true;
|
2024-06-22 12:10:36 -04:00
|
|
|
};
|
2024-06-26 22:13:02 -04:00
|
|
|
|
2024-06-22 12:10:36 -04:00
|
|
|
users = {
|
|
|
|
aly = {
|
|
|
|
enable = true;
|
|
|
|
password = "$y$j9T$SHPShqI2IpRE101Ey2ry/0$0mhW1f9LbVY02ifhJlP9XVImge9HOpf23s9i1JFLIt9";
|
2024-07-08 00:58:52 -04:00
|
|
|
|
|
|
|
syncthing = {
|
|
|
|
enable = true;
|
2024-07-08 01:29:09 -04:00
|
|
|
certFile = config.age.secrets.syncthingCert.path;
|
|
|
|
keyFile = config.age.secrets.syncthingKey.path;
|
2024-07-08 00:58:52 -04:00
|
|
|
musicPath = "${mediaDirectory}/Music";
|
|
|
|
};
|
2024-06-22 12:10:36 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
dustin = {
|
|
|
|
enable = true;
|
|
|
|
password = "$y$j9T$3mMCBnUQ.xjuPIbSof7w0.$fPtRGblPRSwRLj7TFqk1nzuNQk2oVlgvb/bE47sghl.";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2024-07-05 20:58:05 -04:00
|
|
|
|
|
|
|
raffauflabs = {
|
|
|
|
inherit domain;
|
|
|
|
enable = true;
|
|
|
|
|
2024-07-16 23:23:22 -04:00
|
|
|
containers.oci.freshRSS.enable = true;
|
2024-07-05 20:58:05 -04:00
|
|
|
|
|
|
|
services = {
|
2024-07-16 23:23:22 -04:00
|
|
|
audiobookshelf.enable = true;
|
|
|
|
|
2024-07-05 20:58:05 -04:00
|
|
|
ddclient = {
|
|
|
|
enable = true;
|
|
|
|
passwordFile = config.age.secrets.cloudflare.path;
|
|
|
|
protocol = "cloudflare";
|
|
|
|
};
|
|
|
|
|
|
|
|
forgejo.enable = true;
|
2024-07-16 23:23:22 -04:00
|
|
|
|
2024-07-05 20:58:05 -04:00
|
|
|
navidrome = {
|
|
|
|
enable = true;
|
2024-07-10 21:21:14 -04:00
|
|
|
|
2024-07-05 20:58:05 -04:00
|
|
|
lastfm = {
|
|
|
|
idFile = config.age.secrets.lastfmId.path;
|
|
|
|
secretFile = config.age.secrets.lastfmSecret.path;
|
|
|
|
};
|
2024-07-10 21:21:14 -04:00
|
|
|
|
2024-07-05 20:58:05 -04:00
|
|
|
spotify = {
|
|
|
|
idFile = config.age.secrets.spotifyId.path;
|
|
|
|
secretFile = config.age.secrets.spotifySecret.path;
|
|
|
|
};
|
|
|
|
};
|
2024-07-16 23:23:22 -04:00
|
|
|
|
|
|
|
plexMediaServer.enable = true;
|
2024-07-05 20:58:05 -04:00
|
|
|
};
|
|
|
|
};
|
2024-03-03 21:42:59 -05:00
|
|
|
}
|