added mc7

This commit is contained in:
mc-fucker 2022-03-20 23:13:28 +01:00
parent 1e1c466130
commit ea7c223797
2 changed files with 50 additions and 0 deletions

View file

@ -0,0 +1,11 @@
{ config, pkgs, ... }:
{
imports =
[
./hardware-configuration.nix
./modules/generic.nix
./modules/borg.nix
];
system.stateVersion = "22.05";
}

View file

@ -0,0 +1,39 @@
# 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 = [ ];
boot.initrd.availableKernelModules = [ "ata_piix" "vmw_pvscsi" "floppy" "sd_mod" "sr_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
boot.loader.grub.enable = true;
boot.loader.grub.version = 2;
boot.loader.grub.device = "/dev/sda";
fileSystems."/" =
{ device = "/dev/disk/by-uuid/126b990a-4493-4dfd-a2f8-5392454e1760";
fsType = "btrfs";
options = [ "compress-force=zstd" ];
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/46a8cf4d-679a-44bc-a3b1-886331c133d8";
fsType = "ext4";
};
swapDevices = [ ];
# The global useDHCP flag is deprecated, therefore explicitly set to false here.
# Per-interface useDHCP will be mandatory in the future, so this generated config
# replicates the default behaviour.
networking.useDHCP = lib.mkDefault false;
networking.interfaces.ens192.useDHCP = lib.mkDefault true;
networking.hostName = "mc7";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}