move agenix into hosts/common

This commit is contained in:
jacekpoz 2024-10-02 16:49:35 +02:00
parent ddae4f3265
commit 76a2eeda57
Signed by: poz
SSH key fingerprint: SHA256:JyLeVWE4bF3tDnFeUpUaJsPsNlJyBldDGV/dIKSLyN8
9 changed files with 15 additions and 34 deletions

View file

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

View file

@ -0,0 +1,14 @@
{
config,
inputs,
pkgs,
...
}: let
inherit (config.poz.other.system) username;
in {
imports = [ inputs.agenix.nixosModules.default ];
users.users.${username}.packages = [
inputs.agenix.packages.${pkgs.system}.default
];
}

View file

@ -1,5 +1,6 @@
_: {
imports = [
./agenix.nix
./binary-caches.nix
./dash.nix
./dbus.nix

View file

@ -103,7 +103,6 @@ in {
networking.enable = true;
};
programs = {
agenix.enable = true;
nh = let
home = config.home-manager.users.${username}.home.homeDirectory;
in {

View file

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

View file

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

View file

@ -60,7 +60,6 @@ in {
};
};
programs = {
agenix.enable = true;
nh = let
home = config.home-manager.users.${username}.home.homeDirectory;
in {

View file

@ -1,28 +0,0 @@
{
config,
inputs,
lib,
pkgs,
...
}: let
cfg = config.poz.programs.agenix;
inherit (config.poz.other.system) username;
inherit (lib.modules) mkIf;
inherit (lib.options) mkEnableOption;
in {
options.poz.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,6 +1,5 @@
_: {
imports = [
./agenix.nix
./git.nix
./nh.nix
./starship.nix