stuff
This commit is contained in:
parent
0e5f0bd3a8
commit
bf1595d374
3 changed files with 32 additions and 17 deletions
20
README.md
20
README.md
|
@ -4,19 +4,19 @@ This is my cobbled together NixOS configuration. There are many like it, but thi
|
||||||
|
|
||||||
## Structure
|
## Structure
|
||||||
|
|
||||||
* common: Sane defaults that make sense to use for every host.
|
- common: Sane defaults that make sense to use for every host.
|
||||||
* modules: Regular NixOS modules.
|
- modules: Regular NixOS modules.
|
||||||
* profiles: Higher-level NixOS modules that conform to different roles that a host may have.
|
- profiles: Higher-level NixOS modules that conform to different roles that a host may have.
|
||||||
* packages: Packages that I couldn't fit anywhere else.
|
- packages: Packages that I couldn't fit anywhere else.
|
||||||
* secrets: Agenix secrets.
|
- secrets: Agenix secrets.
|
||||||
* hosts: Hosts exposed in `nixosConfigurations`.
|
- hosts: Hosts exposed in `nixosConfigurations`.
|
||||||
* pubkeys.nix: Nix expression with all my SSH public keys, used for OpenSSH, Agenix and Restic.
|
- pubkeys.nix: Nix expression with all my SSH public keys, used for OpenSSH, Agenix and Restic.
|
||||||
* lib.nix: Nixpkgs' lib with some extra functionality.
|
- lib.nix: Nixpkgs' lib with some extra functionality.
|
||||||
|
|
||||||
## Ports
|
## Ports
|
||||||
|
|
||||||
* 80X0: Public HTTP services that are proxied through nginx
|
- 80X0: Public HTTP services that are proxied through nginx
|
||||||
* 40X0: Syncthing instances (4000 being the system instance, subsequent ones are for individual users)
|
- 40X0: Syncthing instances (4000 being the system instance, subsequent ones are for individual users)
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
|
|
17
flake.nix
17
flake.nix
|
@ -60,10 +60,25 @@
|
||||||
treefmt = {
|
treefmt = {
|
||||||
projectRootFile = "flake.nix";
|
projectRootFile = "flake.nix";
|
||||||
|
|
||||||
programs.nixfmt = {
|
settings.global.excludes = [
|
||||||
|
"LICENSE"
|
||||||
|
"*.age"
|
||||||
|
".envrc"
|
||||||
|
];
|
||||||
|
|
||||||
|
programs = {
|
||||||
|
nixfmt = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.nixfmt-rfc-style;
|
package = pkgs.nixfmt-rfc-style;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
shfmt = {
|
||||||
|
enable = true;
|
||||||
|
indent_size = 2;
|
||||||
|
};
|
||||||
|
|
||||||
|
mdformat.enable = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
pre-commit.settings.hooks = {
|
pre-commit.settings.hooks = {
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
## File systems
|
## File systems
|
||||||
|
|
||||||
* Main: White, 1TB, for the system and home directories
|
- Main: White, 1TB, for the system and home directories
|
||||||
* Vault: Black, 2TB, primary for all data
|
- Vault: Black, 2TB, primary for all data
|
||||||
* Void: Green, 1TB, for throwaway data
|
- Void: Green, 1TB, for throwaway data
|
||||||
* Sync: Red, 2TB, synced from the vault
|
- Sync: Red, 2TB, synced from the vault
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue