{"id":21064060,"url":"https://github.com/luochen1990/nixos-config","last_synced_at":"2025-05-16T02:32:20.387Z","repository":{"id":71923118,"uuid":"453611943","full_name":"luochen1990/nixos-config","owner":"luochen1990","description":"LC's personal NixOS Configuration","archived":false,"fork":false,"pushed_at":"2024-09-26T12:57:29.000Z","size":201,"stargazers_count":12,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"public","last_synced_at":"2025-04-03T18:52:48.076Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Nix","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/luochen1990.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":"2022-01-30T07:07:23.000Z","updated_at":"2025-02-21T14:51:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"34cc2431-a0b7-41d7-9996-4bd139e5aeec","html_url":"https://github.com/luochen1990/nixos-config","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luochen1990%2Fnixos-config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luochen1990%2Fnixos-config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luochen1990%2Fnixos-config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luochen1990%2Fnixos-config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/luochen1990","download_url":"https://codeload.github.com/luochen1990/nixos-config/tar.gz/refs/heads/public","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254456047,"owners_count":22074086,"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":[],"created_at":"2024-11-19T17:48:10.905Z","updated_at":"2025-05-16T02:32:20.381Z","avatar_url":"https://github.com/luochen1990.png","language":"Nix","funding_links":[],"categories":[],"sub_categories":[],"readme":"My NixOS\n========\n\nSuppose you choosed to use a profile named \"pocket-nixos\":\n\n```sh\ncd /path/of/dir/which/contains/flake-dot-nix\nnixos-rebuild switch --flake .#pocket-nixos\n```\n\nBootstrap\n---------\n\nSince flake is not supported by default yet, we might need to build a NixOS version which support flake first.\n\n```sh\nln -s /path/to/this/repo/profiles/bootstrap/configuration.nix /etc/nixos/configuration.nix\n```\n\nTo be more complete, this bootstrap NixOS provides following supports:\n\n1. offline nixos \u0026 nixpkgs manual\n2. nix flake support so you can run `nixos-rebuild switch --flake`\n3. visit Internet to download packages and clone repos\n4. debug network issue\n5. IM (telegram) client to get help from community\n\nDirectory Structure\n-------------------\n\n```\n├── flake.nix                           # entrypoint as a Nix Flake\n├── profiles/                           # each subdirectory of `profiles/` contains a profile\n│   ├── example-nixos/                  # the directory name implies `profileName`\n│   │   ├── configuration.nix           # this file import mods from `common/` and `facts/` to get a full configuration of NixOS\n│   │   └── hardware-configuration.nix  # the file generated by `sudo nixos-generate-config --show-hardware-config`\n├── fact/                               # each subdirectory of fact/ contains facts of a specific aspect\n│   ├── user/                           # config for specific user\n│   ├── network/                        # config for specific network environment\n│   ├── device/                         # config for specific hardware device (monitor, cpu, gpu etc.)\n│   └── storage/                        # config for specific disk\n├── common/                             # general things that works for everyone\n└── README.md\n```\n\nnaming rules:\n\n- `configuration.nix`: NixOS Configuration (See `man configuration.nix`)\n- `*.mod.nix`: NixOS Module (See `man configuration.nix`) to be imported by `configuration.nix`\n- `*.drv.nix`: Nix Derivation to be used by `nix-build`\n- `*.pkg.nix`: argument of callPackage\n\nTroubleshooting\n---------------\n\nIf there is problem when logging into GUI system, try add this line to disable wayland:\n\n```\nprograms.sway.enable = false\n```\n\nAnd also try to disable sddm to use lightdm\n\n```\nservices.xserver.displayManager.sddm.enable = false;\n```\n\nIf there is following error message when you type a command which havn't installed yet:\n\nunable to open database file at /run/current-system/sw/bin/command-not-found\n\ntype execute following command to fix it:\n\n```sh\nsudo nix-channel --add https://nixos.org/channels/nixos-unstable nixos\nsudo nix-channel --update\n```\n\nand confirm it with:\n\n```sh\ncommand-not-found hello\n```\n\n(or replace hello with some else command which haven't installed yet)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluochen1990%2Fnixos-config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluochen1990%2Fnixos-config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluochen1990%2Fnixos-config/lists"}