diff --git a/systems/mc6/configuration.nix b/systems/mc6/configuration.nix index f4d5497..84e9f5d 100644 --- a/systems/mc6/configuration.nix +++ b/systems/mc6/configuration.nix @@ -2,15 +2,10 @@ imports = [ ./hardware-configuration.nix ./modules/generic.nix - - ]; - #boot.cleanTmpDir = true; - #zramSwap.enable = true; networking.hostName = "mc6"; services.openssh.enable = true; - #users.users.root.openssh.authorizedKeys.keys = [ - # "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFyGaBZIZYjiBhOFD2drvG316B9NUVSbMpTIhOCQur8P" - #]; } + +# vim: set et ts=2 sw=2 ai: diff --git a/systems/mc6/hardware-configuration.nix b/systems/mc6/hardware-configuration.nix index 7ac1c80..5ed20e3 100644 --- a/systems/mc6/hardware-configuration.nix +++ b/systems/mc6/hardware-configuration.nix @@ -1,7 +1,30 @@ -{ modulesPath, ... }: +# 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") ]; + imports = + [ (modulesPath + "/profiles/qemu-guest.nix") + ]; + + boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "virtio_pci" "virtio_scsi" "sd_mod" ]; + boot.kernelModules = [ "kvm-intel" ]; + boot.extraModulePackages = [ ]; boot.loader.grub.device = "/dev/sda"; boot.initrd.kernelModules = [ "nvme" ]; - fileSystems."/" = { device = "/dev/sda1"; fsType = "ext4"; }; + + fileSystems."/" = + { device = "/dev/disk/by-label/nixos"; + fsType = "btrfs"; + options = [ "compress-force=zstd" ]; + }; + + swapDevices = [ ]; + + networking.useDHCP = lib.mkDefault false; + networking.interfaces.ens3.useDHCP = lib.mkDefault true; + networking.hostName = "mc6"; + + hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; }