nixos-configs/devices/nos/default.nix

68 lines
1.4 KiB
Nix
Raw Normal View History

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 {
# ------------------------------------------------
# Imports
# ------------------------------------------------
imports = [
2024-03-02 02:59:40 -05:00
./hardware-configuration.nix
2024-07-24 15:49:31 -04:00
./modules/docker
./modules/jellyfin
./modules/llm.nix
2024-02-18 23:01:59 -05:00
./modules/mergerfs.nix
./modules/qbittorrent
2024-03-02 02:59:40 -05:00
./modules/snapraid.nix
2024-05-18 00:04:26 -04:00
./modules/subtitles
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";
home-manager.users.${mainUser}.home.stateVersion = "24.05";
# ------------------------------------------------
# User Settings
# ------------------------------------------------
2024-03-02 02:59:40 -05:00
vars = {
mainUser = "matt";
hostName = "nos";
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";
# ------------------------------------------------
# `Self` Modules configuration
# ------------------------------------------------
roles.server = {
user = mainUser;
tailscale.enable = true;
sshd.enable = true;
};
services.kmscon.enable = true;
}