lifetracker/modules/apps/lsd/default.nix
2025-01-25 13:05:37 -08:00

40 lines
715 B
Nix

{
lib,
config,
username,
...
}:
let
cfg = config.lsd;
in
{
options = {
lsd = {
enable = lib.mkEnableOption "Enable lsd in NixOS & home-manager";
};
};
config = lib.mkIf cfg.enable {
home-manager.users.${username} = {
programs.lsd = {
enable = true;
settings = {
color = {
when = "always";
};
icons = {
when = "always";
theme = "fancy";
separator = " ";
};
layout = "oneline";
size = "short";
permission = "rwx";
hyperlink = "never";
no-symlink = false;
symlink-arrow = "";
};
};
};
};
}