172 lines
3.5 KiB
Nix
172 lines
3.5 KiB
Nix
{ inputs, config, pkgs, ... }:
|
|
|
|
{
|
|
imports = [
|
|
../common/common.nix
|
|
./hardware-configuration.nix
|
|
];
|
|
|
|
networking.hostName = "desktop1";
|
|
|
|
networking.bridges.br0.interfaces = [ "enp4s0" ];
|
|
networking.interfaces.br0.ipv4.addresses = [
|
|
{
|
|
address = "192.168.1.146";
|
|
prefixLength = 24;
|
|
}
|
|
];
|
|
networking.defaultGateway = "192.168.1.254";
|
|
networking.nameservers = [
|
|
"192.168.1.202"
|
|
"192.168.1.137"
|
|
"192.168.1.49"
|
|
];
|
|
networking.useDHCP = false;
|
|
networking.enableIPv6 = false;
|
|
|
|
age.identityPaths = [ "/etc/ssh/ssh_host_ed25519_key" ];
|
|
|
|
fileSystems."/home/smayzy/Main" = {
|
|
device = "nfs-srv1.internal.smayzy.ovh:/srv/NFS/Main";
|
|
fsType = "nfs";
|
|
options = [
|
|
"x-systemd.automount"
|
|
"nofail"
|
|
"noauto"
|
|
"nfsvers=4"
|
|
"soft"
|
|
"timeo=50"
|
|
];
|
|
depends = [ "/home" ];
|
|
};
|
|
fileSystems."/home/smayzy/ISO" = {
|
|
device = "nfs-srv1.internal.smayzy.ovh:/srv/NFS/ISO";
|
|
fsType = "nfs";
|
|
options = [
|
|
"x-systemd.automount"
|
|
"nofail"
|
|
"noauto"
|
|
"nfsvers=4"
|
|
"soft"
|
|
"timeo=50"
|
|
];
|
|
depends = [ "/home" ];
|
|
};
|
|
fileSystems."/home/smayzy/Vault" = {
|
|
device = "nfs-srv1.internal.smayzy.ovh:/srv/NFS/Vault";
|
|
fsType = "nfs";
|
|
options = [
|
|
"x-systemd.automount"
|
|
"nofail"
|
|
"noauto"
|
|
"nfsvers=4"
|
|
"soft"
|
|
"timeo=50"
|
|
];
|
|
depends = [ "/home" ];
|
|
};
|
|
|
|
security.pam.loginLimits = [
|
|
{
|
|
domain = "@audio";
|
|
type = "-";
|
|
item = "memlock";
|
|
value = "unlimited";
|
|
}
|
|
];
|
|
|
|
smayzy = {
|
|
desktop.enable = true;
|
|
nvidia.enable = true;
|
|
virt.enable = true;
|
|
hyprland.enable = true;
|
|
kde.enable = true;
|
|
gui-utilities.enable = true;
|
|
mouse.enable = true;
|
|
docker.enable = true;
|
|
steam.enable = true;
|
|
office.enable = true;
|
|
mullvad.enable = true;
|
|
alacritty.enable = true;
|
|
ardour.enable = true;
|
|
mail.enable = true;
|
|
flatpak = {
|
|
enable = true;
|
|
media.enable = true;
|
|
dev.enable = true;
|
|
gaming.enable = true;
|
|
};
|
|
containers = {
|
|
nixos = {
|
|
};
|
|
docker = {
|
|
};
|
|
networking = {
|
|
bridge = "br0";
|
|
dns = [ "192.168.1.202" ];
|
|
gateway = "192.168.1.254";
|
|
};
|
|
};
|
|
};
|
|
environment.systemPackages = with pkgs; [
|
|
wireshark
|
|
librewolf
|
|
prismlauncher
|
|
obsidian
|
|
komikku
|
|
inkscape
|
|
blender
|
|
aegisub
|
|
kdePackages.kdenlive
|
|
freecad-wayland
|
|
fritzing
|
|
element-desktop
|
|
thunderbird
|
|
kicad
|
|
ghidra
|
|
calibre
|
|
arduino-ide
|
|
arduino-cli
|
|
qbittorrent
|
|
gdb
|
|
chromium
|
|
rpi-imager
|
|
];
|
|
|
|
programs = {
|
|
firefox.enable = true;
|
|
wireshark.enable = true;
|
|
};
|
|
|
|
home-manager = {
|
|
extraSpecialArgs = {
|
|
inherit inputs;
|
|
smayzy = config.smayzy;
|
|
};
|
|
users = {
|
|
smayzy = import ./home.nix;
|
|
};
|
|
backupFileExtension = "backup";
|
|
};
|
|
|
|
system.stateVersion = "24.11";
|
|
|
|
boot.loader.grub.extraEntries = ''
|
|
menuentry "Arch" {
|
|
insmod part_gpt
|
|
insmod ext2
|
|
search --no-floppy --fs-uuid --set=root f64bf53c-c989-4e38-9a97-aaadcb36d428
|
|
linux /boot/vmlinuz-linux root=UUID=f64bf53c-c989-4e38-9a97-aaadcb36d428
|
|
initrd /boot/initramfs-linux.img
|
|
}
|
|
menuentry "Gentoo" {
|
|
insmod part_gpt
|
|
insmod ext2
|
|
search --no-floppy --fs-uuid --set=root ad8fa502-d3dc-4999-abce-17a09a9cb779
|
|
linux /boot/vmlinuz-6.12.47-gentoo-dist root=UUID=ad8fa502-d3dc-4999-abce-17a09a9cb779
|
|
initrd /boot/initramfs-6.12.47-gentoo-dist.img
|
|
}
|
|
'';
|
|
|
|
}
|