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"
|
"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": {
|
"nixos-wsl": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-compat": [],
|
"flake-compat": [],
|
||||||
|
@ -325,7 +305,6 @@
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
"lanzaboote": "lanzaboote",
|
"lanzaboote": "lanzaboote",
|
||||||
"mystia": "mystia",
|
"mystia": "mystia",
|
||||||
"nixinate": "nixinate",
|
|
||||||
"nixos-wsl": "nixos-wsl",
|
"nixos-wsl": "nixos-wsl",
|
||||||
"nixpkgs": "nixpkgs",
|
"nixpkgs": "nixpkgs",
|
||||||
"systems": "systems_2",
|
"systems": "systems_2",
|
||||||
|
|
11
flake.nix
11
flake.nix
|
@ -3,10 +3,8 @@
|
||||||
|
|
||||||
outputs =
|
outputs =
|
||||||
{
|
{
|
||||||
self,
|
|
||||||
flake-parts,
|
|
||||||
nixinate,
|
|
||||||
agenix,
|
agenix,
|
||||||
|
flake-parts,
|
||||||
treefmt-nix,
|
treefmt-nix,
|
||||||
...
|
...
|
||||||
}@inputs:
|
}@inputs:
|
||||||
|
@ -29,8 +27,6 @@
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
apps = (nixinate.nixinate.${system} self).nixinate;
|
|
||||||
|
|
||||||
devShells.default = pkgs.mkShellNoCC {
|
devShells.default = pkgs.mkShellNoCC {
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
agenix.packages.${system}.default
|
agenix.packages.${system}.default
|
||||||
|
@ -118,11 +114,6 @@
|
||||||
inputs.flake-compat.follows = "";
|
inputs.flake-compat.follows = "";
|
||||||
};
|
};
|
||||||
|
|
||||||
nixinate = {
|
|
||||||
url = "github:matthewcroughan/nixinate";
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
};
|
|
||||||
|
|
||||||
nixos-wsl = {
|
nixos-wsl = {
|
||||||
url = "github:nix-community/NixOS-WSL";
|
url = "github:nix-community/NixOS-WSL";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|
8
justfile
8
justfile
|
@ -16,8 +16,12 @@ boot *args:
|
||||||
@sudo -v
|
@sudo -v
|
||||||
sudo nixos-rebuild boot --flake . --keep-going {{args}}
|
sudo nixos-rebuild boot --flake . --keep-going {{args}}
|
||||||
|
|
||||||
deploy system:
|
deploy system user="leo":
|
||||||
nix run .#{{system}}
|
#!/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:
|
lint *args:
|
||||||
statix check -i flake.nix **/hardware-configuration.nix {{args}}
|
statix check -i flake.nix **/hardware-configuration.nix {{args}}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue