{"id":17775624,"url":"https://github.com/h7x4/nix-dotfiles","last_synced_at":"2025-03-15T16:32:58.653Z","repository":{"id":135544375,"uuid":"467148227","full_name":"h7x4/nix-dotfiles","owner":"h7x4","description":"mirror of https://git.pvv.ntnu.no/oysteikt/nix-dotfiles","archived":false,"fork":false,"pushed_at":"2025-02-26T00:44:17.000Z","size":1093,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-26T01:31:33.485Z","etag":null,"topics":["dotfiles","linux","nix","nix-flake","nixos","tmux","vim","xmonad"],"latest_commit_sha":null,"homepage":"https://git.pvv.ntnu.no/oysteikt/nix-dotfiles","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/h7x4.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}},"created_at":"2022-03-07T15:20:48.000Z","updated_at":"2025-02-26T00:44:21.000Z","dependencies_parsed_at":"2024-08-03T01:58:43.141Z","dependency_job_id":"8d718e2b-738a-45bd-b415-47652ddc16d7","html_url":"https://github.com/h7x4/nix-dotfiles","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/h7x4%2Fnix-dotfiles","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h7x4%2Fnix-dotfiles/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h7x4%2Fnix-dotfiles/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h7x4%2Fnix-dotfiles/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/h7x4","download_url":"https://codeload.github.com/h7x4/nix-dotfiles/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243760345,"owners_count":20343626,"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":["dotfiles","linux","nix","nix-flake","nixos","tmux","vim","xmonad"],"created_at":"2024-10-26T21:58:04.597Z","updated_at":"2025-03-15T16:32:58.642Z","avatar_url":"https://github.com/h7x4.png","language":"Nix","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![built with nix](https://builtwithnix.org/badge.svg)](https://builtwithnix.org)\n\n\n# Nix Dotfiles\n\nThese are my dotfiles for several nix machines.\nHere are some of the interesting files and dirs:\n\n| Path | Purpose |\n|------|---------|\n| `/home` | [home-manager][home-manager] configuration. |\n| `/hosts` | Machine specific NixOS configurations. |\n| `/hosts/common/default.nix` | Configuration that is equal for all hosts. |\n| `/lib` | Custom lib functions that has not been upstreamed (or should not be) to nixpkgs. I'm trying to phase these out as much as possible. |\n| `/modules` | Custom nixos modules that I use in my own configuration. If you see options that does not appear in [NixOS Search][nixos-search], they might be defined here. |\n| `/package-overrides` | Updated or pinned versions of packages that have not been upstreamed to nixpkgs (yet). |\n| `/secrets` | Encrypted [sops-nix][sops-nix] secrets. |\n| `flake.nix` | The root of everyting. Defines the inputs and outputs of the project. Also applies misc overlays and adds config-wide modules. See [Nix Flakes][nix-flakes] for more information. |\n\n\n## Hosts\n\n| Host | Machine type | Purpose |\n|------|--------------|---------|\n| `Tsuki` | Dell Poweredge r710 server | Data storage / Build server / Selfhosted services. This server hosts a wide variety of services, including websites, matrix server, git repos, CI/CD and more. **This is probably the most interesting machine to pick config from** |\n| `Kasei` | AMD Zen 2 CPU / AMD GPU - desktop computer | Semi-daily driver. This is my main computer at home. |\n| `Dosei` | Dell Optiplex | Work computer, mostly used for development and testing. |\n| `Europa` | Dell Optiplex | Other work computer, used as nix builder for `Dosei`. |\n\n\n## home-manager configuration\n\n| Path | Purpose |\n|------|---------|\n| `/home/config` | Configuration for everything that is not a program, nor a service, and are big enough to warrant their own file or directory. |\n| `/home/modules` | Custom home-manager modules. |\n| `/home/packages.nix` | A list of packages that should be included in the environment. |\n| `/home/programs` | Configuration for programs that have their own home-manager modules. |\n| `/home/services` | Configuration for services/daemons that are user-specific. |\n| `/home/shell.nix` | Shell-agnostic configuration. This includes aliases, envvars, functions, etc. |\n\n\n## Some useful long commands\n\nBuild configuration without switching:\n\n```\nnix build .#nixosConfigurations.tsuki.config.system.build.toplevel -L\n```\n\nCheck why configuration depends on package:\n\n```\nNIXPKGS_ALLOW_INSECURE=1 nix why-depends .#nixosConfigurations.tsuki.config.system.build.toplevel .#pkgs.suspiciousPackage\n```\n\nRe-encrypt sops secrets with new key:\n\n```\nsops updatekeys secrets/hosts/file.yml\n```\n\n\n[home-manager]: https://github.com/nix-community/home-manager\n[nixos-search]: https://search.nixos.org/options\n[sops-nix]: https://github.com/Mic92/sops-nix\n[nix-flakes]: https://nixos.wiki/wiki/Flakes\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fh7x4%2Fnix-dotfiles","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fh7x4%2Fnix-dotfiles","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fh7x4%2Fnix-dotfiles/lists"}