feat: replace nixinate with just recipe
This commit is contained in:
parent
65ce9c5882
commit
45448d1099
3 changed files with 7 additions and 33 deletions
21
flake.lock
generated
21
flake.lock
generated
|
@ -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",
|
||||
|
|
11
flake.nix
11
flake.nix
|
@ -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";
|
||||
|
|
8
justfile
8
justfile
|
@ -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}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue