nixos-configuration/hive/titan/default.nix

37 lines
853 B
Nix
Raw Normal View History

2023-12-12 15:18:35 +00:00
{ system, stateVersion, home-manager, lib, ... }:
{
imports = lib.optional (builtins.pathExists ./do-userdata.nix) ./do-userdata.nix ++ [
2023-12-12 15:18:35 +00:00
../../digital-ocean/configuration.nix
home-manager.nixosModules.home-manager
];
2023-12-12 14:35:29 +00:00
nix.settings.experimental-features = [ "nix-command" "flakes" ];
deployment.targetHost = null;
networking.hostName = "titan";
2023-12-11 12:19:23 +00:00
services.openssh.enable = true;
programs.mosh.enable = true;
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
users.jrpotter = import ../../users/jrpotter;
# Used to pass non-default parameters to submodules.
extraSpecialArgs = { inherit system stateVersion; };
};
users.users.jrpotter = {
isNormalUser = true;
extraGroups = [
"docker"
"networkmanager"
"wheel"
];
};
system.stateVersion = stateVersion;
}