Compare commits

..

4 commits

Author SHA1 Message Date
52a076e375
create ephemeral nodes 2024-12-08 01:19:03 -05:00
3037384c40
clone config using http 2024-12-08 01:18:50 -05:00
0d8e84adb9
enable nix-command and flakes 2024-12-08 01:18:08 -05:00
2bad638b02
add kitty terminfo 2024-12-08 01:17:54 -05:00
3 changed files with 7 additions and 2 deletions

View file

@ -38,6 +38,7 @@
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
vim vim
git git
kitty.terminfo
]; ];
environment.defaultPackages = lib.mkForce [ ]; environment.defaultPackages = lib.mkForce [ ];

View file

@ -19,6 +19,10 @@
modules = nixpkgs.lib.flatten modules ++ [ modules = nixpkgs.lib.flatten modules ++ [
./base.nix ./base.nix
./kiosk.nix ./kiosk.nix
{
nix.settings.extra-experimental-features = [ "nix-command" "flakes" ];
}
]; ];
}; };

View file

@ -45,7 +45,7 @@ in
requires = [ "network-online.target" ]; requires = [ "network-online.target" ];
path = with pkgs; [ git git-crypt ]; path = with pkgs; [ git git-crypt ];
script = '' script = ''
git clone ssh://git@inx.moe:245/Infinidoge/kiosk.git /etc/nixos git clone https://git.inx.moe/Infinidoge/kiosk.git /etc/nixos
cd /etc/nixos cd /etc/nixos
git-crypt unlock /etc/decryption.key git-crypt unlock /etc/decryption.key
''; '';
@ -58,7 +58,7 @@ in
enable = true; enable = true;
extraUpFlags = [ "--advertise-tags" "tag:kiosk" ]; extraUpFlags = [ "--advertise-tags" "tag:kiosk" ];
authKeyFile = ./tailscale-client-secret.key; authKeyFile = ./tailscale-client-secret.key;
authKeyParameters.ephemeral = false; authKeyParameters.ephemeral = true;
openFirewall = true; openFirewall = true;
}; };
networking.firewall.trustedInterfaces = [ "tailscale0" ]; networking.firewall.trustedInterfaces = [ "tailscale0" ];