{"id":23035146,"url":"https://github.com/RaySlash/dotfiles","last_synced_at":"2025-08-14T17:30:54.203Z","repository":{"id":175568342,"uuid":"654130649","full_name":"RaySlash/nixos-config","owner":"RaySlash","description":"Personal Flake NixOS Config","archived":false,"fork":false,"pushed_at":"2024-12-04T13:14:07.000Z","size":4021,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-04T14:22:54.907Z","etag":null,"topics":["aarch64-linux","config","home-manager","nixos","rpi","x86-64-linux"],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RaySlash.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2023-06-15T12:58:13.000Z","updated_at":"2024-12-04T13:14:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"93da04b4-183e-40cd-a4f6-5575f639435f","html_url":"https://github.com/RaySlash/nixos-config","commit_stats":null,"previous_names":["rayslash/nixos-config"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RaySlash%2Fnixos-config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RaySlash%2Fnixos-config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RaySlash%2Fnixos-config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RaySlash%2Fnixos-config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RaySlash","download_url":"https://codeload.github.com/RaySlash/nixos-config/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229846073,"owners_count":18133382,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["aarch64-linux","config","home-manager","nixos","rpi","x86-64-linux"],"created_at":"2024-12-15T16:38:45.565Z","updated_at":"2025-08-14T17:30:54.196Z","avatar_url":"https://github.com/RaySlash.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🖥️ NixOS \u0026 Home-Manager Dotfiles\n\n![NixOS](https://img.shields.io/badge/NixOS-unstable-007ec6?logo=nixos\u0026logoColor=white)\n![Flakes](https://img.shields.io/badge/Flakes-Enabled-blueviolet)\n![License](https://img.shields.io/badge/License-GPLv3-green)\n\nMy personal NixOS configuration featuring multiple hosts and modern development setups.\n\n\u003e **NOTE**: These configs are highly opinionated - use as inspiration, not copy-paste!\n\n## 🚀 Usage\n\n### ✏️ Emacs Configuration\n\n```bash\nnix run github:rayslash/dotfiles#emacats\n```\n\n### 🧩 Neovim Configuration\n\n```bash\nnix run github:rayslash/dotfiles#nvimcat\n# OR use following for a minimal config\nnix run github:rayslash/dotfiles#nvim-minimal\n```\n\n### 📀 Live ISO Generation\n\nBuild bootable NixOS ISO with `live` nixos host configuration:\n\n```bash\nnix build .#images.x86_64\nnix build .#images.rpi-sd\n```\n\n### 🛠️ System Installation\n\n**Fresh Install Procedure:**\n\n\u003e **⚠️ Important**: Replace `MYHOST` and all `INSTALL_*` variables with\n\u003e desired values before running. By default, following instructions\n\u003e assume you are install the `frost` host configuration in a 3 volume partitioned nvme drive.\n\n```bash\nnix-shell -p git neovim\nexport INSTALL_DEVICE_NAME=\"nvme0n1\"\nexport INSTALL_EFI_LABEL=\"nvme0n1p1\"\nexport INSTALL_ROOT_LABEL=\"nvme0n1p2\"\nexport INSTALL_NIX_LABEL=\"nvme0n1p3\"\nexport INSTALL_DEVICE=\"/dev/$INSTALL_DEVICE_NAME\"\nsudo fdisk $INSTALL_DEVICE_NAME  # Create required partitions\nsudo mkfs.fat -F 32 /dev/$INSTALL_EFI_LABEL # Format an EFI partition\nsudo mkfs.ext4 /dev/$INSTALL_ROOT_LABEL # Format Linux filesystem partition (ext4, btrfs ...)\nsudo mount /dev/$INSTALL_ROOT_LABEL /mnt  # Mount root partition\nsudo mount /dev/$INSTALL_EFI_LABEL /mnt/boot  # Mount boot\nsudo mount /dev/$INSTALL_NIX_LABEL /mnt/nix  # Mount nix (optional)\n\nexport DOTFILES=\"/mnt/etc/dotfiles\"\nexport MYHOST=\"frost\"\nexport HOSTCONFIG_DIR=\"$DOTFILES/system/hosts/$MYHOST\"\ngit clone https://github.com/RaySlash/dotfiles $DOTFILES\nmv \"$HOSTCONFIG_DIR/hardware-configuration.nix\" \"$HOSTCONFIG_DIR/hardware-configuration-old.nix\"\nsudo nixos-generate-config --root /mnt\nsudo cp /mnt/etc/nixos/hardware-configuration.nix $HOSTCONFIG_DIR\nnvim \"$HOSTCONFIG_DIR/hardware-configuration.nix\"\n\nsudo nixos-install --flake .#$MYHOST\n```\n\n## 🧠 Philosophy\n\n### Core Principles:\n\n- 🔌 **Explicit Wiring**:\n  - Configurations are directly referenced via absolute paths\n  - No implicit file tree crawling\n\n- 📚 **Layered Composition**: Modules set defaults that can be cleanly overridden:\n\n  ```nix\n  # modules/kitty/default.nix\n  { lib, ... }: {\n    programs.kitty = {\n      enable = lib.mkForce true;\n      defaultTerminal = lib.mkDefault true; # Default that can be disabled\n    };\n  }\n\n  # hosts/myhost/default.nix\n  { lib, ... }: {\n    programs.kitty = {\n      # Explicit override of default\n      defaultTerminal = false;\n    };\n  }\n  ```\n\n- 🧰 **Utility-First**:\n  - Abstract common patterns into repo-specific functions:\n\n  ```nix\n  # utils/lib.nix\n  { inputs }: let\n    # ....\n  in\n  {\n  inherit\n    mkPkgs\n    mkHome\n    mkSystem\n    ;\n  }\n  ```\n\n- 🚫 **Anti-Pattern Rejection**:\n  - No automatic inclusion of `./hosts/*.nix`\n  - No magic \"profiles\" directory\n  - No recursive config discovery\n\n\u003e \"Configs should be obvious, not clever\"\n\u003e i.e., Direct file references \u003e Convention over configuration\n\n## 🔗 Resources\n\n- 🧩 **[Starter Config](https://github.com/Misterio77/nix-starter-configs)** - Flake template foundation\n- 📦 **[Nixpkgs](https://github.com/NixOS/nixpkgs)** - Official package repository\n- 📚 **[NixOS Wiki](https://nixos.wiki/)** - Community-maintained knowledge base\n- 🖥️ **[Hyprland Wiki](https://wiki.hyprland.org/)** - Window manager documentation\n\n## 🖼️ Screenshots\n\n![Hyprland Desktop](./docs/ss_nvim.png)  \n![Firefox Setup](./docs/ss_ff.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FRaySlash%2Fdotfiles","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FRaySlash%2Fdotfiles","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FRaySlash%2Fdotfiles/lists"}