converted mc6 to btrfs

This commit is contained in:
mc-fucker 2022-02-24 21:04:49 +01:00
parent 528cf24849
commit 05f16ba203
2 changed files with 28 additions and 10 deletions

View file

@ -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:

View file

@ -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;
}