This page generated with inv docs.all-pages
- WARNING: 2024-01-15 Format the ZFS with 23.05 LiveCD version
- This notebook contain a Intel and NVIDIA Graphic cardi, for use it, you must use the Bumblebee utils (show on intel a contain of the NVIDIA GPU
See the Dell XPS 15-9530
- BIOS
- Disable Secure Boot (but keep UEFI Boot).
- Disable Intel hardware RAID and use AHCI instead.
- Graphics
Port | Proto | Service | Product | Extra info |
---|---|---|---|---|
22 | tcp | ssh | OpenSSH | protocol 2.0 |
RAM : 33 Go Go DISK : 953.87 GiB Go KERNEL : 6.1.52
### Topologie
![hardware topology](https://raw.githubusercontent.com/badele/nix-homelab/master/docs/hosts/b4d14/topologie.svg)
### Hardwares
System: Kernel: 6.1.52 x86_64 bits: 64 compiler: gcc v: 12.3.0
parameters: initrd=efinixos~y9ixzsdy84czpp52lx8wqsw6hdb6hk32-initrd-linux-6.1.52-initrd.efi
init=/nix/store/vsp1r6j8kl3gavjkcrllxva7v55d0znx-nixos-system-b4d14-23.11.20230911.3a2786e/init
acpi_rev_override i915.enable_fbc=1 i915.enable_psr=2 nohibernate loglevel=4
Console: N/A DM: LightDM 1.32.0 Distro: NixOS 23.11 (Tapir)
Machine: Type: Laptop System: Dell product: XPS 15 9530 v: N/A serial: Chassis:
type: 10 serial:
Mobo: Dell model: 01WV13 v: A00 serial: UEFI: Dell v: 1.9.0 date: 11/13/2023
Battery: ID-1: BAT0 charge: 82.7 Wh (100.0%) condition: 82.7/84.3 Wh (98.2%) volts: 12.9
min: 11.4 model: BYD DELL M59JH3B type: Li-poly serial: status: Not charging
cycles: 2
Memory: RAM: total: 31.04 GiB used: 3.03 GiB (9.7%)
Array-1: capacity: 64 GiB slots: 2 EC: None max-module-size: 32 GiB note: est.
Device-1: DIMM A size: 16 GiB speed: 4800 MT/s type: DDR5 detail: synchronous
bus-width: 64 bits total: 64 bits manufacturer: 80AD000080AD part-no: HMCG78AEBSA095N
serial:
Device-2: DIMM B size: 16 GiB speed: 4800 MT/s type: DDR5 detail: synchronous
bus-width: 64 bits total: 64 bits manufacturer: 80AD000080AD part-no: HMCG78AEBSA095N
serial:
PCI Slots: Slot: 0 type: x16 PCI Express x16 PCI-Express 0 status: In Use length: Long
Slot: 1 type: x1 PCI Express PCI-Express 1 status: Available length: Long
Slot: 2 type: x1 PCI Express PCI-Express 2 status: Available length: Long
Slot: 3 type: x1 PCI Express PCI-Express 3 status: Available length: Long
Slot: 4 type: x1 PCI Express PCI-Express 4 status: Available length: Long
Slot: 5 type: x1 PCI Express PCI-Express 5 status: Available length: Long
Slot: 6 type: x1 PCI Express PCI-Express 6 status: Available length: Long
CPU: Info: 10-Core model: 13th Gen Intel Core i7-13700H socket: U3E1 bits: 64 type: MT MCP
arch: N/A family: 6 model-id: BA (186) stepping: 2 microcode: 4119 cache: L1: 1.2 MiB
L2: 24 MiB L3: 48 MiB
flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 116736
Speed: 2900 MHz min/max: 400/4800 MHz base/boost: 4653/5000 volts: 1.2 V
ext-clock: 100 MHz Core speeds (MHz): 1: 2900 2: 2900 3: 648 4: 2900 5: 2900 6: 2900
7: 2900 8: 2900 9: 2900 10: 2900 11: 2900 12: 2900 13: 2900 14: 2900 15: 2900 16: 2900
17: 1563 18: 2900 19: 2900 20: 2900
Vulnerabilities: Type: gather_data_sampling status: Not affected
Type: itlb_multihit status: Not affected
Type: l1tf status: Not affected
Type: mds status: Not affected
Type: meltdown status: Not affected
Type: mmio_stale_data status: Not affected
Type: retbleed status: Not affected
Type: spec_rstack_overflow status: Not affected
Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl
Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization
Type: spectre_v2
mitigation: Enhanced IBRS, IBPB: conditional, RSB filling, PBRSB-eIBRS: SW sequence
Type: srbds status: Not affected
Type: tsx_async_abort status: Not affected
Graphics: Device-1: Intel Raptor Lake-P [Iris Xe Graphics] vendor: Dell driver: i915 v: kernel
bus-ID: 00:02.0 chip-ID: 8086:a7a0 class-ID: 0300
Device-2: Microdia Integrated_Webcam_HD type: USB driver: uvcvideo bus-ID: 1-6:3
chip-ID: 0c45:6748 class-ID: fe01 serial:
Display: server: X.org 1.21.1.8 driver: loaded: i915 note: n/a (using device driver)
tty: N/A
Message: Advanced graphics data unavailable in console for root.
Audio: Device-1: Intel vendor: Dell driver: sof-audio-pci-intel-tgl
alternate: snd_hda_intel,snd_sof_pci_intel_tgl bus-ID: 00:1f.3 chip-ID: 8086:51ca
class-ID: 0401
Sound Server-1: ALSA v: k6.1.52 running: yes
Sound Server-2: PulseAudio v: 16.1 running: yes
Network: Device-1: Intel driver: iwlwifi v: kernel port: 4000 bus-ID: 00:14.3 chip-ID: 8086:51f1
class-ID: 0280
IF: wlp0s20f3 state: up mac:
IP v4: type: dynamic noprefixroute scope: global broadcast:
IP v6: type: noprefixroute scope: link
IF-ID-1: docker0 state: down mac:
IP v4: scope: global broadcast:
WAN IP:
Bluetooth: Device-1: Intel type: USB driver: btusb v: 0.8 bus-ID: 1-10:4 chip-ID: 8087:0033
class-ID: e001
Report: hciconfig ID: hci0 rfk-id: 1 state: up address:
Info: acl-mtu: 1021:4 sco-mtu: 96:6 link-policy: rswitch sniff
link-mode: peripheral accept service-classes: rendering, capturing, audio, telephony
RAID: Device-1: zroot type: zfs status: ONLINE level: linear size: 944 GiB free: 922 GiB
allocated: 22.2 GiB
Components: Online: N/A
Drives: Local Storage: total: raw: 953.87 GiB usable: 1.85 TiB used: 22.42 GiB (1.2%)
ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: SK Hynix model: PC801 NVMe 1TB
size: 953.87 GiB block-size: physical: 512 B logical: 512 B speed: 63.2 Gb/s lanes: 4
rotation: SSD serial: rev: 51003141 temp: 36 ° (309 K) C scheme: GPT
SMART: yes health: PASSED on: 50 hrs cycles: 67 read-units: 1,272,621 [651 GB]
written-units: 1,541,324 [789 GB]
Partition: ID-1: / raw-size: N/A size: 893.54 GiB used: 1.02 GiB (0.1%) fs: zfs
logical: zroot/private/root
ID-2: /boot raw-size: 1024 MiB size: 1022 MiB (99.80%) used: 199.6 MiB (19.5%) fs: vfat
block-size: 512 B dev: /dev/nvme0n1p1 maj-min: 259:1
Swap: Kernel: swappiness: 60 (default) cache-pressure: 100 (default)
ID-1: swap-1 type: partition size: 8 GiB used: 0 KiB (0.0%) priority: -2
dev: /dev/nvme0n1p2 maj-min: 259:2
Sensors: System Temperatures: cpu: 33.0 C mobo: N/A
Fan Speeds (RPM): N/A
Info: Processes: 380 Uptime: 1h 27m wakeups: 509 Init: systemd v: 253
target: graphical.target tool: systemctl Compilers: gcc: 12.3.0 Packages: 892
nix-default: 46 nix-sys: 800 lib: 177 nix-usr: 46 lib: 8 Client: Sudo v: 1.9.14p3
inxi: 3.3.04
[comment]: (<<HOSTINFOS)
## Install from scratch
Boot from NixOS live cd
**============================ 2024-01-15 WARNING ===========================**
THIS CONFIGURATION ONLY WORK WITH 23.05 LIVECD
BECAUSE THE ZFS NOT FULLY SUPPORTED !! WE OBTAIN THIS ERROR MESSAGE
```text
cannot import 'zroot': unsupported version or feature
This pool uses the following feature(s) not supported by this system:
com.klarasystems:vdev_zaps_v2
===========================================================================
##########################################################
# From NixOS LiveCD installation
##########################################################
# Change keymap & root password
sudo -i
loadkeys fr
passwd
# [Optional] WI-FI
systemctl start wpa_supplicant
wpa_cli
add_network
set_network 0 ssid "ssid_name"
set_network 0 psk "password"
enable_network 0
# Get LiveCD nixos installation IP
ip a
##########################################################
# From other computer, enter to deploy environment
##########################################################
# NOTE: Use <SPACE> before command for not storing command in bash history (for secure your passwords)
nix develop
export TARGETIP=192.168.254.124
export TARGETNAME=b4d14
export ZFSPASSWORD="<zfspassword>"
ssh-copy-id root@${TARGETIP}
# Disk initialisation (some examples)
inv init.disk-format --hosts ${TARGETIP} --disk /dev/nvme0n1 --mode EFI --password "${ZFSPASSWORD}"
or
inv init.disk-mount --hosts ${TARGETIP} --password "${ZFSPASSWORD}"
inv init.ssh-init-host-key --hosts ${TARGETIP} --hostnames ${TARGETNAME}
inv init.nixos-generate-config --hosts ${TARGETIP} --hostnames ${TARGETNAME}
# Add hosts/${TARGETNAME}/ssh-to-age.txt in &hosts section in the .sops.yaml file
# Edit & Re-encrypt all keys for the previous host
sops ./hosts/${TARGETNAME}/secrets.yml
sops updatekeys ./hosts/${TARGETNAME}/secrets.yml
# Add hostname section in homelab.json
# Add host in flake.nix in nixosConfigurations section
# Add users in flake.nix in homeConfigurations section
# Configure hosts/${TARGETNAME}/default.nix and hosts/${TARGETNAME}/hardware-configuration.nix
# NixOS installation
inv init.nixos-install --hosts ${TARGETIP} --flakeattr ${TARGETNAME}
# Configuration
reboot
nmtui (wireless configuration
inv nixos.deploy --hostnames ${TARGETNAME}
inv home.deploy --username root --hostnames ${TARGETNAME}
inv home.deploy --username badele --hostnames ${TARGETNAME}