mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-03-07 18:34:09 -05:00
make slimmed down handler user for HandlerOne migration
This commit is contained in:
parent
a43506f960
commit
662abbedb5
6 changed files with 184 additions and 0 deletions
47
home/handler/common/core/default.nix
Normal file
47
home/handler/common/core/default.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue