2025-10-13 13:46:26 +02:00
|
|
|
{pkgs, config, ...}:
|
2025-10-09 17:46:15 +02:00
|
|
|
let
|
|
|
|
|
globals = import ../../config/globals.nix;
|
|
|
|
|
in {
|
2025-08-21 11:21:15 +02:00
|
|
|
imports = [
|
2025-09-04 10:21:17 +02:00
|
|
|
../../modules/common/nix.nix
|
2025-10-18 06:39:16 +02:00
|
|
|
../../modules/hardware/bepovim.nix
|
2025-10-18 07:57:56 +02:00
|
|
|
../../modules/desktop/xorg-bspwm.nix
|
|
|
|
|
../../modules/common/base.nix
|
|
|
|
|
../../modules/common/fonts.nix
|
|
|
|
|
../../modules/common/networking.nix
|
|
|
|
|
../../modules/common/plymouth.nix
|
|
|
|
|
../../modules/common/audio.nix
|
|
|
|
|
../../modules/common/bluetooth.nix
|
|
|
|
|
../../modules/common/gaming.nix
|
|
|
|
|
../../modules/common/lockscreen.nix
|
|
|
|
|
../../modules/common/energy.nix
|
|
|
|
|
../../modules/common/qemu.nix
|
|
|
|
|
../../modules/common/smtp.nix
|
2025-10-18 06:39:16 +02:00
|
|
|
|
2025-10-18 07:57:56 +02:00
|
|
|
../../modules/hardware/firmware.nix
|
|
|
|
|
../../modules/hardware/gpu-amd.nix
|
|
|
|
|
../../modules/hardware/sensors-zenpower.nix
|
2025-10-18 06:39:16 +02:00
|
|
|
|
2025-10-18 07:57:56 +02:00
|
|
|
../../modules/services/printing.nix
|
2025-10-18 06:39:16 +02:00
|
|
|
|
2025-10-18 07:57:56 +02:00
|
|
|
../../modules/virtual/kvm-amd.nix
|
|
|
|
|
../../modules/virtual/vfio.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-13 13:46:26 +02:00
|
|
|
boot.extraModulePackages = [ config.boot.kernelPackages.nct6687d ];
|
|
|
|
|
boot.kernelModules = [ "nct6683" "k10temp" "i2c-dev" ] ;
|
2025-10-05 08:20:57 +02:00
|
|
|
boot.swraid.enable = true;
|
2025-08-21 11:21:15 +02:00
|
|
|
|
2025-10-13 13:46:26 +02:00
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
|
lm_sensors
|
2025-10-18 06:39:16 +02:00
|
|
|
btrfs-progs
|
|
|
|
|
cifs-utils
|
|
|
|
|
evtest
|
|
|
|
|
git
|
|
|
|
|
vim
|
|
|
|
|
wget
|
|
|
|
|
curl
|
|
|
|
|
ripgrep
|
|
|
|
|
fd
|
|
|
|
|
pciutils
|
|
|
|
|
usbutils
|
|
|
|
|
p7zip
|
|
|
|
|
gdu
|
|
|
|
|
glances
|
|
|
|
|
parted
|
|
|
|
|
tmux
|
|
|
|
|
xorg.xauth
|
|
|
|
|
xorg.xkbcomp
|
|
|
|
|
xorg.xev
|
2025-10-13 13:46:26 +02:00
|
|
|
];
|
|
|
|
|
|
2025-10-18 06:39:16 +02:00
|
|
|
services.openssh = {
|
|
|
|
|
enable = true;
|
|
|
|
|
settings = {
|
|
|
|
|
X11Forwarding = true;
|
|
|
|
|
X11DisplayOffset = 10;
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
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;
|
|
|
|
|
};
|
2025-10-10 20:29:51 +02:00
|
|
|
"/home/lomig/Documents" = {
|
|
|
|
|
device = "/srv/raid/home-data/Documents";
|
|
|
|
|
options = [ "bind" ];
|
|
|
|
|
};
|
|
|
|
|
"/home/lomig/Images" = {
|
|
|
|
|
device = "/srv/raid/home-data/Images";
|
|
|
|
|
options = [ "bind" ];
|
|
|
|
|
};
|
|
|
|
|
"/home/lomig/Musique" = {
|
|
|
|
|
device = "/srv/raid/home-data/Musique";
|
|
|
|
|
options = [ "bind" ];
|
|
|
|
|
};
|
|
|
|
|
"/home/lomig/Téléchargements" = {
|
|
|
|
|
device = "/srv/raid/home-data/Téléchargements";
|
|
|
|
|
options = [ "bind" ];
|
|
|
|
|
};
|
|
|
|
|
"/home/lomig/Vidéos" = {
|
|
|
|
|
device = "/srv/raid/home-data/Vidéos";
|
|
|
|
|
options = [ "bind" ];
|
|
|
|
|
};
|
|
|
|
|
"/home/lomig/nixos-config" = {
|
|
|
|
|
device = "/srv/raid/home-data/nixos-config";
|
|
|
|
|
options = [ "bind" ];
|
|
|
|
|
};
|
2025-10-05 08:20:57 +02:00
|
|
|
"/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-10-09 17:46:15 +02:00
|
|
|
extraGroups = [ "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];
|
2025-10-09 17:46:15 +02:00
|
|
|
interfaces = {
|
|
|
|
|
enp11s0 = {
|
|
|
|
|
useDHCP = false;
|
|
|
|
|
wakeOnLan.enable = true ;
|
2025-10-09 22:40:34 +02:00
|
|
|
};
|
2025-10-09 17:46:15 +02:00
|
|
|
br0 = {
|
|
|
|
|
useDHCP = false;
|
|
|
|
|
ipv4.addresses = [
|
|
|
|
|
{
|
|
|
|
|
address = globals.network.pennsardin.ip;
|
|
|
|
|
prefixLength = 24;
|
|
|
|
|
}
|
|
|
|
|
];
|
|
|
|
|
};
|
2025-10-05 00:48:43 +02:00
|
|
|
};
|
2025-10-09 17:46:15 +02:00
|
|
|
|
2025-10-05 00:48:43 +02:00
|
|
|
defaultGateway = {
|
2025-10-05 08:20:57 +02:00
|
|
|
interface = "br0";
|
2025-10-09 17:46:15 +02:00
|
|
|
address = globals.network.gateway;
|
2025-10-05 00:48:43 +02:00
|
|
|
};
|
2025-10-09 17:46:15 +02:00
|
|
|
nameservers = [ globals.network.gateway "1.1.1.1"];
|
2025-10-05 08:20:57 +02:00
|
|
|
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
|
|
|
|