mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-24 09:54:40 +02:00
update README
This commit is contained in:
parent
e07f19eae0
commit
b2ef1dd939
2 changed files with 21 additions and 6 deletions
17
README.md
17
README.md
|
@ -6,14 +6,18 @@ It is fully reproducible, flakes based, and position-independent, meaning there
|
||||||
Deployment is done using [deploy-rs](https://github.com/serokell/deploy-rs), see [usage](#usage).
|
Deployment is done using [deploy-rs](https://github.com/serokell/deploy-rs), see [usage](#usage).
|
||||||
Secret are managed using [sops-nix](https://github.com/Mic92/sops-nix).
|
Secret are managed using [sops-nix](https://github.com/Mic92/sops-nix).
|
||||||
For formatting [pre-commit-hooks](https://github.com/cachix/pre-commit-hooks.nix) is used.
|
For formatting [pre-commit-hooks](https://github.com/cachix/pre-commit-hooks.nix) is used.
|
||||||
|
For image generation [nixos-generators](https://github.com/nix-community/nixos-generators) is used.
|
||||||
|
|
||||||
## structure
|
## structure
|
||||||
|
|
||||||
```
|
```
|
||||||
.
|
.
|
||||||
├── modules # Own nix-options, to modularize services/hardware/...
|
├── images # custom image generations
|
||||||
├── machines # Machine definitions
|
├── machines # machine definitions
|
||||||
└── pkgs # Own packages, which are not available in nixpkgs
|
├── modules # own nix-options, to modularize services/hardware/...
|
||||||
|
├── overlays # overlays
|
||||||
|
├── pkgs # own packages, which are not available in nixpkgs
|
||||||
|
└── profiles # summarize module collections into single options
|
||||||
```
|
```
|
||||||
|
|
||||||
## usage
|
## usage
|
||||||
|
@ -33,8 +37,13 @@ secrets:
|
||||||
sops ./machines/myHost/secrets.yaml
|
sops ./machines/myHost/secrets.yaml
|
||||||
```
|
```
|
||||||
|
|
||||||
|
images:
|
||||||
|
```bash
|
||||||
|
nix build .#install-iso
|
||||||
|
nix build .#aarch64-install --system aarch64-linux
|
||||||
|
```
|
||||||
|
|
||||||
## inspired by
|
## inspired by
|
||||||
- [deploy hugo with nix](https://ayats.org/blog/flake-blog/)
|
|
||||||
- [Nix config by Mic92](https://github.com/Mic92/dotfiles)
|
- [Nix config by Mic92](https://github.com/Mic92/dotfiles)
|
||||||
- [Nix config by ambroisie](https://github.com/ambroisie/nix-config)
|
- [Nix config by ambroisie](https://github.com/ambroisie/nix-config)
|
||||||
- [Nix config by pborzenkov](https://github.com/pborzenkov/nix-config)
|
- [Nix config by pborzenkov](https://github.com/pborzenkov/nix-config)
|
||||||
|
|
10
flake.nix
10
flake.nix
|
@ -21,6 +21,12 @@
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nixos-generators = {
|
||||||
|
url = "github:nix-community/nixos-generators";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
|
||||||
|
# own flakes
|
||||||
stunkymonkey = {
|
stunkymonkey = {
|
||||||
url = "github:Stunkymonkey/stunkymonkey.de";
|
url = "github:Stunkymonkey/stunkymonkey.de";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
@ -59,9 +65,9 @@
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
inputs'.sops-nix.packages.sops-import-keys-hook
|
inputs'.sops-nix.packages.sops-import-keys-hook
|
||||||
inputs'.deploy-rs.packages.deploy-rs
|
inputs'.deploy-rs.packages.deploy-rs
|
||||||
pkgs.nixpkgs-fmt
|
# formatters
|
||||||
pkgs.shellcheck
|
pkgs.shellcheck
|
||||||
pkgs.pre-commit
|
pkgs.nixpkgs-fmt
|
||||||
];
|
];
|
||||||
shellHook = ''
|
shellHook = ''
|
||||||
${config.pre-commit.installationScript}
|
${config.pre-commit.installationScript}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue