mirror of
https://github.com/tomasriveral/nixos.git
synced 2026-08-12 02:28:37 +02:00
setup agenix
This commit is contained in:
@@ -132,7 +132,7 @@
|
||||
home.homeDirectory = "/home/tomasr";
|
||||
|
||||
home.sessionVariables = {
|
||||
EDITOR = "neovim";
|
||||
EDITOR = "nvim";
|
||||
TERMINAL = "kitty";
|
||||
};
|
||||
|
||||
|
||||
@@ -9,6 +9,8 @@
|
||||
inherit (self) pkgs-unstable pkgs-local pkgs-master;
|
||||
};
|
||||
modules = with self.nixosModules; [
|
||||
inputs.agenix.nixosModules.default
|
||||
agenix
|
||||
# important do not remove
|
||||
home-manager-laptop
|
||||
laptop
|
||||
@@ -129,7 +131,7 @@
|
||||
home.homeDirectory = "/home/tomasr";
|
||||
|
||||
home.sessionVariables = {
|
||||
EDITOR = "neovim";
|
||||
EDITOR = "nvim";
|
||||
TERMINAL = "kitty";
|
||||
};
|
||||
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
{inputs, ...}: {
|
||||
flake.nixosModules.agenix = {pkgs, ...}: {
|
||||
environment.systemPackages = [
|
||||
inputs.agenix.packages.${pkgs.system}.default
|
||||
];
|
||||
age.identityPaths = [
|
||||
"/home/tomasr/.ssh/id_ed25519"
|
||||
];
|
||||
age.secrets.my-secret = {
|
||||
file = ../../secrets/my-secret.age;
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user