2024-08-18 20:59:01 -04:00
|
|
|
{
|
2024-11-22 23:15:13 -05:00
|
|
|
mainUser,
|
2024-08-18 20:59:01 -04:00
|
|
|
self,
|
|
|
|
...
|
2024-11-22 23:15:13 -05:00
|
|
|
}: {
|
2024-08-18 20:59:01 -04:00
|
|
|
# ------------------------------------------------
|
|
|
|
# Imports
|
|
|
|
# ------------------------------------------------
|
|
|
|
imports = [
|
|
|
|
./hardware-configuration.nix
|
|
|
|
|
2024-09-05 08:17:23 -04:00
|
|
|
./modules
|
2024-09-01 19:19:30 -04:00
|
|
|
|
2024-11-22 23:15:13 -05:00
|
|
|
self.nixosModules.base
|
2024-09-05 08:48:42 -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
|
|
|
|
# ------------------------------------------------
|
|
|
|
users.users.${mainUser} = {
|
|
|
|
isNormalUser = true;
|
|
|
|
extraGroups = [
|
|
|
|
"wheel"
|
|
|
|
"adm"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
networking = {
|
2024-11-18 12:30:54 -05:00
|
|
|
hostName = "homie";
|
2024-08-18 20:59:01 -04:00
|
|
|
resolvconf.enable = true;
|
|
|
|
firewall.enable = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
time.timeZone = "America/Montreal";
|
|
|
|
|
|
|
|
# ------------------------------------------------
|
|
|
|
# `Self` Modules configuration
|
|
|
|
# ------------------------------------------------
|
2024-11-22 23:15:13 -05:00
|
|
|
roles.base = {
|
|
|
|
enable = true;
|
|
|
|
user = mainUser;
|
|
|
|
};
|
|
|
|
|
2024-08-18 20:59:01 -04:00
|
|
|
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;
|
2024-11-22 13:33:05 -05:00
|
|
|
|
|
|
|
home-manager.users.${mainUser} = {
|
2024-11-22 17:58:24 -05:00
|
|
|
imports = [
|
|
|
|
self.homeManagerModules.neovim
|
|
|
|
self.homeManagerModules.shell
|
|
|
|
];
|
|
|
|
|
|
|
|
programs = {
|
|
|
|
bash = {
|
|
|
|
enable = true;
|
|
|
|
promptMainColor = "yellow";
|
|
|
|
};
|
2024-11-22 13:33:05 -05:00
|
|
|
|
2024-11-22 17:58:24 -05:00
|
|
|
neovim = {
|
|
|
|
enable = true;
|
|
|
|
enableIde = true;
|
|
|
|
user = mainUser;
|
|
|
|
};
|
2024-11-22 13:33:05 -05:00
|
|
|
};
|
|
|
|
};
|
2024-08-18 20:59:01 -04:00
|
|
|
}
|