Template
1
4
Fork
You've already forked nixOS
0
My OS
  • Nix 52.5%
  • Shell 25%
  • TypeScript 10.7%
  • Nu 6.3%
  • SCSS 2.3%
  • Other 3.2%
2026年07月06日 21:33:28 +03:00
assets/wpps remove kvantum assets 2025年05月08日 12:19:54 +03:00
hm doing big changes, nvf works, ppd -> tlp, bloat removal, system.etc.overlay 2026年07月06日 21:33:28 +03:00
hosts/host doing big changes, nvf works, ppd -> tlp, bloat removal, system.etc.overlay 2026年07月06日 21:33:28 +03:00
modules Trying to fix the internet after one year 2026年07月06日 15:51:15 +00:00
overlays overlays: return of xdg-portal override; remove nur 2025年05月11日 00:21:03 +03:00
system doing big changes, nvf works, ppd -> tlp, bloat removal, system.etc.overlay 2026年07月06日 21:33:28 +03:00
.gitignore remove @girs stuff; even add gitignore 2025年05月11日 00:24:28 +03:00
checks.nix many changes and bump 2025年06月28日 18:30:45 +03:00
flake.lock doing big changes, nvf works, ppd -> tlp, bloat removal, system.etc.overlay 2026年07月06日 21:33:28 +03:00
flake.nix doing big changes, nvf works, ppd -> tlp, bloat removal, system.etc.overlay 2026年07月06日 21:33:28 +03:00
home.nix cleanup: remove modules 2025年03月02日 00:24:06 +03:00
README.md update installation instruction 2024年07月31日 15:27:27 +03:00
test-fs.md bcachefs performance is abysmal, even worse than last time 2024年07月31日 14:32:26 +03:00

Fresh Installation

For a fresh installation, where Disko will handle partitioning and setting up the disk, use the following syntax:

Disko Install

sudo -i
git clone https://codeberg.org/lanovets/nixos
nix run 'github:nix-community/disko#disko-install' -- --flake 'nixos/#host' --disk nix /dev/disk/by-id/nvme-Colorful_CN600_2TB_2022121300206

Traditional Partitioning

sudo -i
fish
parted /dev/nvme1n1
mklabel gpt
mkpart primary 0% 1024mb
mkpart primary 1024mb 100%
set 1 esp on
mkfs.fat -F 32 /dev/nvme1n1p1
mkfs.btrfs /dev/nvme1n1p2
mkdir -p /mnt
mount /dev/nvme1n1p2 /mnt
btrfs subvolume create /mnt/root
btrfs subvolume create /mnt/home
btrfs subvolume create /mnt/nix
umount /mnt
mount -o subvol=root,compress-force=zstd,noatime /dev/nvme1n1p2 /mnt
mkdir /mnt/home
mount -o subvol=home,compress-force=zstd,noatime /dev/nvme1n1p2 /mnt/home
mkdir /mnt/nix
mount -o subvol=nix,compress-force=zstd,noatime /dev/nvme1n1p2 /mnt/nix
mkdir /mnt/efi
mount -o umask=077 /dev/nvme1n1p1 /mnt/efi
nixos-generate-config --root /mnt

Test of ashift

 , fio --name=ashifttest --rw=write --bs=64K --fsync=1 --size=1G \
 --numjobs=1 --iodepth=1 \
 | grep -v clat | egrep "(lat \(nsec)|bw="

Test of sector size

sudo , nvme id-ns -H /dev/nvme#n# | grep "Relative Performance"