nixos-configs/devices/nos/default.nix

76 lines
1.4 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
home-manager.users = rec {
root = {
imports = [
self.homeManagerModules.neovim
];
programs.neovim = {
enable = true;
enableIde = true;
user = mainUser;
};
};
${mainUser} = root;
};
# 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;
}