My configs for both nixos and home manager only machines
Find a file
2024-09-28 15:18:45 +02:00
configs turned off visualizer for ncmpcpp, enabled restic server. 2024-09-28 15:18:45 +02:00
hosts turned off visualizer for ncmpcpp, enabled restic server. 2024-09-28 15:18:45 +02:00
lib added forgejo config using sqlite. 2024-07-29 15:02:40 -05:00
modules nix flake update and warnings fixes. 2024-09-28 00:04:19 +02:00
packages trying to get the pi image working. 2024-08-02 23:36:23 -05:00
roles broke apart home laptop and desktop config. 2024-06-18 15:06:50 -05:00
templates removed useless and cargo-culted outputs inherrits. 2024-06-10 16:19:36 -05:00
.envrc start of a latepanda config. 2024-05-24 15:23:56 -05:00
.gitignore start of a latepanda config. 2024-05-24 15:23:56 -05:00
flake.lock nix flake update and warnings fixes. 2024-09-28 00:04:19 +02:00
flake.nix v1 of duckdns update service. 2024-08-06 22:21:41 -05:00
justfile password hash is now plain file in private repo. 2024-06-05 19:10:12 -05:00
LICENSE Initial commit 2024-03-24 01:38:27 +00:00
README.md made nix-secrets input comment-out-able. 2024-06-12 14:40:04 -05:00

nix-config

My configs for both nixos and home manager only machines

structure

.
├── flake.nix
├── configs
│   ├── home-manager
│   └── nixos
├── hosts
├── modules
│   ├── home-manager
│   └── hostopts.nix
├── roles
│   ├── home-manager
│   └── nixos
└── templates
  • Configs set options and specify programs to be installed. They do not specify their own options, and take effect as soon as they are imported. Generally, a config will be specific to a single program, and possibly optional dependecies of the main program.
  • Hosts define specific hosts. They are the entry point into the system. Each host must import configs/nixos/common.nix in the top level and configs/home-manager/common.nix in the home-manager block. Each host must also define the variables declared in modules/hostopts.nix.
  • Modules are always imported by the respective common.nix. They each have an enable option, and only have effects if enabled.
  • Roles are larger bundles of software and options. They define packages to be installed and may import configurations or enable modules.

Secrets

This repo uses nix-sops for secrets management, with the encrypted secrets being stored in a private repo imported as an input. if the nix-secrets input is commented out, the repo should still build, gracefully degrading to default, non-secret, values.