Adds pegasi config.

This commit is contained in:
Bailey 2024-02-24 20:09:51 -05:00
parent c373cd13e3
commit 8e7d7cd87b
3 changed files with 69 additions and 0 deletions

View file

@ -0,0 +1,23 @@
{...}:
{
imports = [
./hardware.nix
];
# Localization
time.timeZone = "Etc/UTC";
# Enable the OpenSSH daemon.
services.openssh = {
enable = true;
settings = {
PermitEmptyPasswords = false;
};
};
programs.mosh.enable = true;
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "23.11"; # Did you read the comment?
}

View file

@ -0,0 +1,5 @@
{ ... }:
{
disko.devices = {
};
}

View file

@ -0,0 +1,41 @@
{
config,
pkgs,
modulesPath,
...
}:
{
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
./disk-config.nix
];
# Bootloader config
boot.initrd.availableKernelModules = [
"ehci_pci" "ahci" "sd_mod" "sr_mod"
"isci" "usb_storage" "usbhid"
];
boot.initrd.kernelModules = [ "dm-snapshot" ];
boot.kernelModules = [ "kvm-intel" ];
boot.kernelPackages = pkgs.zfs.latestCompatibleLinuxPackages;
boot.loader.grub = {
enable = true;
device = config.disko.devices.disk.boot.device;
configurationLimit = 5;
};
# ZFS Config
boot.zfs.forceImportRoot = false;
boot.zfs.allowHibernation = true;
services.zfs.autoScrub.enable = true;
# Networking config
networking.hostId = "0bdd5f68";
networking.useDHCP = true;
# Hardware config
nixpkgs.hostPlatform = "x86_64-linux";
hardware.cpu.intel.updateMicrocode = true;
}