nixos-configs/devices/nos/default.nix

60 lines
1.1 KiB
Nix
Raw Normal View History

2024-07-24 15:49:31 -04:00
{
config,
self,
...
}: let
inherit (config.vars) mainUser;
2024-03-02 02:59:40 -05:00
in {
# ------------------------------------------------
# Imports
# ------------------------------------------------
imports = [
2024-03-02 02:59:40 -05:00
./hardware-configuration.nix
./modules
2024-07-24 15:49:31 -04:00
self.nixosModules.docker
self.nixosModules.kmscon
self.nixosModules.server
];
2024-03-02 02:59:40 -05:00
# State Version: DO NOT CHANGE
system.stateVersion = "24.05";
# ------------------------------------------------
# User Settings
# ------------------------------------------------
2024-03-02 02:59:40 -05:00
vars = {
mainUser = "matt";
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 = {
hostName = "nos";
2024-03-02 02:59:40 -05:00
resolvconf.enable = true;
firewall.enable = false;
};
time.timeZone = "America/Montreal";
# ------------------------------------------------
# `Self` Modules configuration
# ------------------------------------------------
roles.server = {
user = mainUser;
tailscale.enable = true;
sshd.enable = true;
};
services.kmscon.enable = true;
}