feat: replace nixinate with just recipe

This commit is contained in:
uku 2024-12-25 19:20:30 +01:00
parent 65ce9c5882
commit 45448d1099
Signed by: uku
SSH key fingerprint: SHA256:4P0aN6M8ajKukNi6aPOaX0LacanGYtlfjmN+m/sHY/o
3 changed files with 7 additions and 33 deletions

21
flake.lock generated
View file

@ -253,26 +253,6 @@
"type": "github"
}
},
"nixinate": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1708891350,
"narHash": "sha256-VOQrKK7Df/IVuNki+NshVuGkTa/Tw0GigPjWcZff6kk=",
"owner": "matthewcroughan",
"repo": "nixinate",
"rev": "452f33c60df5b72ad0858f5f2cf224bdf1f17746",
"type": "github"
},
"original": {
"owner": "matthewcroughan",
"repo": "nixinate",
"type": "github"
}
},
"nixos-wsl": {
"inputs": {
"flake-compat": [],
@ -325,7 +305,6 @@
"home-manager": "home-manager",
"lanzaboote": "lanzaboote",
"mystia": "mystia",
"nixinate": "nixinate",
"nixos-wsl": "nixos-wsl",
"nixpkgs": "nixpkgs",
"systems": "systems_2",

View file

@ -3,10 +3,8 @@
outputs =
{
self,
flake-parts,
nixinate,
agenix,
flake-parts,
treefmt-nix,
...
}@inputs:
@ -29,8 +27,6 @@
...
}:
{
apps = (nixinate.nixinate.${system} self).nixinate;
devShells.default = pkgs.mkShellNoCC {
packages = with pkgs; [
agenix.packages.${system}.default
@ -118,11 +114,6 @@
inputs.flake-compat.follows = "";
};
nixinate = {
url = "github:matthewcroughan/nixinate";
inputs.nixpkgs.follows = "nixpkgs";
};
nixos-wsl = {
url = "github:nix-community/NixOS-WSL";
inputs.nixpkgs.follows = "nixpkgs";

View file

@ -16,8 +16,12 @@ boot *args:
@sudo -v
sudo nixos-rebuild boot --flake . --keep-going {{args}}
deploy system:
nix run .#{{system}}
deploy system user="leo":
#!/usr/bin/env bash
set -euxo pipefail
flake=$(nix eval --impure --raw --expr "(builtins.getFlake \"$PWD\").outPath")
nix copy "$flake" --to "ssh://{{user}}@{{system}}"
ssh -t "{{user}}@{{system}}" "sudo flock -w 60 /dev/shm/deploy-{{system}} nixos-rebuild switch --flake $flake#{{system}}"
lint *args:
statix check -i flake.nix **/hardware-configuration.nix {{args}}