Nix expressions for managing hosts, dotfiles, packages etc.
Go to file
Oystein Kristoffer Tveit 067a97bfbc
common/nix: add github access tokens
2024-06-25 20:21:16 +02:00
home home/git: add support for 'github:' short urls 2024-06-25 20:13:30 +02:00
hosts common/nix: add github access tokens 2024-06-25 20:21:16 +02:00
lib lib: remove upstreamed function `repeat` (`replicate`) 2023-07-28 22:05:22 +02:00
modules modules/socketActivation: misc improvement 2024-06-10 00:59:41 +02:00
package-overrides modules: add modules for socket activation 2023-07-28 21:32:13 +02:00
secrets home/nix: add sops and github token 2024-06-25 20:12:13 +02:00
.gitignore gitignore: add rule ignoring all nix result types 2023-05-08 02:47:43 +02:00
.sops.yaml secrets: split secrets per machine to reduce conflicts 2024-06-25 19:27:23 +02:00
README.md README: big update (👍ᐛ )👍 2023-10-06 18:27:20 +02:00
flake.lock start update to nixpkgs 24.05 by updating kasei and common 2024-06-02 17:17:24 +02:00
flake.nix home/nix: add sops and github token 2024-06-25 20:12:13 +02:00

README.md

built with nix

Nix Dotfiles

These are my dotfiles for several nix machines. Here are some of the interesting files and dirs:

Path Purpose
/home home-manager configuration.
/hosts Machine specific NixOS configurations.
/hosts/common.nix Configuration that is equal for all hosts.
/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.
/modules Custom nixos modules that I use in my own configuration. If you see options that does not appear in NixOS Search, they might be defined here.
/package-overrides Updated or pinned versions of packages that have not been upstreamed to nixpkgs (yet).
/secrets Encrypted sops-nix secrets.
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 for more information.

Hosts

Host Machine type Purpose
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
Kasei AMD Zen 2 CPU / Nvidia GPU - desktop computer Semi-daily driver. This is my main computer at home. Most of the configuration written in /home is made specifically for this computer, since Eisei is out of service at the moment.
Eisei HP Laptop At the moment, this laptop is not in use. I've found that I'm not able to use NixOS quickly enough in a university environment where I need to rapidly install software and maintain project configurations (Makefile, Maven, django, npm, etc...) for several subjects. In addition to the configurations, some of the software is not available on NixOS. As a result, I would the be forced to package or FHS a lot of stuff in order to do anything productive. I might return to using NixOS on my laptop in the future.

home-manager configuration

Path Purpose
/home/config Configuration for everything that is not a program, nor a service, and are big enough to warrant their own file or directory.
/home/modules Custom home-manager modules.
/home/packages.nix A list of packages that should be included in the environment.
/home/programs Configuration for programs that have their own home-manager modules.
/home/services Configuration for services/daemons that are user-specific.
/home/shell.nix Shell-agnostic configuration. This includes aliases, envvars, functions, etc.