valkyrie: add new host + some changes

This commit is contained in:
2023-06-07 00:53:21 +02:00
parent 975a580cf8
commit 23c8980f68
10 changed files with 250 additions and 37 deletions
@@ -5,6 +5,7 @@
./hardware
./scripts.nix
./tmp.nix
./network.nix
];
@@ -17,7 +17,7 @@
fileSystems."/etc/nixos" =
{
device = "/materus/Nix/Nixerus";
device = "/materus/config/Nixerus";
fsType = "none";
options = [ "bind" ];
};
+21
View File
@@ -0,0 +1,21 @@
{ config, pkgs, lib, inputs, materusFlake, ... }:
let
valkyrie-sync = pkgs.writeShellScriptBin "valkyrie-sync" ''
${pkgs.rsync}/bin/rsync -avzrh --delete --exclude ".git*" --exclude "flake.lock" /materus/config/Nixerus materus@valkyrie:/materus/config/ && \
${pkgs.rsync}/bin/rsync -avzrh --delete --exclude ".git*" /materus/config/valkyrie materus@valkyrie:/materus/config/
'';
valkyrie-flakelock = pkgs.writeShellScriptBin "valkyrie-flakelock" ''
${pkgs.openssh}/bin/ssh materus@valkyrie "nix flake update /materus/config/Nixerus --override-input nixpkgs github:NixOS/nixpkgs/23.05 \
--override-input home-manager github:nix-community/home-manager/release-23.05 \
--override-input private /materus/config/valkyrie/flake"
'';
in
{
environment.systemPackages = [
valkyrie-sync
valkyrie-flakelock
];
}