mirror of
https://github.com/RGBCube/ncc
synced 2025-09-13 01:27:56 +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 {
|
||||
|
|
3
modules/darwin/ghostty.nix
Normal file
3
modules/darwin/ghostty.nix
Normal file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
homebrew.casks = [ "ghostty" ];
|
||||
}
|
16
modules/darwin/homebrew.nix
Normal file
16
modules/darwin/homebrew.nix
Normal file
|
@ -0,0 +1,16 @@
|
|||
{ nix-homebrew, homebrew-core, homebrew-cask, config, lib, ... }: let
|
||||
inherit (lib) enabled;
|
||||
in {
|
||||
imports = [ nix-homebrew.darwinModules.nix-homebrew ];
|
||||
|
||||
homebrew = enabled;
|
||||
|
||||
nix-homebrew = enabled {
|
||||
user = config.system.primaryUser;
|
||||
|
||||
taps."homebrew/homebrew-core" = homebrew-core;
|
||||
taps."homebrew/homebrew-cask" = homebrew-cask;
|
||||
|
||||
mutableTaps = false;
|
||||
};
|
||||
}
|
|
@ -129,21 +129,7 @@
|
|||
}
|
||||
];
|
||||
in {
|
||||
# TODO: Install using Nix. Currently I'm doing it manually.
|
||||
|
||||
# nixpkgs.overlays = [(self: super: {
|
||||
# karabiner-elements = super.karabiner-elements.overrideAttrs (old: {
|
||||
# version = "14.13.0";
|
||||
|
||||
# src = super.fetchurl {
|
||||
# inherit (old.src) url;
|
||||
|
||||
# hash = "sha256-gmJwoht/Tfm5qMecmq1N6PSAIfWOqsvuHU8VDJY8bLw=";
|
||||
# };
|
||||
# });
|
||||
# })];
|
||||
|
||||
# services.karabiner-elements = enabled;
|
||||
homebrew.casks = [ "karabiner-elements" ];
|
||||
|
||||
home-manager.sharedModules = [{
|
||||
xdg.configFile."karabiner/karabiner.json".text = toJSON {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue