Infini-SD: finalize configuration

This commit is contained in:
Infinidoge 2024-02-27 03:39:25 -05:00
parent 9d87b7d540
commit 613e1c8575
No known key found for this signature in database
3 changed files with 7 additions and 5 deletions

View file

@ -1,4 +1,4 @@
{ lib, ... }: { { lib, config, ... }: {
imports = [ imports = [
./hardware-configuration.nix ./hardware-configuration.nix
./filesystems.nix ./filesystems.nix
@ -6,6 +6,8 @@
networking.hostId = "3275c7d3"; networking.hostId = "3275c7d3";
boot.kernelPackages = lib.mkForce config.boot.zfs.package.latestCompatibleLinuxPackages;
modules = { modules = {
boot.grub.enable = true; boot.grub.enable = true;
hardware = { hardware = {

View file

@ -2,8 +2,8 @@
let let
uuid = uuid: "/dev/disk/by-uuid/${uuid}"; uuid = uuid: "/dev/disk/by-uuid/${uuid}";
main = uuid "ae3f3d98-1d87-47b4-a4ed-d69a896eee69"; main = uuid "527062b3-7a48-4456-8527-30887c6e9f52";
commonOptions = [ "autodefrag" "noatime" "compress-force=zstd:4" ]; commonOptions = [ "autodefrag" "noatime" "compress-force=zstd:1" ];
mkMain' = options: { mkMain' = options: {
device = main; device = main;
@ -28,7 +28,7 @@ in
"/boot" = mkMain [ "subvol=boot" ]; "/boot" = mkMain [ "subvol=boot" ];
"/boot/efi" = { "/boot/efi" = {
device = uuid "D7DB-2291"; device = uuid "E41C-506A";
fsType = "vfat"; fsType = "vfat";
neededForBoot = true; neededForBoot = true;
}; };

View file

@ -14,5 +14,5 @@
boot.zfs.forceImportRoot = false; boot.zfs.forceImportRoot = false;
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
info.model = "Portable Installation"; info.model = "SD Card Installation";
} }