nix-config/hosts/m920q/default.nix

68 lines
1.5 KiB
Nix
Raw Permalink 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-04-09 00:02:08 +02:00
{ config, pkgs, lib, ... }:
2025-03-24 12:11:44 +01:00
{
imports =
[
2025-04-03 12:50:08 +02:00
../../modules/system.nix
2025-04-04 09:45:57 +02:00
../../modules/nix-settings.nix
2025-04-03 12:50:08 +02:00
../../modules/vpn.nix
../../modules/fonts.nix
../../modules/firewall.nix
../../modules/localisation.nix
../../modules/openssh.nix
../../modules/pipewire.nix
../../modules/podman.nix
../../modules/services.nix
../../modules/regreet/regreet.nix
../../modules/plymouth.nix
../../modules/file_managers/spacefm.nix
2025-04-07 23:13:13 +02:00
../../modules/python.nix
2025-04-07 23:15:28 +02:00
../../modules/appimage.nix
2025-04-07 23:45:34 +02:00
../../modules/qemu.nix
2025-04-08 00:35:46 +02:00
../../modules/geary.nix
2025-04-03 12:50:08 +02:00
# 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 = {
hostName = "nix-desktop";
networkmanager.enable = true;
2025-04-09 00:02:08 +02:00
#useDHCP = lib.mkForce true;
2025-04-08 13:18:34 +02:00
#dhcpcd.enable = true;
2025-04-09 00:02:08 +02:00
interfaces = {
2025-04-07 23:40:03 +02:00
eno1.ipv4.addresses = [{
address = "192.168.2.40";
prefixLength = 24;
}];
2025-04-09 00:02:08 +02:00
};
2025-03-24 12:11:44 +01:00
2025-04-09 00:02:08 +02:00
defaultGateway = {
2025-04-07 23:40:03 +02:00
address = "192.168.2.1";
2025-04-08 00:35:46 +02:00
interface = "eno1";
2025-04-07 23:40:03 +02:00
};
2025-03-24 12:11:44 +01:00
2025-04-07 23:40:03 +02:00
nameservers = [
"192.168.2.50"
"1.1.1.1"
"8.8.8.8"
2025-04-09 00:02:08 +02:00
];
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
}