make slimmed down handler user for HandlerOne migration

This commit is contained in:
TheWanderingCrow 2026-01-28 10:31:11 -05:00
parent a43506f960
commit 662abbedb5
6 changed files with 184 additions and 0 deletions

View file

@ -0,0 +1,47 @@
{
inputs,
config,
lib,
pkgs,
hostSpec,
...
}:
let
platform = if hostSpec.isDarwin then "darwin" else "nixos";
in
{
imports = lib.flatten [
(map lib.custom.relativeToRoot [
"modules/common/host-spec.nix"
"modules/home"
])
#./${platform.nix}
./direnv.nix
./git.nix
./tmux.nix
./starship.nix
];
home.packages = builtins.attrValues {
inherit (pkgs)
screen
ouch
;
};
inherit hostSpec;
home = {
username = lib.mkDefault config.hostSpec.username;
homeDirectory = lib.mkDefault config.hostSpec.home;
stateVersion = lib.mkDefault "24.05";
sessionVariables = {
SHELL = "zsh";
TERM = "foot";
TERMINAL = "foot";
VISUAL = "nvim";
EDITOR = "nvim";
};
};
}

View file

@ -0,0 +1,17 @@
{ pkgs, ... }:
{
home.packages = builtins.attrValues {
inherit (pkgs.unstable)
devenv
;
};
programs = {
zsh.enable = true;
direnv = {
enable = true;
nix-direnv.enable = true;
enableZshIntegration = true;
enableNushellIntegration = true;
};
};
}

View file

@ -0,0 +1,32 @@
{ pkgs, ... }:
{
# programs.git = {
# enable = true;
# userName = "TheWanderingCrow";
# userEmail = "contact@wanderingcrow.net";
# extraConfig = {
# init = {
# defaultBranch = "main";
# };
# push = {
# autoSetupRemote = true;
# };
# };
# lfs = {
# enable = true;
# skipSmudge = true;
# };
# };
programs.jujutsu = {
enable = true;
package = pkgs.unstable.jujutsu;
settings = {
user = {
email = "contact@wanderingcrow.net";
name = "TheWanderingCrow";
};
ui.paginate = "never";
};
};
}

View file

@ -0,0 +1,65 @@
{ config, ... }:
{
programs.starship =
let
raisin_black = "#262932";
blood_red = "#710000";
rich_lemon = "#FDF500";
keppel = "#1AC5B0";
electric_blue = "#36EBF3";
blushing_purple = "#9370DB";
frostbite = "#E455AE";
steel_pink = "#CB1DCD";
pale_silver = "#D1C5C0";
in
{
enable = true;
enableZshIntegration = true;
enableNushellIntegration = true;
settings = {
format = "[ ](${rich_lemon})[ CrOS](bg:${rich_lemon} fg:${raisin_black})$username$hostname[ ](fg:${rich_lemon} bg:${blushing_purple})$directory[ ](fg:${blushing_purple} bg:${frostbite})[ ](fg:${frostbite} bg:${steel_pink})$nix_shell[ ](${steel_pink})";
right_format = "[ ](${rich_lemon})$time[ ](${rich_lemon})";
# Left Modules
username = {
disabled = false;
format = "[ $user]($style)";
style_user = "fg:${keppel} bg:${rich_lemon}";
style_root = "fg:${blood_red} bg:${rich_lemon}";
};
hostname = {
disabled = false;
format = "[@$hostname ]($style)";
style = "fg:${keppel} bg:${rich_lemon}";
ssh_only = false;
ssh_symbol = "";
};
directory = {
disabled = false;
format = "[ $path ]($style)";
style = "bg:${blushing_purple} fg:${raisin_black}";
truncation_length = 3;
truncation_symbol = "/";
};
git_commit.disabled = true;
git_metrics.disabled = true;
git_branch.disabled = true;
git_status.disabled = true;
nix_shell = {
disabled = false;
format = "[$symbol $name]($style)";
style = "bg:${steel_pink} fg:${electric_blue}";
symbol = "";
};
# Right Modules
time = {
disabled = false;
format = "[$time]($style)";
style = "fg:${raisin_black} bg:${rich_lemon}";
};
};
};
}

View file

@ -0,0 +1,17 @@
{
programs.tmux = {
enable = true;
keyMode = "vi";
extraConfig = ''
bind | split-window -h
bind - split-window -v
unbind '"'
unbind %
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D
'';
};
}