mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 10:58:02 +00:00
Gabriel Arazas
9b7cc8a850
We now have a "proper" profiles modules ala-nixpkgs so we'll have to move these to make it less confusing.
45 lines
1.0 KiB
Nix
45 lines
1.0 KiB
Nix
# My user shell of choice because I'm not a hipster.
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
let
|
|
userCfg = config.users.foo-dogsquared;
|
|
cfg = userCfg.programs.shell;
|
|
in
|
|
{
|
|
options.users.foo-dogsquared.programs.shell.enable =
|
|
lib.mkEnableOption "configuration of foo-dogsquared's shell of choice and its toolbelt";
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
suites.dev.shell.enable = lib.mkDefault true;
|
|
|
|
programs.bash = {
|
|
enable = true;
|
|
historyControl = [ "erasedups" "ignoredups" "ignorespace" ];
|
|
historyIgnore = [
|
|
"cd"
|
|
"exit"
|
|
"lf"
|
|
"ls"
|
|
"nvim"
|
|
];
|
|
};
|
|
|
|
programs.atuin = {
|
|
enable = true;
|
|
settings = {
|
|
auto_sync = true;
|
|
sync_address = "http://atuin.plover.foodogsquared.one";
|
|
sync_frequency = "10m";
|
|
update_check = false;
|
|
workspaces = true;
|
|
};
|
|
};
|
|
|
|
# Set up with these variables.
|
|
systemd.user.sessionVariables.PAGER = "moar";
|
|
|
|
# Add it to the laundry list.
|
|
services.bleachbit.cleaners = [ "bash.history" ];
|
|
};
|
|
}
|