2024-07-24 15:49:31 -04:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
self,
|
|
|
|
...
|
|
|
|
}: let
|
2024-03-02 02:59:40 -05:00
|
|
|
inherit (config.vars) mainUser hostName;
|
|
|
|
in {
|
2024-07-14 22:59:33 -04:00
|
|
|
# ------------------------------------------------
|
|
|
|
# Imports
|
|
|
|
# ------------------------------------------------
|
2024-02-17 20:45:06 -05:00
|
|
|
imports = [
|
2024-03-02 02:59:40 -05:00
|
|
|
./hardware-configuration.nix
|
|
|
|
|
2024-09-05 08:17:23 -04:00
|
|
|
./modules
|
2024-07-24 15:49:31 -04:00
|
|
|
|
2024-08-02 22:32:29 -04:00
|
|
|
self.nixosModules.kmscon
|
|
|
|
self.nixosModules.server
|
2024-02-17 20:45:06 -05:00
|
|
|
];
|
2024-03-02 02:59:40 -05:00
|
|
|
|
2024-07-14 22:59:33 -04:00
|
|
|
# State Version: DO NOT CHANGE
|
|
|
|
system.stateVersion = "24.05";
|
|
|
|
|
|
|
|
# ------------------------------------------------
|
|
|
|
# User Settings
|
|
|
|
# ------------------------------------------------
|
2024-03-02 02:59:40 -05:00
|
|
|
vars = {
|
|
|
|
mainUser = "matt";
|
|
|
|
hostName = "nos";
|
2024-04-01 13:05:08 -04:00
|
|
|
promptMainColor = "orange";
|
2024-03-02 02:59:40 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
users.users.${mainUser} = {
|
2024-03-11 22:25:32 -04:00
|
|
|
isNormalUser = true;
|
|
|
|
extraGroups = [
|
|
|
|
"wheel"
|
|
|
|
"adm"
|
|
|
|
"borg"
|
|
|
|
];
|
2024-03-02 02:59:40 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
networking = {
|
|
|
|
inherit hostName;
|
|
|
|
resolvconf.enable = true;
|
|
|
|
firewall.enable = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
time.timeZone = "America/Montreal";
|
2024-08-02 22:32:29 -04:00
|
|
|
|
|
|
|
# ------------------------------------------------
|
|
|
|
# `Self` Modules configuration
|
|
|
|
# ------------------------------------------------
|
|
|
|
roles.server = {
|
|
|
|
user = mainUser;
|
|
|
|
tailscale.enable = true;
|
|
|
|
sshd.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
services.kmscon.enable = true;
|
2024-02-17 20:45:06 -05:00
|
|
|
}
|