1
0
Fork 0
This commit is contained in:
Lukas Wurzinger 2025-05-30 23:22:03 +02:00
parent 0e5f0bd3a8
commit bf1595d374
No known key found for this signature in database
3 changed files with 32 additions and 17 deletions

View file

@ -4,19 +4,19 @@ This is my cobbled together NixOS configuration. There are many like it, but thi
## Structure
* common: Sane defaults that make sense to use for every host.
* modules: Regular NixOS modules.
* profiles: Higher-level NixOS modules that conform to different roles that a host may have.
* packages: Packages that I couldn't fit anywhere else.
* secrets: Agenix secrets.
* hosts: Hosts exposed in `nixosConfigurations`.
* pubkeys.nix: Nix expression with all my SSH public keys, used for OpenSSH, Agenix and Restic.
* lib.nix: Nixpkgs' lib with some extra functionality.
- common: Sane defaults that make sense to use for every host.
- modules: Regular NixOS modules.
- profiles: Higher-level NixOS modules that conform to different roles that a host may have.
- packages: Packages that I couldn't fit anywhere else.
- secrets: Agenix secrets.
- hosts: Hosts exposed in `nixosConfigurations`.
- pubkeys.nix: Nix expression with all my SSH public keys, used for OpenSSH, Agenix and Restic.
- lib.nix: Nixpkgs' lib with some extra functionality.
## Ports
* 80X0: Public HTTP services that are proxied through nginx
* 40X0: Syncthing instances (4000 being the system instance, subsequent ones are for individual users)
- 80X0: Public HTTP services that are proxied through nginx
- 40X0: Syncthing instances (4000 being the system instance, subsequent ones are for individual users)
## Installation

View file

@ -60,9 +60,24 @@
treefmt = {
projectRootFile = "flake.nix";
programs.nixfmt = {
enable = true;
package = pkgs.nixfmt-rfc-style;
settings.global.excludes = [
"LICENSE"
"*.age"
".envrc"
];
programs = {
nixfmt = {
enable = true;
package = pkgs.nixfmt-rfc-style;
};
shfmt = {
enable = true;
indent_size = 2;
};
mdformat.enable = true;
};
};

View file

@ -2,7 +2,7 @@
## File systems
* Main: White, 1TB, for the system and home directories
* Vault: Black, 2TB, primary for all data
* Void: Green, 1TB, for throwaway data
* Sync: Red, 2TB, synced from the vault
- Main: White, 1TB, for the system and home directories
- Vault: Black, 2TB, primary for all data
- Void: Green, 1TB, for throwaway data
- Sync: Red, 2TB, synced from the vault