From 16e3fd9647082214d5a26ca1563d90a9ce3040dd Mon Sep 17 00:00:00 2001 From: Patrick Date: Wed, 20 Sep 2023 21:49:49 +0200 Subject: [PATCH] feat: remote unlock --- hosts/testienix/default.nix | 1 + hosts/testienix/net.nix | 4 +++ .../generated/initrd_host_ed25519_key.age | Bin 0 -> 974 bytes modules/config/boot.nix | 6 +++- modules/config/system.nix | 7 ++++ modules/optional/initrd-ssh.nix | 34 ++++++++++++++++++ users/common/shells/pager.nix | 8 ++--- users/patrick/default.nix | 9 ++++- 8 files changed, 63 insertions(+), 6 deletions(-) create mode 100644 hosts/testienix/secrets/generated/initrd_host_ed25519_key.age create mode 100644 modules/optional/initrd-ssh.nix diff --git a/hosts/testienix/default.nix b/hosts/testienix/default.nix index 2b2629c..b43de75 100644 --- a/hosts/testienix/default.nix +++ b/hosts/testienix/default.nix @@ -5,6 +5,7 @@ # TODO: sollte entfernt werden für server ../../modules/config + ../../modules/optional/initrd-ssh.nix ../../modules/hardware/intel.nix ../../modules/hardware/physical.nix diff --git a/hosts/testienix/net.nix b/hosts/testienix/net.nix index 17da322..509be8c 100644 --- a/hosts/testienix/net.nix +++ b/hosts/testienix/net.nix @@ -14,4 +14,8 @@ }; }; }; + boot.initrd.systemd.network = { + enable = true; + networks = {inherit (config.systemd.network.networks) "01-lan1";}; + }; } diff --git a/hosts/testienix/secrets/generated/initrd_host_ed25519_key.age b/hosts/testienix/secrets/generated/initrd_host_ed25519_key.age new file mode 100644 index 0000000000000000000000000000000000000000..1f07923db6da4fae79c20551df5dd3e9b6e89497 GIT binary patch literal 974 zcmZwA`)?Bk007{{Z87a2TYOM33WbcQE#39{xb?azULWh*UQ4f!b0K!^?b=>2kG*o(wY?zujcZ_|@qM0s~wylwq+4Lo%9`B^7E& z?Dx1R3=t!7h}HX=1H3Vi_tBsw?xa0|oSx5R{%s?e$wLil)B~=k&0&a#?l)FU^ z8REDrT^sfLIB6t78+05L0gP!yFyTwVUb_?w{pZ3P$f$)ABQY3tXDpy8pD=kc2o}o{ zI@sKxVsK^JV3g+MUO&TUNpFfy=7d=j;$)pE8pZ5B2k&yFoFL>;T3`r|M(|*W^F*9h zO`NtyNbY~Hj5?sf15^&lA-Kb$mum7slxlK-4pzxqS(B#)4e9hWX0vmCVZzP(5y)U* ztsKaOYrPIDZ->KXhly9^jEb}zjqB7ZvyHdFcjq(iy zsTM|!0K=F~DWOaz6BF`)oMF|N4k9T#4lr?D$$|dTFsd4y>lP664K=_6-Rf8j=$p)k7{?`Y%e@lQO@uF@cYy{ z=c&R>@b``b4|Tp0NWsYBXVWi0l0Dthk55t4_{z_J8X4^uDCR#k&J8Y9ztLFKXTKPF z?eUImTh0E3lP{N-Mk_DfWG0J`beEZb6g@RCPfM!i!(-YvW5ur1C*IAxcx3xHwQbYuLepw|5(p-DaR3|z$d5az!KMmO-~m2t6 z$_u~g`)', '', {silent = true, desc = "Jump to tag under cursor}) - vim.keymap.set('n', '', ':pop', {silent = true, desc = "Jump to tag under cursor}) - vim.keymap.set('n', '', ':pop', {silent = true, desc = "Jump to tag under cursor}) - vim.keymap.set('n', '', ':tag', {silent = true, desc = "Jump to tag under cursor}) + vim.keymap.set('n', '', '', {silent = true, desc = "Jump to tag under cursor"}) + vim.keymap.set('n', '', ':pop', {silent = true, desc = "Jump to tag under cursor"}) + vim.keymap.set('n', '', ':pop', {silent = true, desc = "Jump to tag under cursor"}) + vim.keymap.set('n', '', ':tag', {silent = true, desc = "Jump to tag under cursor"}) ''; nvimPager = pkgs.wrapNeovimUnstable pkgs.neovim-unwrapped neovimConfig; neovimConfig = diff --git a/users/patrick/default.nix b/users/patrick/default.nix index 7088782..0bcda57 100644 --- a/users/patrick/default.nix +++ b/users/patrick/default.nix @@ -15,7 +15,14 @@ isNormalUser = true; uid = 1000; createHome = true; - extraGroups = ["wheel" "audio" "video" "input"]; + extraGroups = [ + "wheel" + "audio" + "video" + "input" + # TPM settings + "tss" + ]; group = "patrick"; hashedPassword = config.secrets.secrets.global.users.patrick.passwordHash; };