2023-12-12 15:18:35 +00:00
|
|
|
{ system, stateVersion, home-manager, lib, ... }:
|
2023-12-10 22:15:42 +00:00
|
|
|
{
|
|
|
|
imports = lib.optional (builtins.pathExists ./do-userdata.nix) ./do-userdata.nix ++ [
|
2023-12-12 15:18:35 +00:00
|
|
|
../../digital-ocean/configuration.nix
|
2023-12-10 22:15:42 +00:00
|
|
|
home-manager.nixosModules.home-manager
|
|
|
|
];
|
|
|
|
|
2023-12-12 14:35:29 +00:00
|
|
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
|
|
|
|
2023-12-14 15:37:43 +00:00
|
|
|
deployment.targetHost = null;
|
2023-12-10 22:15:42 +00:00
|
|
|
|
|
|
|
networking.hostName = "titan";
|
|
|
|
|
2023-12-11 12:19:23 +00:00
|
|
|
services.openssh.enable = true;
|
|
|
|
|
|
|
|
programs.mosh.enable = true;
|
|
|
|
|
2023-12-10 22:15:42 +00:00
|
|
|
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;
|
|
|
|
}
|