2025-09-04 10:21:17 +02:00
|
|
|
{pkgs, ...}: {
|
2025-08-21 11:21:15 +02:00
|
|
|
imports = [
|
2025-09-04 10:21:17 +02:00
|
|
|
../../profiles/workstation-bspwm.nix
|
|
|
|
|
../../modules/hardware/bepovim.nix
|
|
|
|
|
../../modules/common/nix.nix
|
2025-08-21 11:21:15 +02:00
|
|
|
];
|
|
|
|
|
|
2025-08-07 01:32:02 +02:00
|
|
|
networking.hostName = "pennsardin";
|
|
|
|
|
|
2025-09-04 10:21:17 +02:00
|
|
|
boot.kernelPackages = pkgs.linuxPackages_latest;
|
2025-10-05 08:20:57 +02:00
|
|
|
boot.swraid.enable = true;
|
2025-08-21 11:21:15 +02:00
|
|
|
|
2025-10-05 08:20:57 +02:00
|
|
|
fileSystems = {
|
|
|
|
|
"/" = {
|
|
|
|
|
device = "/dev/disk/by-uuid/b1a1ae71-4277-45d5-a3d2-f49354f263d4";
|
|
|
|
|
fsType = "ext4";
|
|
|
|
|
};
|
|
|
|
|
"/boot" = {
|
|
|
|
|
device = "/dev/disk/by-uuid/1DB2-7A0F";
|
|
|
|
|
fsType = "vfat";
|
|
|
|
|
options = ["fmask=0077" "dmask=0077"];
|
|
|
|
|
};
|
|
|
|
|
"/proc" = {
|
|
|
|
|
device = "proc";
|
|
|
|
|
fsType = "proc";
|
|
|
|
|
options = ["defaults" "hidepid=2"];
|
|
|
|
|
neededForBoot = true;
|
|
|
|
|
};
|
|
|
|
|
"/srv/raid" = {
|
|
|
|
|
device = "/dev/disk/by-uuid/85f72160-4720-463a-9dc6-7c5216733f2b";
|
|
|
|
|
fsType = "btrfs";
|
2025-10-08 01:22:03 +02:00
|
|
|
options = [ "defaults" "nofail" "x-systemd.device-timeout=10" ];
|
2025-10-05 08:20:57 +02:00
|
|
|
};
|
2025-09-16 12:11:06 +02:00
|
|
|
};
|
|
|
|
|
|
2025-10-05 08:20:57 +02:00
|
|
|
swapDevices = [];
|
2025-08-21 11:21:15 +02:00
|
|
|
|
|
|
|
|
users.users.lomig = {
|
2025-08-07 01:32:02 +02:00
|
|
|
isNormalUser = true;
|
2025-09-04 10:21:17 +02:00
|
|
|
extraGroups = ["networkmanager" "lp" "wheel"];
|
2025-08-07 01:32:02 +02:00
|
|
|
shell = pkgs.zsh;
|
|
|
|
|
};
|
|
|
|
|
|
2025-09-04 10:21:17 +02:00
|
|
|
home-manager = {
|
|
|
|
|
useGlobalPkgs = true;
|
2025-09-05 09:59:31 +02:00
|
|
|
users.lomig = import ../../hm/users/lomig-desktop.nix;
|
2025-08-21 11:21:15 +02:00
|
|
|
};
|
2025-09-04 10:21:17 +02:00
|
|
|
|
2025-10-04 07:08:16 +02:00
|
|
|
networking = {
|
2025-10-05 08:20:57 +02:00
|
|
|
useNetworkd = true;
|
|
|
|
|
firewall.allowedTCPPorts = [22 80 5900 5901 5902];
|
|
|
|
|
interfaces.enp11s0.useDHCP = false;
|
2025-10-05 00:48:43 +02:00
|
|
|
interfaces.br0 = {
|
2025-10-05 08:20:57 +02:00
|
|
|
useDHCP = false;
|
2025-10-05 00:48:43 +02:00
|
|
|
ipv4.addresses = [
|
|
|
|
|
{
|
|
|
|
|
address = "192.168.0.2";
|
2025-10-05 08:20:57 +02:00
|
|
|
prefixLength = 24;
|
2025-10-05 00:48:43 +02:00
|
|
|
}
|
|
|
|
|
];
|
|
|
|
|
};
|
|
|
|
|
defaultGateway = {
|
2025-10-05 08:20:57 +02:00
|
|
|
interface = "br0";
|
|
|
|
|
address = "192.168.0.254";
|
2025-10-05 00:48:43 +02:00
|
|
|
};
|
2025-10-05 08:20:57 +02:00
|
|
|
nameservers = ["192.168.0.254" "1.1.1.1"];
|
|
|
|
|
bridges.br0.interfaces = ["enp11s0"];
|
2025-10-05 00:48:43 +02:00
|
|
|
};
|
|
|
|
|
systemd.network = {
|
2025-10-05 08:20:57 +02:00
|
|
|
enable = true;
|
2025-10-05 00:48:43 +02:00
|
|
|
netdevs."br0" = {
|
|
|
|
|
netdevConfig = {
|
|
|
|
|
Name = "br0";
|
|
|
|
|
Kind = "bridge";
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
networks."br0" = {
|
2025-10-05 08:20:57 +02:00
|
|
|
matchConfig.Name = "br0";
|
2025-10-05 00:48:43 +02:00
|
|
|
};
|
|
|
|
|
networks."enp11s0" = {
|
|
|
|
|
matchConfig.Name = "enp11s0";
|
|
|
|
|
networkConfig.Bridge = "br0";
|
|
|
|
|
};
|
2025-10-04 07:08:16 +02:00
|
|
|
};
|
|
|
|
|
|
2025-08-21 11:21:15 +02:00
|
|
|
system.stateVersion = "25.05"; # pour éviter les hurlements inutiles
|
2025-08-07 01:32:02 +02:00
|
|
|
}
|
2025-08-31 12:03:52 +02:00
|
|
|
# vim: set ts=2 sw=2 sts=2 et :
|
2025-09-04 10:21:17 +02:00
|
|
|
|