home-manager/programs/sesh: remove
Some checks failed
Check flake outputs / check-outputs (push) Has been cancelled
Publish every Git push to master to FlakeHub / flakehub-publish (push) Has been cancelled
Build devcontainers / build-devcontainers (push) Has been cancelled
Cache outputs / build-custom-packages (push) Has been cancelled
Build personalized bootstrap ISO / build-iso (x86_64-linux) (push) Has been cancelled
Build project site / build (push) Has been cancelled
Build project site / deploy (push) Has been cancelled
Update flake inputs / update (push) Has been cancelled
Update Firefox addons / update-firefox-addons (push) Has been cancelled

Available from upstream and has things that I want anyways.
This commit is contained in:
Gabriel Arazas 2025-04-15 17:09:42 +08:00
parent e04471a15c
commit 17d11bd8ae
No known key found for this signature in database
GPG Key ID: 62104B43D00AA360
2 changed files with 0 additions and 63 deletions

View File

@ -6,7 +6,6 @@
./programs/borgmatic.nix
./programs/diceware.nix
./programs/nushell.nix
./programs/sesh.nix
./programs/python.nix
./services/archivebox.nix
./services/borgbackup.nix

View File

@ -1,62 +0,0 @@
{ config, lib, pkgs, ... }:
let
cfg = config.programs.sesh;
settingsFormat = pkgs.formats.toml { };
in
{
# TODO: Add tmux integrations.
options.programs.sesh = {
enable = lib.mkEnableOption "sesh, a smart session manager";
package = lib.mkPackageOption pkgs "sesh" { };
settings = lib.mkOption {
type = settingsFormat.type;
default = { };
description = ''
Program settings to be generated at
{file}`$XDG_CONFIG_HOME/sesh/sesh.toml`.
'';
example = lib.literalExpression ''
{
default_session = {
startup_command = "nvim -c ':Telescope find_files'";
preview_command = "eza --all --git --icons --color=always {}";
};
session = [
{
name = "Downloads";
path = config.xdg.userDirs.downloads;
startup_command = "ls";
}
{
name = "tmux config";
path = "~/c/dotfiles/tmux_config";
startup_command = "nvim tmux.conf";
preview_command = "bat --color=always ~/c/dotfiles/.config/tmux/tmux.conf";
}
];
}
'';
};
};
config = lib.mkIf cfg.enable (lib.mkMerge [
{
warnings = lib.optionals (!config.programs.zoxide.enable || !config.programs.fzf.enable) ''
You haven't enabled Zoxide nor fzf which is recommended to use alongside sesh.
'';
home.packages = [ cfg.package ];
}
(lib.mkIf (cfg.settings != { }) {
xdg.configFile."sesh/sesh.toml".source =
settingsFormat.generate "sesh-user-settings" cfg.settings;
})
]);
}