moving to john-pc

This commit is contained in:
John Lancaster
2026-07-05 19:01:38 -05:00
parent dc89592eb1
commit a60d2bcd28
4 changed files with 29 additions and 28 deletions
+2 -2
View File
@@ -215,8 +215,8 @@ in
};
config = {
home.file = lib.mkIf cfg.certificates.enable {
".ssh/known_hosts".text = knownHostsText;
home.file.".ssh/known_hosts" = lib.mkIf cfg.certificates.enable {
text = knownHostsText;
};
programs.ssh = {
enable = true;
+19 -19
View File
@@ -3,11 +3,8 @@ let
username = "john";
hostname = "john-pc-ubuntu";
# testTarget = "fded:fb16:653e:25da:be24:11ff:fe89:1cc3"; # soteria
# testTarget = "fded:fb16:653e:25da:be24:11ff:fea0:753f"; # test-nix
testHost = "soteria"; # which host to test build
testTarget = "test-nix";
in
{
flake.modules.homeManager."${hostname}" = { config, pkgs, lib, ... }:
@@ -41,11 +38,7 @@ in
home.packages = with pkgs; [
nil # Nix language server
selfPkgs.jsl-zsh
# selfPkgs.my-neovim
selfPkgs.ssh-certs
# selfPkgs.step-bootstrap
# selfPkgs.wg-platform
# self'.packages.myWrappedPackage
# selfPkgs.ssh-certs
(inputs.self.wrappers.test-push.apply {
inherit pkgs flakeDir;
host = testHost;
@@ -56,19 +49,26 @@ in
homeManagerFlakeDir = flakeDir;
docker.enable = true;
ssh = {
programs.ssh.settings."*" = {
IdentityAgent = "${config.home.homeDirectory}/.1password/agent.sock";
};
ssh-new = {
certificates.enable = true;
knownHosts = [
"@cert-authority fded:fb16:653e:25da:be24:11ff:* ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBNug18oLH0vZxnibXJzMJvTWFPZTnSlhCDDVi+rHhgnIum6ZXQ4SF+VHOOAM5BbzZmMKitNJ5lcrGP15Eur7DzQ="
];
matchSets = {
certs = true;
appdaemon = true;
homelab = true;
dev = true;
tailscale = true;
};
};
# ssh = {
# certificates.enable = true;
# knownHosts = [
# "@cert-authority fded:fb16:653e:25da:be24:11ff:* ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBNug18oLH0vZxnibXJzMJvTWFPZTnSlhCDDVi+rHhgnIum6ZXQ4SF+VHOOAM5BbzZmMKitNJ5lcrGP15Eur7DzQ="
# ];
# matchSets = {
# certs = true;
# appdaemon = true;
# homelab = true;
# dev = true;
# tailscale = true;
# };
# };
# This provides the keys at build time and will be included in the nix store
sops.defaultSopsFile = ../../../keys/secrets.yaml;
+3 -2
View File
@@ -35,9 +35,10 @@ in
config =
let
identityFile = config.ssh-new.keyFile;
my-sops = (inputs.self.wrappers.mySops.apply {
inherit pkgs;
sshKey = config.ssh.identityFile;
sshKey = identityFile;
}).wrapper;
in
{
@@ -46,7 +47,7 @@ in
sops = {
defaultSopsFile = ../../keys/secrets.yaml;
defaultSopsFormat = "yaml";
age.sshKeyPaths = [ "${config.ssh.identityFile}" ];
age.sshKeyPaths = [ identityFile ];
};
home.packages = with pkgs; [
+4 -4
View File
@@ -36,10 +36,10 @@ in
selfPkgs = inputs.self.packages.${pkgs.stdenv.hostPlatform.system};
in {
home.stateVersion = "25.11";
imports = [
inputs.self.modules.homeManager.shell-tools
inputs.self.modules.homeManager.ssh
inputs.self.modules.homeManager.git
imports = with inputs.self.modules.homeManager; [
ssh-new
shell-tools
git
];
xdg.enable = true;
home.packages = [