My NixOS flake.
  • Nix 40.8%
  • TypeScript 31.9%
  • Lua 10.1%
  • Go 9.7%
  • Shell 5.6%
  • Other 1.9%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Haseeb Majid 0671fc6e7a
Some checks failed
Lint / fmt (pull_request) Successful in 13s
Lint / lint (pull_request) Successful in 13s
Lint / fmt (push) Successful in 17s
Lint / lint (push) Failing after 15s
chore(ci): drop GitLab OpenTofu component
2026-11-29 23:15:14 +00:00
.forgejo/workflows chore(deps): update https://data.forgejo.org/actions/checkout action to v7 2026-11-29 23:13:21 +00:00
docs/images feat(pig): add pig with go hello, session-name and claude-code extensions 2026-11-18 18:47:49 +00:00
hosts fix(nixflix): disable jellyfin-libraries only on rpi 2026-11-29 00:13:30 +00:00
infra/opentofu ci: add Forgejo Actions workflows 2026-11-28 22:30:53 +00:00
iso/graphical refactor(hosts): update host wiring and service configuration 2026-08-29 16:54:08 +01:00
lib refactor(packages): load fonts and wallpapers from nixicle-assets 2026-11-18 18:47:50 +00:00
modules fix(pig): update extensions vendorHash 2026-11-29 22:51:03 +00:00
packages refactor(packages): load fonts and wallpapers from nixicle-assets 2026-11-18 18:47:50 +00:00
scripts ci: add Forgejo Actions workflows 2026-11-28 22:30:53 +00:00
tasks ci: add Forgejo Actions workflows 2026-11-28 22:30:53 +00:00
topology chore(topology): data-driven nodes and regenerated images 2026-09-25 22:36:23 +01:00
.envrc feat: generate ISO from Flake 2023-09-14 22:15:36 +00:00
.gitignore refactor(opentofu): split config by concern and fix state drift 2026-11-18 18:47:50 +00:00
.gitlab-ci.yml chore(ci): drop GitLab OpenTofu component 2026-11-29 23:15:14 +00:00
.sops.yaml feat(framework): move to intel core ultra series 3 laptop 2026-11-18 18:47:49 +00:00
AGENTS.md ci: add Forgejo Actions workflows 2026-11-28 22:30:53 +00:00
flake.lock chore(flake): fetch own repos from Forgejo instead of GitLab 2026-11-29 16:52:56 +00:00
flake.nix chore(flake): fetch own repos from Forgejo instead of GitLab 2026-11-29 16:52:56 +00:00
LICENSE.md feat: Initial Commit 2022-07-25 20:19:19 +01:00
README.md chore(tooling): refresh ci tasks and flake inputs 2026-08-29 16:54:08 +01:00
renovate.json5 chore(tuios): track releases with renovate 2026-11-06 22:54:00 +00:00
Taskfile.yml feat(config): add a build-only NixOS task 2026-10-29 22:24:04 +00:00


Nixicle

⚠️ This config repo is constantly changing, Let me know if you see something that can be improved or done better 😄 .

💽 Usage

Install

To install NixOS on any of my devices I now use nixos-anywhere. You will need to be able to SSH to the target machine from where this command will be run. Load nix installer ISO if no OS on the device. You need to copy ssh keys onto the target machine mkdir -p ~/.ssh && curl https://github.com/hmajid2301.keys > ~/.ssh/authorized_keys in my case I can copy them from GitHub.

git clone git@github.com:hmajid2301/nixicle.git ~/nixicle/
cd nixcile

nix develop

nixos-anywhere --flake '.#desktop' nixos@192.168.1.8 # Replace with your IP

After building it you can copy the ISO from the result folder to your USB.

Building

To build my config for a specific host you can do something like:

git clone git@github.com:hmajid2301/nixicle.git ~/nixicle/
cd nixicle

nix develop

# To build system configuration (uses hostname to build flake)
nh os switch

# To build user configuration (uses hostname and username to build flake)
nh home switch

# Build ISO in result/ folder
nix build .#iso-graphical

# Deploy my to remote server i.e. Home Lab (using SSH)
deploy .#vps --hostname vps --ssh-user nixos --skip-checks

# Build Home Lab diagram using nix-topology
nix build .#topology.config.output

🚀 Features

Some features of my config:

  • Structured to allow multiple NixOS configurations, including desktop, laptop and homelab
  • Custom live ISO for installing NixOS
  • Styling with stylix
  • Opt-in persistance through impermanence + blank snapshot
  • Encrypted BTRFS partition
  • Secure Boot with lanzaboote
  • sops-nix for secrets management
  • Different environments like niri and gnome
  • Custom Neovim setup declaratively using nix-wrapper-modules
  • Homelab all configured in nix.

🖼️ Showcase

Desktop

terminal notifications wallpaper monkeytype

Neovim

Telescope Editor Go Code CMP

Appendix

Inspired By