nix-config/hosts/m920q/default.nix

74 lines
1.6 KiB
Nix
Raw Normal View History

2025-03-24 12:11:44 +01:00
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
2025-09-03 10:03:29 +02:00
{
pkgs,
...
}:
2025-03-24 12:11:44 +01:00
{
2025-09-03 10:03:29 +02:00
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/podman.nix
../../modules/docker.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
];
2025-03-24 12:11:44 +01:00
# Bootloader.
boot.loader = {
2025-04-07 23:40:03 +02:00
efi.canTouchEfiVariables = true;
2025-04-07 18:19:32 +02:00
systemd-boot.enable = true;
2025-03-24 12:11:44 +01:00
};
2025-04-07 23:40:03 +02:00
networking = {
2025-09-03 10:03:29 +02:00
hostName = "nix-desktop";
networkmanager.enable = true;
#useDHCP = lib.mkForce true;
#dhcpcd.enable = true;
interfaces = {
eno1.ipv4.addresses = [
{
address = "192.168.2.40";
prefixLength = 24;
}
];
};
2025-03-24 12:11:44 +01:00
2025-09-03 10:03:29 +02:00
defaultGateway = {
address = "192.168.2.1";
interface = "eno1";
};
2025-03-24 12:11:44 +01:00
2025-09-03 10:03:29 +02:00
nameservers = [
"192.168.2.2"
"1.1.1.1"
"8.8.8.8"
];
2025-04-07 23:40:03 +02:00
};
2025-03-24 12:11:44 +01:00
2025-04-07 23:13:13 +02:00
hardware.graphics.enable = true;
2025-03-24 12:11:44 +01:00
2025-04-07 12:52:05 +02:00
system.stateVersion = "25.11"; # Did you read the comment?
2025-03-24 12:11:44 +01:00
2025-09-05 22:30:30 +02:00
environment.systemPackages = [
pkgs.onlyoffice-bin
];
2025-06-24 12:50:29 +02:00
2025-03-24 12:11:44 +01:00
}