Skip to content

Commit

Permalink
feat(cli): add freeze
Browse files Browse the repository at this point in the history
  • Loading branch information
isabelroses committed Mar 26, 2024
1 parent 8f16047 commit d9863ae
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
42 changes: 42 additions & 0 deletions home/isabel/programs/configs/cli/freeze.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
lib,
pkgs,
osConfig,
...
}: let
json = pkgs.formats.json {};

inherit (lib) mkIf isModernShell;
in {
config = mkIf (isModernShell osConfig) {
home.packages = mkIf pkgs.stdenv.isLinux [
pkgs.freeze
];

xdg.configFile."freeze/user.json".source = json.generate "user.json" {
window = true;
theme = "catppuccin-mocha";

background = "#1e1e2e";

shadow = false;
padding = 0;
margin = 0;

line_height = 1.2;
line_numbers = true;

border = {
radius = 8;
width = 1;
color = "#313244";
};

font = {
family = "CommitMono";
size = 13;
ligatures = true;
};
};
};
}
2 changes: 2 additions & 0 deletions modules/darwin/brew/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

taps = [
"homebrew/bundle"
"charmbracelet/tap"
];

# `brew install`
Expand All @@ -32,6 +33,7 @@
"coreutils"
"openjdk"
"silicon"
"charmbracelet/tap/freeze" # capture terminal output as screenshots
];

# `brew install --cask`
Expand Down

0 comments on commit d9863ae

Please sign in to comment.