nixcfg/hosts/mauville/default.nix

145 lines
3.4 KiB
Nix
Raw Normal View History

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-04-07 22:16:33 -04:00
config,
lib,
self,
2024-04-07 22:16:33 -04:00
...
}: let
archiveDirectory = "/mnt/Archive";
mediaDirectory = "/mnt/Media";
in {
imports = [
./disko.nix
./home.nix
./raffauflabs.nix
2024-07-22 19:56:56 -04:00
./secrets.nix
./stylix.nix
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.nixosModules.common-auto-upgrade
self.nixosModules.common-base
2024-08-22 09:09:30 -04:00
self.nixosModules.common-locale
self.nixosModules.common-nix
self.nixosModules.common-overlays
self.nixosModules.common-pkgs
self.nixosModules.common-tailscale
self.nixosModules.common-wifi-profiles
];
2024-07-07 19:17:35 -04:00
boot = {
initrd = {
availableKernelModules = ["xhci_pci" "ahci" "nvme" "usbhid" "sd_mod" "r8169"];
systemd.enable = true;
};
lanzaboote = {
enable = true;
pkiBundle = "/etc/secureboot";
};
2024-07-07 19:17:35 -04:00
loader = {
efi.canTouchEfiVariables = true;
systemd-boot.enable = lib.mkForce false;
2024-07-07 19:17:35 -04:00
};
};
2024-06-28 21:07:20 -04:00
2024-07-07 19:17:35 -04:00
hardware.enableAllFirmware = true;
networking.hostName = "mauville";
2024-06-30 23:01:57 -04:00
services = {
samba = {
enable = true;
openFirewall = true;
securityType = "user";
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
'';
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";
comment = "Media @ ${config.networking.hostName}";
path = mediaDirectory;
};
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;
};
};
};
samba-wsdd = {
enable = true;
openFirewall = true;
};
};
2024-07-07 22:23:19 -04:00
environment.variables.GDK_SCALE = "1.25";
system.stateVersion = "24.05";
zramSwap.memoryPercent = 100;
ar = {
apps = {
2024-06-28 21:07:20 -04:00
firefox.enable = true;
nicotine-plus.enable = true;
podman.enable = true;
steam.enable = true;
virt-manager.enable = true;
};
desktop = {
greetd = {
enable = true;
autologin = "aly";
2024-09-22 13:26:43 -04:00
session = lib.getExe config.programs.hyprland.package;
};
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;
};
users = {
aly = {
enable = true;
password = "$y$j9T$SHPShqI2IpRE101Ey2ry/0$0mhW1f9LbVY02ifhJlP9XVImge9HOpf23s9i1JFLIt9";
syncthing = {
enable = true;
certFile = config.age.secrets.syncthingCert.path;
keyFile = config.age.secrets.syncthingKey.path;
musicPath = "${mediaDirectory}/Music";
};
};
dustin = {
enable = true;
password = "$y$j9T$3mMCBnUQ.xjuPIbSof7w0.$fPtRGblPRSwRLj7TFqk1nzuNQk2oVlgvb/bE47sghl.";
};
};
};
}