loptland: add ssh key of phone, make sure that fish loads op in terminal only session, without bricking homemanager

This commit is contained in:
Christoph Hollizeck 2024-11-08 00:13:21 +01:00
parent a0103c86d9
commit 1007983690
Signed by: Daholli
GPG key ID: 1763BB530F50279E
2 changed files with 108 additions and 112 deletions

View file

@ -18,7 +18,7 @@ let
in
{
options.${namespace}.apps.cli-apps.helix = {
enable = mkEnableOption "Whether to enable nixvim or not";
enable = mkEnableOption "Whether to enable helix or not";
};
config = mkIf cfg.enable {
@ -30,8 +30,7 @@ in
};
${namespace} = {
home = {
extraOptions = {
home.extraOptions = {
programs.helix = {
enable = true;
package = helix-pkg;
@ -128,9 +127,6 @@ in
];
language-server = {
nil = {
command = "${pkgs.nil}/bin/nil";
};
nixd = {
command = "${pkgs.nixd}/bin/nixd";
};
@ -152,7 +148,6 @@ in
};
};
};
};
nix.extra-substituters.${cachix-url} = {
key = cachix-key;

View file

@ -108,9 +108,10 @@ in
user.trustedPublicKeys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHFrDiO5+vMfD5MimkzN32iw3MnSMLZ0mHvOrHVVmLD0"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAII4Pr7p0jizrvIl0UhcvrmL5SHRQQQWIcHLAnRFyUZS6"
];
home.extraOptions = {
snowfallorg.users.${config.${namespace}.user.name}.home.config = {
programs.fish.shellInit = ''
eval $(op signin)
'';