sops stuff

This commit is contained in:
2025-02-03 17:53:28 +01:00
parent 752be0fe82
commit 1e7e973472
11 changed files with 128 additions and 35 deletions

View File

@@ -1,8 +1,14 @@
{ host }:
{ pkgs, lib, ... }:
{
pkgs,
lib,
config,
sops-nix,
...
}:
{
# https://nix-community.github.io/home-manager
home.stateVersion = "25.05"; # Please read the comment before changing.
home.stateVersion = "25.05";
programs.home-manager.enable = true;
home.username = host.username;
@@ -26,6 +32,7 @@
".config/ghostty/config".source = ./files/ghostty/config;
".gitconfig".source = ./files/git/gitconfig;
".gitignore_global".source = ./files/git/gitignore_global;
".gitconfig.local".source = ./files/git/config.work;
".config/nvim".source = ./files/nvim;
};
@@ -79,4 +86,14 @@
};
};
# Secrets
sops = {
age.keyFile = "${config.home.homeDirectory}/.config/sops/age/keys.txt";
defaultSopsFile = ./secrets/ssh.yaml;
secrets.config = {
mode = "0600";
path = "${config.home.homeDirectory}/.ssh/config";
};
};
}