⚙️ My NixOS config. No darwin
  • Nix 99.5%
  • Just 0.5%
Find a file
2026-05-24 08:55:11 +05:00
.github fix(ci): enable pipe operations 2026-05-12 20:34:25 +05:00
.vscode asss 2025-07-06 11:13:30 +05:00
homes/x86_64-linux/bahrom refactor: format with nixfmt 2026-02-26 17:14:43 +05:00
modules chore(zed): exclude trash files for rust-analyzer 2026-05-23 22:54:32 +05:00
overlays add: bleur overlay 2026-05-07 15:32:41 +05:00
patches chore: some things about patch 2025-11-01 15:41:53 +05:00
shells/default chore: added just 2026-04-23 13:52:06 +05:00
systems/x86_64-linux chore: update l;ock 2026-05-08 15:04:40 +05:00
.envrc asss 2025-07-06 11:13:30 +05:00
.gitignore chore: remove vscode settings from gitignore 2026-05-18 22:03:12 +05:00
flake.lock chore: update lock 2026-05-24 08:47:46 +05:00
flake.nix chore(pkgs): google earth pro 7.3.7.1155 2026-05-24 08:55:11 +05:00
justfile chore: added just 2026-04-23 13:52:22 +05:00
README.md chore: remove python related in README.md 2026-03-08 12:21:03 +05:00

Welcome Image

NixOS

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

nix build .#nixosConfigurations.bahrom04.config.system.build.toplevel --show-trace

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 disko ./hosts/?/disk-configuration.nix

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

nix-darwin

sudo darwin-rebuild switch --flake .#air
--option tarball-ttl 0 # no caching

nix build .#darwinConfigurations.bahrom04.config.system.build.toplevel --show-trace

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