{"id":49458081,"url":"https://github.com/spirizeon/nixos-maxxing","last_synced_at":"2026-05-02T10:00:31.495Z","repository":{"id":353954509,"uuid":"1220797576","full_name":"Spirizeon/nixos-maxxing","owner":"Spirizeon","description":"Config using dendritic patterns with security hardening, NVIDIA GPU support, and a customized desktop environment.","archived":false,"fork":false,"pushed_at":"2026-04-26T11:36:47.000Z","size":21,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-29T07:28:28.569Z","etag":null,"topics":["modularization","nixos","nvidia-gpu","security"],"latest_commit_sha":null,"homepage":"","language":"Nix","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Spirizeon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-25T10:49:21.000Z","updated_at":"2026-04-26T11:37:24.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/Spirizeon/nixos-maxxing","commit_stats":null,"previous_names":["spirizeon/nixos-maxxing"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Spirizeon/nixos-maxxing","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Spirizeon%2Fnixos-maxxing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Spirizeon%2Fnixos-maxxing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Spirizeon%2Fnixos-maxxing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Spirizeon%2Fnixos-maxxing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Spirizeon","download_url":"https://codeload.github.com/Spirizeon/nixos-maxxing/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Spirizeon%2Fnixos-maxxing/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32458237,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T22:27:22.272Z","status":"online","status_checked_at":"2026-04-30T02:00:05.929Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["modularization","nixos","nvidia-gpu","security"],"created_at":"2026-04-30T08:00:40.590Z","updated_at":"2026-04-30T08:01:00.115Z","avatar_url":"https://github.com/Spirizeon.png","language":"Nix","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NixOS Flake Configuration\n\n\u003e A modular NixOS system configuration using dendritic flake patterns — because your OS config should grow like a tree, not explode like a spaghetti bowl.\n\n## What's This?\n\nThis is my NixOS configuration, reimagined with **dendritic patterns** — a fancy word for \"tree-like structure.\" Instead of one giant configuration file with everything tangled together, I've broken everything into branches that flow from a single root.\n\nThink of it like organizing your room: instead of throwing everything into one drawer, you use shelves. Each shelf has a purpose. That's what flakes do for your OS config.\n\n\n\u003cimg width=\"4872\" height=\"500px\" alt=\"diagram(2)\" src=\"https://github.com/user-attachments/assets/69203486-69f3-49e1-a3f6-8800ffad8bea\" /\u003e\n\n## The Dendritic Structure\n\n```\nflake.nix          ← The root (trunk)\n├── nixos/         ← Main branches (categories)\n│   ├── boot/      ← Boot stuff\n│   ├── hardware/ ← GPU, bluetooth\n│   ├── networking/ ← Network, locale\n│   ├── desktop/   ← Desktop environment\n│   ├── packages/  ← Software to install\n│   └── users/     ← User accounts\n├── hosts/         ← Machine-specific configs\n│   └── default.nix\n└── lib/           ← Shared utilities\n    └── default.nix\n```\n\n### Why Break It Up?\n\n**1. Find things easily**\n\u003e Old way: \"Where did I put that firewall rule?\" → Search through 500 lines of chaos\n\u003e New way: \"It's in `nixos/networking/default.nix`\" → 5 seconds flat\n\n**2. Reuse across machines**\n\u003e Got a desktop and a laptop? Share the same `packages` branch between both. Just plug in the hardware branch that matches each machine.\n\n**3. Test safely**\n\u003e Want to try a new package? Edit only `nixos/packages/default.nix`. Mess it up? The rest of your system keeps working.\n\n**4. Collaborate**\n\u003e Your friend likes your desktop setup? Send them just the `nixos/desktop/` branch. No need to share your WiFi password or custom packages.\n\n### Why \"Dendritic\"?\n\nIn biology, dendrites are the branches that receive signals in neurons. They're modular, redundant, and efficient. If one branch gets damaged, the cell survives.\n\nThat's exactly what we want:\n- **Modular**: Each branch does one thing\n- **Resilient**: One broken branch doesn't crash the system  \n- **Efficient**: Signals (config) flow cleanly from root to tips\n\nFlakes let us express this in Nix. Each module outputs a `nixosModule` that combines into a whole. The root flake pulls everything together like a trunk connecting branches.\n\n## Quick Start\n\n```bash\n# See what the configuration looks like\nnix flake show\n\n# Check for errors without applying\nnix build .#nixosConfigurations.berzilinux.config.system.build.toplevel --dry-run\n\n# Actually apply (when you're ready)\nsudo nixos-rebuild switch --flake .#berzilinux\n\n# Or test in a chroot first\nsudo nixos-rebuild test --flake .#berzilinux\n```\n\n## For Your Own Machine\n\n### Step 1: Copy the structure\n\n```bash\ngit clone https://github.com/yourusername/nixos-maxxing.git\ncd nixos-maxxing\n```\n\n### Step 2: Create your host\n\nEdit `hosts/default.nix`:\n\n```nix\n{\n  your-hostname = pkgs.lib.nixosSystem {\n    system = \"x86_64-linux\";\n    modules = [\n      self.nixosModules.boot\n      self.nixosModules.hardware\n      self.nixosModules.networking\n      self.nixosModules.desktop\n      self.nixosModules.packages\n      self.nixosModules.users\n\n      # Your custom settings go here\n      ({ pkgs, ... }: {\n        nix.settings.experimental-features = [ \"nix-command\" \"flakes\" ];\n        nixpkgs.config.allowUnfree = true;\n        system.stateVersion = \"23.11\";\n      })\n    ];\n  };\n}\n```\n\n### Step 3: Customize modules\n\nEach module in `nixos/` is just a NixOS module. Edit them like you would any `configuration.nix`:\n\n- `nixos/hardware/` → Your GPU drivers\n- `nixos/packages/` → Your software list  \n- `nixos/networking/` → Your WiFi, timezone, hostname\n\n### Step 4: Build\n\n```bash\nsudo nixos-rebuild switch --flake .#your-hostname\n```\n\n## The Modules Explained\n\n| Module | What It Does |\n|--------|--------------|\n| `boot/` | Bootloader, kernel hardening, disabled risky kernel modules |\n| `hardware/` | NVIDIA + AMD GPU drivers, Bluetooth |\n| `networking/` | NetworkManager, timezone, locale |\n| `desktop/` | GNOME, PipeWire audio, screen locker |\n| `packages/` | 40+ programs I use daily |\n| `users/` | My user account, Docker access |\n\n## Key Features\n\n- **NVIDIA + AMD PRIME** — Use the powerful GPU when needed, save battery otherwise\n- **Security hardening** — Disabled unnecessary kernel features, blocked attack surfaces\n- **PipeWire** — Modern audio that actually works\n- **Flakes enabled** — Declarative, reproducible builds\n- **State version 23.11** — Current stable channel\n\n## Why Not Just Use the Old Way?\n\nYou could keep everything in `configuration.nix`. People did that for years. But:\n\n```\nOld way:  configuration.nix (1000 lines of nested mess)\nNew way:  10 files, 50 lines each, organized by topic\n```\n\nThe flake approach costs maybe 15 minutes to understand. The old way costs hours every time you need to find something or debug an issue.\n\n## Further Reading\n\n- [Nix Flakes](https://nixos.org/manual/nix/stable/command-ref/new-cli/nix3-flake.html) — Official docs\n- [NixOS Options](https://search.nixos.org/options) — All available options\n- [Determinate Systems](https://determinate.systems/posts/getting-started-with-nix-flakes) — Great tutorial\n\n## Credits\n\nBuilt on [NixOS](https://nixos.org/) — the OS that treats config as code.\n\n---\n\n*\"The best code is code you don't have to write. The second best is code that's easy to find.\"* — Somewhere on the internet, probably\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspirizeon%2Fnixos-maxxing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspirizeon%2Fnixos-maxxing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspirizeon%2Fnixos-maxxing/lists"}