This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
pi-homeserver [2022/11/17 20:27] – created 10.100.0.1 | pi-homeserver [2022/11/21 01:30] – [NixOS crypt setup] 10.100.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Hardware ====== | ====== Hardware ====== | ||
- | * Mainboard: Odroid-H2 [[https:// | + | * Mainboard: Odroid-H2 |
- | CPU compare with Odroid-M1 [[https:// | + | |
- | *Memory: | + | * Memory: |
- | *8GB eMMC 5.0// | + | * 8GB eMMC 5.0 (read rate ~130MB/s)\\ |
- | *M.2 SATA 2280 128GB Emtec SSD (3D Nand bis 520MB/s) [[https://www.emtec-international.com/en/ssd/internal/x250-m2-sata-ssd-power-plus]] | + | * // |
+ | * //some HDDs (1x 12TB will be connected)// | ||
====== Powerconsumption ====== | ====== Powerconsumption ====== | ||
- | BIOS: (Odroid H2, SSD X250 128GB, 8GB Memory DDR4 2400 CL14 " | + | BIOS: (Odroid H2, SSD X250 128GB, 8GB Memory DDR4 2400 CL14 " |
- | idle: (Odroid H2, SSD X250 128GB, 8GB Memory DDR4 2400 CL14 " | + | 7,5W\\ |
+ | Idle: (Odroid H2, SSD X250 128GB, 8GB Memory DDR4 2400 CL14 " | ||
+ | ~5W | ||
===== BIOS configuration ===== | ===== BIOS configuration ===== | ||
For booting fom emmc: XHCI enabled | For booting fom emmc: XHCI enabled | ||
+ | ===== NixOS crypt setup ===== | ||
+ | Encrypted NixOS via standard installer by Nov.2022 (v22.05) but changed ext4 root filesystem to btrfs after installation.\\ | ||
+ | Before reboot you can unmount the new installation-system partitions. Then you can simply convert the ext4-filesystem with | ||
+ | <code bash> | ||
+ | btrfs-convert / | ||
+ | </ | ||
+ | With **blkid** you can get the new UUID for the converted logical volume and copy in hardware-configuration.nix file: | ||
+ | ==== hardware-configuration.nix ==== | ||
+ | <code bash> | ||
+ | fileSystems."/" | ||
+ | { device = "/ | ||
+ | fsType = " | ||
+ | options = [ " | ||
+ | neededForBoot = true; | ||
+ | }; | ||
+ | boot.initrd.luks.devices." | ||
+ | </ | ||
+ | changed also | ||
+ | ==== configuration.nix ==== | ||
+ | added here also (maybe not needed?) | ||
+ | <code /bash> | ||
+ | boot.initrd.supportedFilesystems = [" | ||
+ | </ | ||
+ | After changing the config, you have to run **nixos-rebuild boot** and **nixos-rebuild switch** |