⚙️ My NixOS config. No darwin
  • Nix 99.6%
  • Just 0.4%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-10-15 15:46:58 +05:00
.github disable ci check until lib rewrite 2026-08-29 12:56:42 +05:00
.vscode asss 2025-07-06 11:13:30 +05:00
checks/matax-disko-ext4 lets stcik with by-id, wwn not for all disks 2026-08-21 17:25:50 +05:00
homes/x86_64-linux/bahrom refactor: format with nixfmt 2026-02-26 17:14:43 +05:00
modules add iotop 2026-10-15 15:46:58 +05:00
overlays remove module-maanger for now 2026-08-30 11:18:39 +05:00
patches chore: some things about patch 2025-11-01 15:41:53 +05:00
shells/default refactor: remove duplicate code that already comes from xinux/modules 2026-05-27 13:58:46 +05:00
systems/x86_64-linux tmp.useTmpfs = true; 2026-10-15 13:26:36 +05:00
.envrc asss 2025-07-06 11:13:30 +05:00
.gitignore add all result 2026-06-14 01:26:25 +05:00
flake.lock lock update 2026-10-10 00:02:34 +05:00
flake.nix update lock 2026-10-04 19:36:22 +05:00
justfile fix: just rebuild 2026-05-28 11:44:22 +05:00
README.md doc update disko 2026-07-26 00:02:17 +05:00

Welcome Image

NixOS

sudo nixos-rebuild switch --flake .#nixos #use hostname here

nix build .#nixosConfigurations.bahrom04.config.system.build.toplevel --show-trace --option tarball-ttl 0 # no caching

Install from live iso. Disko

# Clone the repository
git clone https://github.com/bahrom04/nix-config.git

# Partition disks regarding to configuration
# Replace ? with available hostname
# Please use it inside bootlable usb to prevent disco used disk being busy
sudo nix --experimental-features "nix-command flakes" run github:nix-community/disko/latest -- --mode destroy,format,mount ./hosts/?/disk-configuration.nix

# For incremental/imperative change of disk (if you desided to remove/add swap. DO NOT TRUST ME!)
sudo nix --experimental-features "nix-command flakes" run github:nix-community/disko/latest -- --mode format ./hosts/?/disk-configuration.nix

# Then install using flake configurations on top of partitioned disks
# Replace ? with available hostname
sudo nixos-install --flake .#?

Code formatter and checkers & delete cache

nix fmt .
nix flake check --all-systems --show-trace

nix repl :lf .

# geting narHash
nix flake prefetch "github:xinux-org/modules"
# getting rev
git rev-parse main

## delete old generations
sudo nix-collect-garbage -d

Edit secrets

nix develop
EDITOR=vim sops ./secrets/secrets.yaml

Welcome Image