No description
Find a file
2023-05-24 11:56:03 +02:00
shared Fix workspace keybinds replacing all other keybinds 2023-05-24 11:56:03 +02:00
system Configure dev-lt-63 2023-05-23 09:58:47 +02:00
themes Add color theme 2023-05-21 22:09:59 +00:00
flake.lock Root commit 2023-05-21 19:15:04 +00:00
flake.nix Fix home/nix module on non-nixos machines 2023-05-23 10:32:24 +02:00
README.md Root commit 2023-05-21 19:15:04 +00:00
switch.sh Root commit 2023-05-21 19:15:04 +00:00

Infrastructure

Hello this is my new and improved Nix infrastructure.

General layout

There are three main directories:

  • secret, which contains secrets
  • shared, which contains shared config modules
  • system, which contains the configurations for specific machines

I have some machines that don't run NixOS so I have separated the home-manager stuff (home) from the NixOS system-level stuff (core).

For example, thor and odin are both NixOS machines, so for these machines, there is both a home.nix for the home config of my user account, and a core.nix containing the system-level configuration of the machine.

Shared configuration

NixOS and home-manager modules are used to organize the config.

A lot of config is shared between machines. This is stored within the shared/ directory, under either shared/core/ for system-level NixOS modules or shared/home/ for home-manager modules.

There's also a shared key used by the nix user of each machine, for which the public key is in shared/data/. This key is used to let other machines serve as remote builders.