users/jordan: nest common config
All checks were successful
Check flake / build-amd64-linux (push) Successful in 1m3s

This commit is contained in:
Jordan Holt 2025-04-28 21:03:00 +01:00
parent 121ebde0a8
commit 7ce5026e62
Signed by: jordan
GPG Key ID: B8CFFF61F1CCF520
17 changed files with 13 additions and 8 deletions

View File

@ -1,11 +1,16 @@
{ {
inputs, inputs,
lib,
config, config,
pkgs, pkgs,
... ...
}: }:
let let
inherit (lib)
optional
;
name = "jordan"; name = "jordan";
hostFile = ./. + "/${config.networking.hostName}.nix";
in in
{ {
age.secrets."passwords/users/jordan".file = "${inputs.secrets}/passwords/users/jordan.age"; age.secrets."passwords/users/jordan".file = "${inputs.secrets}/passwords/users/jordan.age";
@ -31,14 +36,14 @@ in
home-manager.users.${name} = { home-manager.users.${name} = {
imports = [ imports = [
./git.nix ./common/git.nix
./gpg.nix ./common/gpg.nix
./graphical ./common/graphical
./neovim.nix ./common/neovim.nix
./pass.nix ./common/pass.nix
./shell.nix ./common/shell.nix
./ssh.nix ./common/ssh.nix
]; ] ++ optional (builtins.pathExists hostFile) hostFile;
programs.nh.enable = true; programs.nh.enable = true;