Files
nix-config/hosts/m920q/default.nix
2025-12-03 12:36:36 +01:00

71 lines
1.6 KiB
Nix

{
lib,
...
}:
{
imports = [
../../modules/system.nix
../../modules/nix-settings.nix
../../modules/vpn.nix
../../modules/fonts.nix
../../modules/firewall.nix
../../modules/localisation.nix
../../modules/openssh.nix
../../modules/pipewire.nix
../../modules/services.nix
../../modules/regreet/regreet.nix
../../modules/plymouth.nix
../../modules/file_managers/spacefm.nix
../../modules/appimage.nix
../../modules/qemu.nix
../../modules/thunderbird.nix
# ../../modules/canon_eos_550d.nix
# Include the results of the hardware scan.
./hardware-configuration.nix
];
# Bootloader.
boot.loader = {
efi.canTouchEfiVariables = true;
systemd-boot.enable = true;
};
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
networking = {
hostName = "nix-desktop";
networkmanager = {
enable = true;
};
useNetworkd = false;
useDHCP = false;
wireless = {
enable = false; # Disable wpa_supplicant, NetworkManager handles WiFi
};
};
# Configure static IP for wired connection via NetworkManager
# Create this file: /etc/NetworkManager/system-connections/eno1.nmconnection
environment.etc."NetworkManager/system-connections/eno1.nmconnection" = {
text = ''
[connection]
id=eno1
type=ethernet
interface-name=eno1
[ipv4]
method=manual
address1=192.168.2.40/24
gateway=192.168.2.1
dns=192.168.2.2;1.1.1.1;8.8.8.8;
[ipv6]
method=auto
'';
mode = "0600";
};
hardware.graphics.enable = true;
system.stateVersion = "25.11"; # Did you read the comment?
}