Adds pegasi config.
This commit is contained in:
parent
c373cd13e3
commit
8e7d7cd87b
23
systems/x86_64-linux/pegasi/default.nix
Normal file
23
systems/x86_64-linux/pegasi/default.nix
Normal 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?
|
||||
}
|
5
systems/x86_64-linux/pegasi/disk-config.nix
Normal file
5
systems/x86_64-linux/pegasi/disk-config.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
{ ... }:
|
||||
{
|
||||
disko.devices = {
|
||||
};
|
||||
}
|
41
systems/x86_64-linux/pegasi/hardware.nix
Normal file
41
systems/x86_64-linux/pegasi/hardware.nix
Normal 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;
|
||||
}
|
Loading…
Reference in a new issue