nixos-configs/configurations/nos/default.nix

78 lines
1.4 KiB
Nix
Raw Permalink Normal View History

2024-07-24 15:49:31 -04:00
{
mainUser,
2024-07-24 15:49:31 -04:00
self,
...
}: {
# ------------------------------------------------
# Imports
# ------------------------------------------------
imports = [
2024-03-02 02:59:40 -05:00
./hardware-configuration.nix
./modules
2024-07-24 15:49:31 -04:00
self.nixosModules.base
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
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.base = {
enable = true;
user = mainUser;
};
roles.server = {
user = mainUser;
tailscale.enable = true;
sshd.enable = true;
};
services.kmscon.enable = true;
home-manager.users.${mainUser} = {
imports = [
self.homeManagerModules.neovim
self.homeManagerModules.shell
];
programs = {
bash = {
enable = true;
promptMainColor = "orange";
};
neovim = {
enable = true;
user = mainUser;
};
};
};
}