flake: add disko

This commit is contained in:
Felix Buehler 2023-03-18 16:58:18 +01:00
parent 91282ce2d0
commit 2d29a71ce2
3 changed files with 33 additions and 4 deletions

View file

@ -3,10 +3,12 @@
This repository holds my NixOS configuration.
It is fully reproducible, flakes based, and position-independent, meaning there is no moving around of `configuration.nix`.
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).
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.
used flakes:
- image generation: [nixos-generators](https://github.com/nix-community/nixos-generators)
- disk formatting: [disko](https://github.com/nix-community/disko)
- secrets: [sops-nix](https://github.com/Mic92/sops-nix)
- deployment: [deploy-rs](https://github.com/serokell/deploy-rs), see [usage](#usage)
- formatting: [pre-commit-hooks](https://github.com/cachix/pre-commit-hooks.nix)
## structure

View file

@ -20,6 +20,26 @@
"type": "github"
}
},
"disko": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1678912468,
"narHash": "sha256-oUo6ZrsuqymuMLLvGfgnQ464OMKnUONv+ryea07iGrE=",
"owner": "nix-community",
"repo": "disko",
"rev": "e8650fc36bf9d2acb411ba0047f863b8e481e3bb",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "disko",
"type": "github"
}
},
"flake-compat": {
"flake": false,
"locked": {
@ -457,6 +477,7 @@
"root": {
"inputs": {
"deploy-rs": "deploy-rs",
"disko": "disko",
"flake-parts": "flake-parts",
"nix": "nix",
"nixos-generators": "nixos-generators",

View file

@ -26,6 +26,11 @@
inputs.nixpkgs.follows = "nixpkgs";
};
disko = {
url = "github:nix-community/disko";
inputs.nixpkgs.follows = "nixpkgs";
};
# own flakes
stunkymonkey = {
url = "github:Stunkymonkey/stunkymonkey.de";
@ -65,6 +70,7 @@
nativeBuildInputs = [
inputs'.sops-nix.packages.sops-import-keys-hook
inputs'.deploy-rs.packages.deploy-rs
inputs'.disko.packages.disko
# formatters
pkgs.shellcheck
pkgs.nixpkgs-fmt