-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
32 changed files
with
1,444 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -80,7 +80,7 @@ with presets; { | |
coding.nix | ||
]; | ||
|
||
full = [ | ||
coding = [ | ||
self.default | ||
{ | ||
config.omnibus.coding = { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ lib }: | ||
list: pops: load: | ||
lib.listToAttrs ( | ||
map | ||
(name: { | ||
inherit name; | ||
value = | ||
lib.mapAttrs | ||
(n: v: if v ? addLoadExtender then v.addLoadExtender (load name n v) else v) | ||
pops; | ||
}) | ||
list | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ lib }: | ||
pops: load: | ||
lib.mapAttrsRecursiveCond ((as: !(as ? "addLoadExtender"))) | ||
(n: v: v.addLoadExtender (load n v)) | ||
pops |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ lib }: | ||
pops: | ||
lib.mapAttrsRecursiveCond ((as: !(as ? "layouts"))) (_: v: v.layouts or v) pops | ||
lib.mapAttrsRecursiveCond ((as: !(as ? "layouts"))) (_: v: v.layouts) pops |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,28 @@ | ||
{ lib }: | ||
pops: | ||
let | ||
in | ||
# mapAttrsRecursiveCond' = | ||
# cond: f: set: | ||
# let | ||
# recurse = | ||
# path: set: | ||
# let | ||
# g = | ||
# name: value: | ||
# if lib.isAttrs value && cond value then | ||
# { ${name} = recurse (path ++ [ name ]) value; } | ||
# else | ||
# f (path ++ [ name ]) name value; | ||
# in | ||
# mapAttrs'' g set; | ||
# in | ||
# recurse [ ] set; | ||
# mapAttrs'' = | ||
# f: set: | ||
# lib.foldl' (a: b: a // b) { } ( | ||
# map (attr: f attr set.${attr}) (lib.attrNames set) | ||
# ); | ||
lib.mapAttrsRecursiveCond ((as: !(as ? "layouts" && as.layouts ? "default"))) | ||
(_: v: v.layouts.default or v) | ||
pops |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
root, | ||
self, | ||
super, | ||
}: | ||
let | ||
presets = super.presets; | ||
in | ||
with presets; { | ||
default = [ | ||
bootstrap | ||
{ omnibus.bootstrap.minimal = true; } | ||
]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,14 @@ | ||
{ | ||
omnibus, | ||
pkgs, | ||
lib, | ||
}: | ||
let | ||
inherit (pkgs.stdenv.hostPlatform) isAarch64; | ||
brewPrefix = if isAarch64 then "/opt/homebrew" else "/usr/local"; | ||
in | ||
{ omnibus, lib }: | ||
{ | ||
imports = [ omnibus.darwinModules.homebrew ]; | ||
|
||
# credit: https://github.com/montchr/dotfield/blob/dd5e577d91b1af7f13909f5dc4343717a718ff02/darwin/profiles/core/default.nix | ||
homebrew = { | ||
enable = true; | ||
# onActivation.cleanup = "zap"; | ||
onActivation.upgrade = lib.mkDefault true; | ||
# Use the nix-darwin brewfile when invoking `brew bundle` imperatively. | ||
global.brewfile = lib.mkDefault true; | ||
global.lockfiles = lib.mkDefault false; | ||
__profiles__ = { | ||
readers = lib.mkDefault true; | ||
shell = lib.mkDefault true; | ||
containers = lib.mkDefault true; | ||
security = lib.mkDefault true; | ||
chat = lib.mkDefault true; | ||
casks.removePackagesFromProfiles = [ ]; | ||
brews.removePackagesFromProfiles = [ ]; | ||
}; | ||
}; | ||
# <https://github.com/LnL7/nix-darwin/issues/596> | ||
# | ||
# $ brew shellenv | ||
# export HOMEBREW_PREFIX="/opt/homebrew"; | ||
# export HOMEBREW_CELLAR="/opt/homebrew/Cellar"; | ||
# export HOMEBREW_REPOSITORY="/opt/homebrew"; | ||
# export PATH="/opt/homebrew/bin:/opt/homebrew/sbin${PATH+:$PATH}"; | ||
# export MANPATH="/opt/homebrew/share/man${MANPATH+:$MANPATH}:"; | ||
# export INFOPATH="/opt/homebrew/share/info:${INFOPATH:-}"; | ||
environment.systemPath = lib.mkBefore [ | ||
"${brewPrefix}/bin" | ||
"${brewPrefix}/sbin" | ||
]; | ||
environment.variables = { | ||
HOMEBREW_PREFIX = brewPrefix; | ||
HOMEBREW_CELLAR = "${brewPrefix}/Cellar"; | ||
HOMEBREW_REPOSITORY = brewPrefix; | ||
MANPATH = "${brewPrefix}/share/man:$MANPATH"; | ||
INFOPATH = "${brewPrefix}/share/info:$INFOPATH"; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
let | ||
CSIuKeyBindings = | ||
(builtins.fromTOML (builtins.readFile ./key-bindings.toml)).key_bindings; | ||
in | ||
{ | ||
options = { | ||
CSIuSupport = lib.mkEnableOption "Enable CSIu support"; | ||
}; | ||
config = mkMerge [ | ||
(mkIf (cfg.enable && pkgs.stdenv.isLinux) { | ||
programs.alacritty = { | ||
settings = { | ||
key_bindings = mkIf cfg.CSIuSupport CSIuKeyBindings; | ||
}; | ||
}; | ||
}) | ||
]; | ||
} |
Oops, something went wrong.