mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-04-26 18:19:11 +00:00
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
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:
parent
e04471a15c
commit
17d11bd8ae
@ -6,7 +6,6 @@
|
|||||||
./programs/borgmatic.nix
|
./programs/borgmatic.nix
|
||||||
./programs/diceware.nix
|
./programs/diceware.nix
|
||||||
./programs/nushell.nix
|
./programs/nushell.nix
|
||||||
./programs/sesh.nix
|
|
||||||
./programs/python.nix
|
./programs/python.nix
|
||||||
./services/archivebox.nix
|
./services/archivebox.nix
|
||||||
./services/borgbackup.nix
|
./services/borgbackup.nix
|
||||||
|
@ -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;
|
|
||||||
})
|
|
||||||
]);
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user