Skip to content

Commit

Permalink
feat(nix): finally working darwin config
Browse files Browse the repository at this point in the history
  • Loading branch information
sbulav committed Feb 19, 2024
1 parent e7dab69 commit 6535462
Show file tree
Hide file tree
Showing 34 changed files with 1,759 additions and 16 deletions.
42 changes: 42 additions & 0 deletions nix/homes/aarch64-darwin/sab@mbp13/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
lib,
pkgs,
config,
osConfig ? {},
format ? "unknown",
...
}:
with lib.custom; {
custom = {
user = {
enable = true;
name = config.snowfallorg.user.name;
};

cli-apps = {
# zsh = enabled;
# tmux = enabled;
home-manager = enabled;
atuin = enabled;
neovim = enabled;
yazi = enabled;
};

tools = {
git = enabled;
bat = enabled;
# direnv = enabled;
};
desktop = {
addons = {
wezterm = enabled;
};
};
};

home.sessionPath = [
"$HOME/bin"
];

home.stateVersion = "23.11";
}
30 changes: 30 additions & 0 deletions nix/modules/darwin/cli-apps/lf/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
lib,
config,
pkgs,
...
}:
with lib;
with lib.custom; let
cfg = config.custom.cli-apps.lf;
in {
options.custom.cli-apps.lf = {
enable = mkEnableOption "lf";
};

config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [
lf
];
custom.home.file.".config/lf/lfrc".source = ./lfrc;
custom.home.file.".config/lf/icons".source = ./icons;
custom.home.file.".config/lf/lf_kitty_clean" = {
source = ./lf_kitty_clean;
executable = true;
};
custom.home.file.".config/lf/lf_kitty_preview" = {
source = ./lf_kitty_preview;
executable = true;
};
};
}
Loading

0 comments on commit 6535462

Please sign in to comment.