{"id":18078076,"url":"https://github.com/theobori/nixos-configuration","last_synced_at":"2025-08-19T21:32:29.764Z","repository":{"id":260384691,"uuid":"878409935","full_name":"theobori/nixos-configuration","owner":"theobori","description":"❄️ My NixOS configuration","archived":false,"fork":false,"pushed_at":"2024-12-08T03:00:11.000Z","size":5275,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-08T04:16:37.109Z","etag":null,"topics":["disko","home-manager","nix","nix-anywhere","nix-flake","nixos","snowfall-lib","sops","stylix"],"latest_commit_sha":null,"homepage":"https://theobori.github.io/nixos-configuration","language":"Nix","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/theobori.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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}},"created_at":"2024-10-25T10:42:14.000Z","updated_at":"2024-12-08T03:00:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"ea3b1f49-4cac-4e05-b26e-a99e984c54a2","html_url":"https://github.com/theobori/nixos-configuration","commit_stats":{"total_commits":20,"total_committers":2,"mean_commits":10.0,"dds":"0.050000000000000044","last_synced_commit":"d944e41e896714070e8a330e570c43cd4dd403e7"},"previous_names":["theobori/nixos-configuration"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theobori%2Fnixos-configuration","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theobori%2Fnixos-configuration/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theobori%2Fnixos-configuration/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theobori%2Fnixos-configuration/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/theobori","download_url":"https://codeload.github.com/theobori/nixos-configuration/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230370764,"owners_count":18215614,"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":["disko","home-manager","nix","nix-anywhere","nix-flake","nixos","snowfall-lib","sops","stylix"],"created_at":"2024-10-31T12:11:32.972Z","updated_at":"2025-08-19T21:32:29.756Z","avatar_url":"https://github.com/theobori.png","language":"Nix","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ❄️ My NixOS Configuration\n\n[![check](https://github.com/theobori/nixos-configuration/actions/workflows/check.yml/badge.svg)](https://github.com/theobori/nixos-configuration/actions/workflows/check.yml) [![pages](https://github.com/theobori/nixos-configuration/actions/workflows/pages.yml/badge.svg)](https://github.com/theobori/nixos-configuration/actions/workflows/pages.yml)\n\n[![built with nix](https://builtwithnix.org/badge.svg)](https://builtwithnix.org)\n\nThis repository contains all the Nix declarations I use to build my systems.\n\n## Table of Contents\n\n1. [Getting Started](#getting-started)\n2. [Features](#features)\n3. [Customization](#customization)\n4. [Resources](#resources)\n\n## Getting Started\n\nBefore diving in, ensure that you have Nix installed on your system. If not, you\ncan download and install it from the official\n[Nix website](https://nixos.org/download.html) or from the\n[Determinate Systems installer](https://github.com/DeterminateSystems/nix-installer).\n\n### Clone this repository to your local machine\n\n```bash\ngit clone https://github.com/theobori/nixos-configuration.git\ncd nixos-configuration\n\n# linux\nsudo nixos-rebuild switch --flake .\n\n # with direnv\nflake switch\n```\n\n### Deploy on a remote machine\n\nFeel free to use my minimal bootable disk image [x86_64-install-iso/minimal](/systems/x86_64-install-iso/minimal/default.nix). The aim is to load this bootable iso on a target machine to have a usable OpenSSH server to deploy our NixOS configuration.\n\nYou can build it with the following command.\n\n```bash\nnix build .#install-isoConfigurations.minimal\n```\n\nOnce built, you'll find an iso file in the `iso` folder of the build result. Below, part of the result of the `tree result` command shows us that we have built an image for a `x86_64-linux` system.\n\n```bash\nresult/\n├── iso\n│   └── nixos-24.11.20241028.bb50fc7-x86_64-linux.iso\n...\n```\n\nOnce loaded on the target machine, you can use a deployment tool such as [nixos-anywhere](https://numtide.com/projects/nixos-anywhere/) to deploy NixOS over SSH.\n\nHere's an example.\n\n```bash\nnix run github:nix-community/nixos-anywhere -- --generate-hardware-config nixos-generate-config systems/x86_64-linux/vm/hardware-configuration.nix nixos@\u003cdestination\u003e --flake .#\u003csystem-name\u003e\n```\n\n## Features\n\nHere's an overview of what my Nix configuration offers:\n\n- **External Dependency Integrations**:\n  - Access the Nix User Repository (NUR) for additional packages and\n    enhancements.\n\n- **Home Manager**: Manage your dotfiles, home environment, and user-specific\n  configurations with [Home Manager](https://github.com/nix-community/home-manager).\n\n- **DevShell Support**: The flake provides a development shell (`devShell`) to\n  support maintaining this flake. You can use the devShell for convenient\n  development and maintenance of your Nix environment.\n\n- **CI with Cachix**: The configuration includes continuous integration (CI)\n  that pushes built artifacts to [Cachix](https://github.com/cachix/cachix). This ensures efficient builds and\n  reduces the need to build dependencies on your local machine.\n\n- **Utilize sops-nix**: Secret management with [sops-nix](https://github.com/Mic92/sops-nix) for secure and encrypted\n  handling of sensitive information.\n\n- **Theming with stylix**: Management of system and application colorscheme,\n  fonts and wallpaper with [stylix](https://stylix.danth.me).\n\n- **Declarative disk partitioning**: Use [disko](https://github.com/nix-community/disko) to declare your disk and format it\n  using the Nix language.\n\n- **Declarative Vencord configuration**: Use [nixcord](https://github.com/KaylorBen/nixcord) to declare your\n  Vencord settings and plugins.\n\n- **Declarative KDE Plasma configuration**: Use [plasma-manager](https://github.com/nix-community/plasma-manager) to declare your\n  Vencord settings and plugins.\n\n- **Declarative Flatpak installation**: Use [declarative-flatpak](https://github.com/GermanBread/declarative-flatpak) to manage\n  KDE Plasma with Home Manager.\n\n- **Declarative Spotify customization**: Use [spicetify-nix](https://github.com/Gerg-L/spicetify-nix) to modify Spotify.\n\n\n## Customization\n\nMy Nix configuration, based on the [SnowfallOrg lib](https://github.com/snowfallorg/lib) structure, provides a\nflexible and organized approach to managing your Nix environment. Here's how it\nworks:\n\n- **Custom Library**: An optional custom library in the `lib/` directory\n  contains a Nix function called with `inputs`, `snowfall-inputs`, and `lib`.\n  The function should return an attribute set to merge with `lib`.\n\n- **Modular Directory Structure**: You can create any (nestable) directory\n  structure within `lib/`, `packages/`, `modules/`, `overlays/`, `systems/`, and\n  `homes/`. Each directory should contain a Nix function that returns an\n  attribute set to merge with the corresponding section.\n\n- **Package Overlays**: The `packages/` directory includes an optional set of\n  packages to export. Each package is instantiated with `callPackage`, and the\n  files should contain functions that take an attribute set of packages and the\n  required `lib` to return a derivation.\n\n- **Modules for Configuration**: In the `modules/` directory, you can define\n  NixOS modules for various platforms, such as `nixos`, `darwin`, and `home`.\n  This modular approach simplifies system configuration management.\n\n- **Custom Overlays**: The `overlays/` directory is for optional custom\n  overlays. Each overlay file should contain a function that takes three\n  arguments: an attribute set of your flake's inputs and a `channels` attribute\n  containing all available channels, the final set of `pkgs`, and the previous\n  set of `pkgs`. This allows you to customize package sets effectively.\n\n- **System Configurations**: The `systems/` directory organizes system\n  configurations based on architecture and format. You can create configurations\n  for different architectures and formats, such as `x86_64-linux`,\n  `aarch64-darwin`, and more.\n\n- **Home Configurations**: Similar to system configurations, the `homes/`\n  directory organizes home configurations based on architecture and format. This\n  is especially useful if you want to manage home environments with Nix.\n\nThis structured approach to Nix configuration makes it easier to manage and\ncustomize your Nix environment while maintaining flexibility and modularity.\n\n## Screenshots\n\nMy NixOS KDE Plasma 6 environment looks like this.\n\n![desktop](./docs/docs/images/desktop.png)\n![emacs-coding](./docs/docs/images/emacs-coding.png)\n![emacs_launcher](./docs/docs/images/emacs_launcher.png)\n\n## Resources\n\nOther configurations from where I learned and copied:\n\n- [hmajid2301/nixicle](https://gitlab.com/hmajid2301/nixicle)\n- [khaneliman/khanelinix](https://github.com/khaneliman/khanelinix)\n- [JakeHamilton/config](https://github.com/jakehamilton/config)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheobori%2Fnixos-configuration","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftheobori%2Fnixos-configuration","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheobori%2Fnixos-configuration/lists"}