-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Still working on massive update [WIP]
- Loading branch information
1 parent
3beebad
commit 5a914f4
Showing
50 changed files
with
861 additions
and
408 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
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,4 +1,8 @@ | ||
{inputs, cell}@commonArgs: | ||
{ inputs, cell, }@commonArgs: | ||
inputs.omnibusStd.mkBlocks.pops commonArgs { | ||
packages = {src = ./packages; }; | ||
#configs = {src = ./configs; }; | ||
#devshellProfiles = {src = ./devshellProfiles; }; | ||
#nixosProfiles = {src = ./nixosProfiles; }; | ||
packages = { src = ./packages; }; | ||
#shells = {src = ./shells; }; | ||
} |
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 @@ | ||
{inputs,cell}: cell.pops.devshellSuites.exports.default |
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,6 @@ | ||
{ inputs, config, lib, pkgs, ... }: { | ||
imports = [ | ||
inputs.cell.devshellProfiles.benchmarking | ||
inputs.cell.devshellProfiles.normalize | ||
]; | ||
} |
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 @@ | ||
{ inputs, cell, }@commonArgs: cell.pops.diskoSuites.exports.default |
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,6 @@ | ||
{ inputs, config, lib, pkgs, ... }: { | ||
imports = [ | ||
inputs.cell.diskoProfiles.btrfs-luks.nix | ||
inputs.cell.diskoProfiles.tmpfs-root | ||
]; | ||
} |
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 @@ | ||
{inputs,cell}: cell.pops.hardwareProfiles.exports.default |
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 @@ | ||
{ inputs, cell, }@commonArgs: cell.pops.hardwareSuites.exports.default |
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,3 @@ | ||
{ inputs, config, lib, pkgs, ... }: { | ||
imports = [ inputs.cell.hardwareProfiles.disk-nvme ]; | ||
} |
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,10 +1 @@ | ||
{ inputs, cell, }@commonArgs: | ||
cell.pops.homeConfigurations.exports.default | ||
#let | ||
# inherit (inputs.haumea.lib) load loaders matchers transformers; | ||
#in | ||
# load { | ||
# src = ./homeConfigurations; | ||
# loader = loaders.verbatim; | ||
# transformer = transformers.liftDefaults; | ||
# } | ||
{inputs,cell}@commonArgs: cell.pops.homeConfigurations.exports.default |
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,13 @@ | ||
{ inputs, cell, }@commonArgs: | ||
let | ||
inherit (inputs.home-manager.lib) homeManagerConfiguration; | ||
user = builtins.toString ./.; | ||
in | ||
homeManagerConfiguration { | ||
pkgs = inputs.nixpkgs; | ||
modules = [ | ||
inputs.cells.hive.homeSuites.developer-default | ||
(inputs.self + /users/${user}) | ||
]; | ||
extraSpecialArgs = { inherit inputs cell user; }; | ||
} |
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,9 +1 @@ | ||
{ inputs, cell, }: cell.pops.homeModules.exports.default | ||
#let | ||
# inherit (inputs.haumea.lib) load loaders matchers transformers; | ||
#in | ||
# load { | ||
# src = ./homeModules; | ||
# loader = loaders.verbatim; | ||
# transformer = transformers.liftDefaults; | ||
# } | ||
{ inputs, cell, }@commonArgs: cell.pops.homeModules.exports.default |
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,22 @@ | ||
{ config, lib, pkgs, ... }@args: | ||
let | ||
inherit (args) config lib; | ||
inherit (lib) concatStringsSep mkEnableOption mkIf; | ||
cfg = config.debug; | ||
in | ||
{ | ||
imports = [ ]; | ||
|
||
options.debug = { enable = mkEnableOption "NixOS Debugging"; }; | ||
|
||
config = mkIf cfg.enable { | ||
xdg.configFile = { | ||
# TODO: Figure out how to pretty-print tree of attrs. | ||
# TODO: Figure out how to restrict attrset depth. | ||
"nix/debug/module-args.txt".text = | ||
concatStringsSep "\n" (builtins.attrNames args); | ||
"nix/debug/flake-inputs.txt".text = | ||
concatStringsSep "\n" (builtins.attrNames args.inputs); | ||
}; | ||
}; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,79 +1,94 @@ | ||
{config, lib, pkgs, prefix ? false, ...}: | ||
{ config, lib, pkgs, prefix ? false, ... }: | ||
# | ||
# https://github.com/TaKO8Ki/awesome-alternatives-in-rust | ||
# https://gist.github.com/sts10/daadbc2f403bdffad1b6d33aff016c0a | ||
# https://lib.rs/command-line-utilities | ||
# | ||
let | ||
swap-util = gu: ru: { home.shellAliases = { | ||
${gu} = lib.getExe pkgs.${ru}); # Unprefixed set to rust version | ||
rs-${gu} = lib.getExe pkgs.${ru}; # Prefixed alias of rust util | ||
gnu-${gu} = lib.getExe' pkgs.coreutils-prefixed gu; # Prefixes old coreutil | ||
}; }; | ||
util-swap = gu: ru: let inherit (lib.attrsets) nameValuePair; in [ | ||
(nameValuePair gu (lib.getExe ru)) | ||
(nameValuePair "gnu-${gu}" (lib.getExe' pkgs.coreutils-prefixed gu)) | ||
(nameValuePair "rs-${gu}" (lib.getExe ru)) | ||
]; | ||
|
||
swap-util = gu: ru: { | ||
home.shellAliases = { | ||
"${gu}" = lib.getExe pkgs.${ru}; # Unprefixed set to rust version | ||
"rs-${gu}" = lib.getExe pkgs.${ru}; # Prefixed alias of rust util | ||
"gnu-${gu}" = | ||
lib.getExe' pkgs.coreutils-prefixed gu; # Prefixes old coreutil | ||
}; | ||
}; | ||
util-swap = gu: ru: | ||
let inherit (lib.attrsets) nameValuePair; | ||
in [ | ||
(nameValuePair gu (lib.getExe ru)) | ||
(nameValuePair "gnu-${gu}" (lib.getExe' pkgs.coreutils-prefixed gu)) | ||
(nameValuePair "rs-${gu}" (lib.getExe ru)) | ||
]; | ||
in | ||
{ | ||
home = { | ||
packages = [ | ||
pkgs.dog # DNS client | ||
pkgs.fselect # SQL-like queries for files. | ||
pkgs.dog # DNS client | ||
pkgs.fselect # SQL-like queries for files. | ||
pkgs.git-cliff # Changelog generator following Conventional Commit spec | ||
pkgs.gsv # CSV tool | ||
pkgs.hexyl # Hex viewer | ||
pkgs.htmlq # jq for HTML | ||
pkgs.gsv # CSV tool | ||
pkgs.hexyl # Hex viewer | ||
pkgs.htmlq # jq for HTML | ||
pkgs.miniserve # Webserver | ||
pkgs.monolith # Webpage saver to single HTML file | ||
pkgs.pastel # Gen, analyze, convert, & manip colors | ||
pkgs.pipr # Interactive pipe viewer | ||
pkgs.skim # Fuzzy finder | ||
pkgs.topgrade # Update everything | ||
pkgs.xh # HTTP request util | ||
] ++ lib.optional !prefix pkgs.coreutils-prefixed # Prefix GNU coreutils if uutils w/ no prefix | ||
++ lib.optional !prefix pkgs.uutils-coreutils-noprefix # No prefix uutils | ||
++ lib.optional prefix pkgs.uutils-coreutils # Prefixed uutils | ||
pkgs.monolith # Webpage saver to single HTML file | ||
pkgs.pastel # Gen, analyze, convert, & manip colors | ||
pkgs.pipr # Interactive pipe viewer | ||
pkgs.skim # Fuzzy finder | ||
pkgs.topgrade # Update everything | ||
pkgs.xh # HTTP request util | ||
] ++ (if prefix then | ||
[ pkgs.uutils-coreutils ] | ||
else [ | ||
pkgs.uutils-coreutils-noprefix | ||
pkgs.coreutils-prefixed | ||
]) | ||
#++ lib.optional !prefix pkgs.coreutils-prefixed # Prefix GNU coreutils if uutils w/ no prefix | ||
#++ lib.optional !prefix pkgs.uutils-coreutils-noprefix # No prefix uutils | ||
#++ lib.optional prefix pkgs.uutils-coreutils # Prefixed uutils | ||
; | ||
shellAliases = with lib.attrsets; mapAttrs' (n: v: nameValuePair "rs-${n}" (b v)) { | ||
awk = pkgs.frawk; | ||
bot = pkgs.bottom; | ||
cp = pkgs.xcp; #cp = uutil "cp" "--progress"; | ||
cut = pkgs.hck; | ||
df = pkgs.lfs; | ||
delt = pkgs.delta; # Really nice diff util | ||
diff = pkgs.difftastic; # Also really nice diff util | ||
ducttape = pkgs.dt; # Duct tape for your unix pipelines # TODO: Make aliases w this | ||
du = pkgs.du-dust; gnu-du#pkgs.du-tree; | ||
dupes = pkgs.fclones; #pkgs.fclones-gui; | ||
http = pkgs.xh; | ||
ps = pkgs.procs; | ||
refact = pkgs.fastmod; | ||
rm = [ pkgs.rip "--graveyard ${config.xdg.dataHome}/Trash" ]; | ||
rn = pkgs.rnr; | ||
sed = pkgs.sad; #pkgs.sd; | ||
sysctl = pkgs.systeroid; # More powerful sysctl tool | ||
system-info = pkgs.macchina; # Like neofetch but in Rust | ||
time = pkgs.hyperfine; # Benchmark util | ||
top = pkgs.bottom; | ||
uniq = pkgs.huniq; | ||
watche = pkgs.watchexec; | ||
xargs = pkgs.rargs; | ||
#tmux = pkgs.zellij; | ||
shellAliases = with lib.attrsets; | ||
mapAttrs' (n: v: nameValuePair "rs-${n}" (b v)) | ||
{ | ||
awk = pkgs.frawk; | ||
bot = pkgs.bottom; | ||
cp = pkgs.xcp; # cp = uutil "cp" "--progress"; | ||
cut = pkgs.hck; | ||
df = pkgs.lfs; | ||
delt = pkgs.delta; # Really nice diff util | ||
diff = pkgs.difftastic; # Also really nice diff util | ||
ducttape = | ||
pkgs.dt; # Duct tape for your unix pipelines # TODO: Make aliases w this | ||
du = pkgs.du-dust; | ||
#gnu-du = #pkgs.du-tree; | ||
dupes = pkgs.fclones; # pkgs.fclones-gui; | ||
http = pkgs.xh; | ||
ps = pkgs.procs; | ||
refact = pkgs.fastmod; | ||
rm = [ pkgs.rip "--graveyard ${config.xdg.dataHome}/Trash" ]; | ||
rn = pkgs.rnr; | ||
sed = pkgs.sad; # pkgs.sd; | ||
sysctl = pkgs.systeroid; # More powerful sysctl tool | ||
system-info = pkgs.macchina; # Like neofetch but in Rust | ||
time = pkgs.hyperfine; # Benchmark util | ||
top = pkgs.bottom; | ||
uniq = pkgs.huniq; | ||
watche = pkgs.watchexec; | ||
xargs = pkgs.rargs; | ||
#tmux = pkgs.zellij; | ||
|
||
# Count lines of code & show stats | ||
loc = pkgs.tokei; | ||
} // { | ||
# Count lines of code & show stats | ||
loc = pkgs.tokei; | ||
} // { | ||
# Move in Rust w/ progress bar | ||
mv = (lib.getExe' pkgs.uutils-coreutils "mv") "--progress"; | ||
|
||
# Move in Rust w/ progress bar | ||
mv = (lib.getExe' pkgs.uutils-coreutils "mv") "--progress"; | ||
|
||
# skim - Interactive Grep | ||
# https://github.com/lotabout/skim | ||
# TODO: Move skim to separate config | ||
rgi = "${lib.getExe pkgs.skim} --ansi -i -c '${lib.getExe config.programs.ripgrep.package} --color=always --line-number {}'"; | ||
}; | ||
# skim - Interactive Grep | ||
# https://github.com/lotabout/skim | ||
# TODO: Move skim to separate config | ||
rgi = "${lib.getExe pkgs.skim} --ansi -i -c '${ | ||
lib.getExe config.programs.ripgrep.package | ||
} --color=always --line-number {}'"; | ||
}; | ||
}; | ||
} |
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
Oops, something went wrong.