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
|
|
|
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-08-26 18:35:57 -04:00
|
|
|
./raffauflabs.nix
|
2024-07-22 19:56:56 -04:00
|
|
|
./secrets.nix
|
2024-08-15 15:55:39 -04:00
|
|
|
./stylix.nix
|
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-09-27 10:21:18 -04:00
|
|
|
self.nixosModules.hw-common-amd-cpu
|
|
|
|
self.nixosModules.hw-common-amd-gpu
|
|
|
|
self.nixosModules.hw-common-bluetooth
|
|
|
|
self.nixosModules.hw-common-ssd
|
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-04-22 20:18:47 -04:00
|
|
|
samba = {
|
|
|
|
enable = true;
|
|
|
|
openFirewall = true;
|
2024-06-22 12:10:36 -04:00
|
|
|
securityType = "user";
|
|
|
|
|
2024-10-01 11:24:50 -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-08-09 21:00:32 -04:00
|
|
|
|
2024-04-22 20:18:47 -04:00
|
|
|
shares = {
|
|
|
|
Media = {
|
2024-08-29 10:14:17 -04:00
|
|
|
"create mask" = "0755";
|
|
|
|
"directory mask" = "0755";
|
|
|
|
"force group" = "users";
|
|
|
|
"force user" = "aly";
|
|
|
|
"guest ok" = "yes";
|
|
|
|
"read only" = "no";
|
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
|
|
|
};
|
2024-06-22 12:10:36 -04:00
|
|
|
|
2024-04-22 20:18:47 -04:00
|
|
|
Archive = {
|
|
|
|
"create mask" = "0755";
|
|
|
|
"directory mask" = "0755";
|
2024-08-29 10:14:17 -04:00
|
|
|
"force group" = "users";
|
|
|
|
"force user" = "aly";
|
2024-06-07 13:14:34 -04:00
|
|
|
"guest ok" = "yes";
|
|
|
|
"read only" = "no";
|
2024-08-29 10:14:17 -04:00
|
|
|
browseable = "yes";
|
|
|
|
comment = "Archive @ ${config.networking.hostName}";
|
|
|
|
path = archiveDirectory;
|
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-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-09-22 13:26:43 -04:00
|
|
|
session = lib.getExe config.programs.hyprland.package;
|
2024-06-22 12:10:36 -04:00
|
|
|
};
|
|
|
|
|
2024-06-22 12:22:31 -04:00
|
|
|
steam.enable = true;
|
2024-09-22 13:26:43 -04:00
|
|
|
hyprland.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-03-03 21:42:59 -05:00
|
|
|
}
|