add natsirt host

This commit is contained in:
TheWanderingCrow 2025-07-06 09:52:01 -04:00
parent 0707dd7f72
commit ac44d78860
4 changed files with 192 additions and 0 deletions

5
home/natsirt/Natsirt.nix Normal file
View file

@ -0,0 +1,5 @@
{...}: {
imports = [
common/core
];
}

View file

@ -0,0 +1,36 @@
{
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}
];
inherit hostSpec;
home = {
username = lib.mkDefault config.hostSpec.username;
homeDirectory = lib.mkDefault config.hostSpec.home;
stateVersion = lib.mkDefault "24.05";
sessionVariables = {
SHELL = "zsh";
TERM = "konsole";
TERMINAL = "konsole";
VISUAL = "nvim";
EDITOR = "nvim";
};
};
}