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. This repository holds my NixOS configuration.
It is fully reproducible, flakes based, and position-independent, meaning there is no moving around of `configuration.nix`. 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). used flakes:
Secret are managed using [sops-nix](https://github.com/Mic92/sops-nix). - image generation: [nixos-generators](https://github.com/nix-community/nixos-generators)
For formatting [pre-commit-hooks](https://github.com/cachix/pre-commit-hooks.nix) is used. - disk formatting: [disko](https://github.com/nix-community/disko)
For image generation [nixos-generators](https://github.com/nix-community/nixos-generators) is used. - 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 ## structure

21
flake.lock generated
View file

@ -20,6 +20,26 @@
"type": "github" "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-compat": {
"flake": false, "flake": false,
"locked": { "locked": {
@ -457,6 +477,7 @@
"root": { "root": {
"inputs": { "inputs": {
"deploy-rs": "deploy-rs", "deploy-rs": "deploy-rs",
"disko": "disko",
"flake-parts": "flake-parts", "flake-parts": "flake-parts",
"nix": "nix", "nix": "nix",
"nixos-generators": "nixos-generators", "nixos-generators": "nixos-generators",

View file

@ -26,6 +26,11 @@
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
disko = {
url = "github:nix-community/disko";
inputs.nixpkgs.follows = "nixpkgs";
};
# own flakes # own flakes
stunkymonkey = { stunkymonkey = {
url = "github:Stunkymonkey/stunkymonkey.de"; url = "github:Stunkymonkey/stunkymonkey.de";
@ -65,6 +70,7 @@
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
inputs'.disko.packages.disko
# formatters # formatters
pkgs.shellcheck pkgs.shellcheck
pkgs.nixpkgs-fmt pkgs.nixpkgs-fmt