nixos-configs/devices/homie/default.nix

61 lines
1.2 KiB
Nix
Raw Permalink Normal View History

2024-08-18 20:59:01 -04:00
{
config,
self,
...
}: let
inherit (config.vars) mainUser hostName;
in {
# ------------------------------------------------
# Imports
# ------------------------------------------------
imports = [
./hardware-configuration.nix
./modules
2024-09-01 19:19:30 -04:00
self.nixosModules.docker
2024-08-18 20:59:01 -04:00
self.nixosModules.kmscon
self.nixosModules.server
];
# State Version: DO NOT CHANGE
system.stateVersion = "24.11";
# ------------------------------------------------
# User Settings
# ------------------------------------------------
vars = {
mainUser = "matt";
hostName = "homie";
promptMainColor = "yellow";
};
users.users.${mainUser} = {
isNormalUser = true;
extraGroups = [
"wheel"
"adm"
];
};
networking = {
inherit hostName;
resolvconf.enable = true;
firewall.enable = false;
};
time.timeZone = "America/Montreal";
# ------------------------------------------------
# `Self` Modules configuration
# ------------------------------------------------
roles.server = {
user = mainUser;
tailscale.enable = true;
sshd.enable = true;
};
2024-10-05 12:38:13 -04:00
khepri.enable = true;
2024-08-18 20:59:01 -04:00
services.kmscon.enable = true;
}