From ab695023e66fdcd26f52c99555ada0d529702654 Mon Sep 17 00:00:00 2001 From: mc-fucker Date: Mon, 10 Mar 2025 09:15:51 +0100 Subject: [PATCH] added mc2 --- systems/mc2/configuration.nix | 15 +++++++++ systems/mc2/hardware-configuration.nix | 45 ++++++++++++++++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 systems/mc2/configuration.nix create mode 100644 systems/mc2/hardware-configuration.nix diff --git a/systems/mc2/configuration.nix b/systems/mc2/configuration.nix new file mode 100644 index 0000000..1ed83d4 --- /dev/null +++ b/systems/mc2/configuration.nix @@ -0,0 +1,15 @@ +{ config, lib, pkgs, ... }: + +{ + imports = + [ + ./hardware-configuration.nix + ./modules/generic.nix + ]; + + system.copySystemConfiguration = true; + system.stateVersion = "25.05"; + +} + +# vim: set et ts=2 sw=2 ai: diff --git a/systems/mc2/hardware-configuration.nix b/systems/mc2/hardware-configuration.nix new file mode 100644 index 0000000..2a91fd4 --- /dev/null +++ b/systems/mc2/hardware-configuration.nix @@ -0,0 +1,45 @@ +# Do not modify this file! It was generated by ‘nixos-generate-config’ +# and may be overwritten by future invocations. Please make changes +# to /etc/nixos/configuration.nix instead. +{ config, lib, pkgs, modulesPath, ... }: + +{ + imports = + [ (modulesPath + "/profiles/qemu-guest.nix") + ]; + + boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "virtio_pci" "virtio_blk" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-amd" ]; + boot.extraModulePackages = [ ]; + + boot.loader.grub.enable = true; + boot.loader.grub.device = "/dev/vdb"; + + + fileSystems."/" = + { device = "/dev/disk/by-label/nixos"; + fsType = "btrfs"; + options = [ "compress-force=zstd:3" ]; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-label/boot"; + fsType = "ext4"; + }; + + #swapDevices = [ ]; + + # Enables DHCP on each ethernet and wireless interface. In case of scripted networking + # (the default) this is the recommended approach. When using systemd-networkd it's + # still possible to use this option, but it's recommended to use it in conjunction + # with explicit per-interface declarations with `networking.interfaces..useDHCP`. + networking.useDHCP = lib.mkDefault true; + # networking.interfaces.ens3.useDHCP = lib.mkDefault true; + + networking.hostName = "mc2"; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; +} + +# vim: set et ts=2 sw=2 ai: