moving to john-pc
This commit is contained in:
@@ -215,8 +215,8 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
home.file = lib.mkIf cfg.certificates.enable {
|
home.file.".ssh/known_hosts" = lib.mkIf cfg.certificates.enable {
|
||||||
".ssh/known_hosts".text = knownHostsText;
|
text = knownHostsText;
|
||||||
};
|
};
|
||||||
programs.ssh = {
|
programs.ssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
@@ -3,11 +3,8 @@ let
|
|||||||
username = "john";
|
username = "john";
|
||||||
hostname = "john-pc-ubuntu";
|
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
|
testHost = "soteria"; # which host to test build
|
||||||
testTarget = "test-nix";
|
testTarget = "test-nix";
|
||||||
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
flake.modules.homeManager."${hostname}" = { config, pkgs, lib, ... }:
|
flake.modules.homeManager."${hostname}" = { config, pkgs, lib, ... }:
|
||||||
@@ -41,11 +38,7 @@ in
|
|||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
nil # Nix language server
|
nil # Nix language server
|
||||||
selfPkgs.jsl-zsh
|
selfPkgs.jsl-zsh
|
||||||
# selfPkgs.my-neovim
|
# selfPkgs.ssh-certs
|
||||||
selfPkgs.ssh-certs
|
|
||||||
# selfPkgs.step-bootstrap
|
|
||||||
# selfPkgs.wg-platform
|
|
||||||
# self'.packages.myWrappedPackage
|
|
||||||
(inputs.self.wrappers.test-push.apply {
|
(inputs.self.wrappers.test-push.apply {
|
||||||
inherit pkgs flakeDir;
|
inherit pkgs flakeDir;
|
||||||
host = testHost;
|
host = testHost;
|
||||||
@@ -56,20 +49,27 @@ in
|
|||||||
homeManagerFlakeDir = flakeDir;
|
homeManagerFlakeDir = flakeDir;
|
||||||
docker.enable = true;
|
docker.enable = true;
|
||||||
|
|
||||||
ssh = {
|
programs.ssh.settings."*" = {
|
||||||
certificates.enable = true;
|
IdentityAgent = "${config.home.homeDirectory}/.1password/agent.sock";
|
||||||
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-new = {
|
||||||
|
certificates.enable = 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
|
# This provides the keys at build time and will be included in the nix store
|
||||||
sops.defaultSopsFile = ../../../keys/secrets.yaml;
|
sops.defaultSopsFile = ../../../keys/secrets.yaml;
|
||||||
|
|
||||||
|
|||||||
@@ -35,9 +35,10 @@ in
|
|||||||
|
|
||||||
config =
|
config =
|
||||||
let
|
let
|
||||||
|
identityFile = config.ssh-new.keyFile;
|
||||||
my-sops = (inputs.self.wrappers.mySops.apply {
|
my-sops = (inputs.self.wrappers.mySops.apply {
|
||||||
inherit pkgs;
|
inherit pkgs;
|
||||||
sshKey = config.ssh.identityFile;
|
sshKey = identityFile;
|
||||||
}).wrapper;
|
}).wrapper;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
@@ -46,7 +47,7 @@ in
|
|||||||
sops = {
|
sops = {
|
||||||
defaultSopsFile = ../../keys/secrets.yaml;
|
defaultSopsFile = ../../keys/secrets.yaml;
|
||||||
defaultSopsFormat = "yaml";
|
defaultSopsFormat = "yaml";
|
||||||
age.sshKeyPaths = [ "${config.ssh.identityFile}" ];
|
age.sshKeyPaths = [ identityFile ];
|
||||||
};
|
};
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
|
|||||||
@@ -36,10 +36,10 @@ in
|
|||||||
selfPkgs = inputs.self.packages.${pkgs.stdenv.hostPlatform.system};
|
selfPkgs = inputs.self.packages.${pkgs.stdenv.hostPlatform.system};
|
||||||
in {
|
in {
|
||||||
home.stateVersion = "25.11";
|
home.stateVersion = "25.11";
|
||||||
imports = [
|
imports = with inputs.self.modules.homeManager; [
|
||||||
inputs.self.modules.homeManager.shell-tools
|
ssh-new
|
||||||
inputs.self.modules.homeManager.ssh
|
shell-tools
|
||||||
inputs.self.modules.homeManager.git
|
git
|
||||||
];
|
];
|
||||||
xdg.enable = true;
|
xdg.enable = true;
|
||||||
home.packages = [
|
home.packages = [
|
||||||
|
|||||||
Reference in New Issue
Block a user