liku dead, mini alive

This commit is contained in:
Christoph Cullmann 2023-02-15 21:19:56 +01:00
parent bc1a776ebf
commit 365e05bda1
2 changed files with 7 additions and 13 deletions

20
mini/configuration.nix Normal file
View file

@ -0,0 +1,20 @@
# 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).
{ config, pkgs, ... }:
{
imports =
[
# Include the results of the hardware scan.
./hardware-configuration.nix
# Shared config of all machines
/home/cullmann/install/nixos/common.nix
];
# host name & id
networking.hostName = "mini";
networking.hostId = "db461356";
}

View file

@ -0,0 +1,30 @@
# 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 + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/4FD5-6BF5";
fsType = "vfat";
};
swapDevices = [ ];
# Enables DHCP on the right ethernet interface.
networking.interfaces.eno1.useDHCP = true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
# high-resolution display
hardware.video.hidpi.enable = lib.mkDefault true;
}