mirror of
https://github.com/RGBCube/ncc
synced 2025-09-13 09:37:57 +00:00
homebrew: init
This commit is contained in:
parent
419a2514b9
commit
51c02a78a2
6 changed files with 104 additions and 17 deletions
|
@ -1,5 +1,5 @@
|
|||
{ config, lib, pkgs, ... }: let
|
||||
inherit (lib) attrNames filterAttrs hasPrefix head mkAliasOptionModule mkIf;
|
||||
inherit (lib) mkAliasOptionModule mkIf;
|
||||
in {
|
||||
imports = [(mkAliasOptionModule [ "secrets" ] [ "age" "secrets" ])];
|
||||
|
||||
|
@ -7,7 +7,7 @@ in {
|
|||
(if config.isLinux then
|
||||
"/root/.ssh/id"
|
||||
else
|
||||
"/Users/${head <| attrNames <| filterAttrs (_: value: value.home != null && hasPrefix "/Users/" value.home) config.users.users}/.ssh/id")
|
||||
"/Users/${config.system.primaryUser}/.ssh/id")
|
||||
];
|
||||
|
||||
environment = mkIf config.isDesktop {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue