create and move everything to the agenix module

This commit is contained in:
jacekpoz 2024-07-15 21:53:54 +02:00
parent b96b9523b9
commit 1493257c51
Signed by: poz
SSH key fingerprint: SHA256:JyLeVWE4bF3tDnFeUpUaJsPsNlJyBldDGV/dIKSLyN8
8 changed files with 31 additions and 7 deletions

View file

@ -47,6 +47,7 @@ in {
myOptions = {
other.home-manager.enable = true;
programs = {
agenix.enable = true;
git = {
enable = true;
defaultBranch = "master";

View file

@ -13,7 +13,6 @@ in {
modules = [
./niks
../modules
inputs.agenix.nixosModules.default
];
};
@ -25,7 +24,6 @@ in {
modules = [
./del
../modules
inputs.agenix.nixosModules.default
];
};
@ -48,7 +46,6 @@ in {
modules = [
./chmura
../modules
inputs.agenix.nixosModules.default
];
};
}

View file

@ -140,6 +140,7 @@ in {
enableDirenv = true;
};
programs = {
agenix.enable = true;
nh = let
inherit (config.myOptions.other.system) username;
home = config.home-manager.users.${username}.home.homeDirectory;

View file

@ -12,7 +12,6 @@ in {
shadower = inputs.shadower.packages.${pkgs.system};
fenix = inputs.fenix.packages.${pkgs.system};
nixpkgs-wayland = inputs.nixpkgs-wayland.packages.${pkgs.system};
agenix = inputs.agenix.packages.${pkgs.system};
in with pkgs; [
librewolf-wayland
keepassxc
@ -128,7 +127,6 @@ in {
tree
ydotool
piper
agenix.default
exiv2
krita
gamescope

View file

@ -76,6 +76,7 @@ in {
enableDirenv = true;
};
programs = {
agenix.enable = true;
nh = let
inherit (config.myOptions.other.system) username;
home = config.home-manager.users.${username}.home.homeDirectory;

View file

@ -12,7 +12,6 @@ in {
shadower = inputs.shadower.packages.${pkgs.system};
fenix = inputs.fenix.packages.${pkgs.system};
nixpkgs-wayland = inputs.nixpkgs-wayland.packages.${pkgs.system};
agenix = inputs.agenix.packages.${pkgs.system};
in with pkgs; [
librewolf-wayland
keepassxc
@ -128,7 +127,6 @@ in {
tree
ydotool
piper
agenix.default
exiv2
krita
gamescope

27
modules/cli/agenix.nix Normal file
View file

@ -0,0 +1,27 @@
{
config,
inputs,
lib,
pkgs,
...
}: let
cfg = config.myOptions.programs.agenix;
inherit (config.myOptions.other.system) username;
inherit (lib) mkEnableOption mkIf;
in {
options.myOptions.programs.agenix = {
enable = mkEnableOption "agenix";
};
imports = [ inputs.agenix.nixosModules.default ];
config = mkIf cfg.enable {
home-manager.users.${username} = {
home.packages = [
inputs.agenix.packages.${pkgs.system}.default
];
};
};
}

View file

@ -1,5 +1,6 @@
_: {
imports = [
./agenix.nix
./git.nix
./nh.nix
./starship.nix