1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-09-13 09:37:57 +00:00

homebrew: init

This commit is contained in:
RGBCube 2025-07-31 16:42:37 +03:00
parent 419a2514b9
commit 51c02a78a2
Signed by: RGBCube
SSH key fingerprint: SHA256:CzqbPcfwt+GxFYNnFVCqoN5Itn4YFrshg1TrnACpA5M
6 changed files with 104 additions and 17 deletions

View file

@ -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 {