Skip to content

Commit

Permalink
feat: add tailscale autoconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
jakehamilton committed Feb 20, 2024
1 parent 886b4bd commit 4ed70fb
Showing 1 changed file with 74 additions and 62 deletions.
136 changes: 74 additions & 62 deletions systems/x86_64-install-iso/graphical/default.nix
Original file line number Diff line number Diff line change
@@ -1,77 +1,89 @@
{ pkgs, lib, ... }:

with lib;
with lib.plusultra;
{
# `install-iso` adds wireless support that
# is incompatible with networkmanager.
networking.wireless.enable = mkForce false;
pkgs,
lib,
...
}: let
tailscale-key = builtins.getEnv "TAILSCALE_AUTH_KEY";
in
with lib;
with lib.plusultra; {
# `install-iso` adds wireless support that
# is incompatible with networkmanager.
networking.wireless.enable = mkForce false;

plusultra = {
nix = enabled;
plusultra = {
nix = enabled;

apps = {
_1password = enabled;
firefox = enabled;
vscode = enabled;
gparted = enabled;
};
apps = {
_1password = enabled;
firefox = enabled;
vscode = enabled;
gparted = enabled;
};

cli-apps = {
neovim = enabled;
tmux = enabled;
};
cli-apps = {
neovim = enabled;
tmux = enabled;
};

desktop = {
gnome = {
enable = true;
};

desktop = {
gnome = {
enable = true;
addons = {
# I like to have a convenient place to share wallpapers from
# even if they're not currently being used.
wallpapers = enabled;
};
};

addons = {
# I like to have a convenient place to share wallpapers from
# even if they're not currently being used.
wallpapers = enabled;
tools = {
k8s = enabled;
git = enabled;
node = enabled;
http = enabled;
misc = enabled;
titan = enabled;
};
};

tools = {
k8s = enabled;
git = enabled;
node = enabled;
http = enabled;
misc = enabled;
titan = enabled;
};
hardware = {
audio = enabled;
networking = enabled;
};

hardware = {
audio = enabled;
networking = enabled;
};
services = {
openssh = enabled;
printing = enabled;

services = {
openssh = enabled;
printing = enabled;
};
tailscale = {
enable = true;
autoconnect = {
enable = tailscale-key != "";
key = tailscale-key;
};
};
};

security = {
doas = enabled;
keyring = enabled;
};
security = {
doas = enabled;
keyring = enabled;
};

system = {
boot = enabled;
fonts = enabled;
locale = enabled;
time = enabled;
xkb = enabled;
system = {
boot = enabled;
fonts = enabled;
locale = enabled;
time = enabled;
xkb = enabled;
};
};
};

# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. It‘s perfectly fine and recommended to leave
# this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "21.11"; # Did you read the comment?
}
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. It‘s perfectly fine and recommended to leave
# this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "23.11"; # Did you read the comment?
}

0 comments on commit 4ed70fb

Please sign in to comment.