2024-06-27 00:56:27 -04:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
self,
|
|
|
|
...
|
|
|
|
}: let
|
2024-11-18 12:30:54 -05:00
|
|
|
inherit (config.vars) mainUser;
|
2024-01-09 13:13:04 -05:00
|
|
|
in {
|
2024-07-14 22:59:33 -04:00
|
|
|
# ------------------------------------------------
|
|
|
|
# Imports
|
|
|
|
# ------------------------------------------------
|
2023-10-15 23:12:19 -04:00
|
|
|
imports = [
|
|
|
|
./hardware-configuration.nix
|
|
|
|
|
2024-09-05 08:17:23 -04:00
|
|
|
./modules
|
2024-06-27 00:56:27 -04:00
|
|
|
|
|
|
|
self.nixosModules.desktop
|
2024-08-02 22:32:29 -04:00
|
|
|
self.nixosModules.kmscon
|
|
|
|
self.nixosModules.server
|
2023-10-15 23:12:19 -04:00
|
|
|
];
|
|
|
|
|
2024-07-14 22:59:33 -04:00
|
|
|
# State Version: DO NOT CHANGE
|
|
|
|
system.stateVersion = "23.11";
|
|
|
|
|
|
|
|
# ------------------------------------------------
|
|
|
|
# User Settings
|
|
|
|
# ------------------------------------------------
|
2024-11-22 17:58:24 -05:00
|
|
|
vars.mainUser = "matt";
|
2024-06-27 00:56:27 -04:00
|
|
|
|
2024-01-09 13:13:04 -05:00
|
|
|
users.users.${mainUser} = {
|
2023-10-18 14:00:52 -04:00
|
|
|
isNormalUser = true;
|
|
|
|
extraGroups = [
|
|
|
|
"wheel"
|
|
|
|
"input"
|
|
|
|
"uinput"
|
|
|
|
"adm"
|
|
|
|
"video"
|
|
|
|
"libvirtd"
|
2024-11-22 18:51:49 -05:00
|
|
|
"adbusers"
|
2023-10-18 14:00:52 -04:00
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2024-11-22 18:51:49 -05:00
|
|
|
programs.adb.enable = true;
|
|
|
|
|
2023-10-15 23:12:19 -04:00
|
|
|
networking = {
|
2024-11-18 12:30:54 -05:00
|
|
|
hostName = "binto";
|
2023-10-15 23:12:19 -04:00
|
|
|
networkmanager.enable = true;
|
|
|
|
firewall.enable = false;
|
|
|
|
};
|
|
|
|
|
2023-11-23 01:15:32 -05:00
|
|
|
time.timeZone = "America/Montreal";
|
2023-10-17 18:45:08 -04:00
|
|
|
|
2024-07-14 22:59:33 -04:00
|
|
|
# ------------------------------------------------
|
|
|
|
# `Self` Modules configuration
|
|
|
|
# ------------------------------------------------
|
|
|
|
roles.desktop = {
|
|
|
|
user = mainUser;
|
|
|
|
|
2024-11-13 19:39:01 -05:00
|
|
|
ags.enable = true;
|
2024-07-14 22:59:33 -04:00
|
|
|
mainMonitor = "desc:GIGA-BYTE TECHNOLOGY CO. LTD. G27QC 0x00000B1D";
|
|
|
|
displayManager.duplicateScreen = false;
|
|
|
|
|
|
|
|
fontSize = 12.5;
|
|
|
|
};
|
|
|
|
|
2024-08-02 22:32:29 -04:00
|
|
|
roles.server = {
|
|
|
|
user = mainUser;
|
|
|
|
tailscale.enable = true;
|
|
|
|
sshd.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
services.kmscon.enable = true;
|
2024-11-22 13:33:05 -05:00
|
|
|
|
|
|
|
home-manager.users.${mainUser} = {
|
|
|
|
imports = [
|
|
|
|
self.homeManagerModules.firefox
|
2024-11-22 17:58:24 -05:00
|
|
|
self.homeManagerModules.neovim
|
|
|
|
self.homeManagerModules.shell
|
2024-11-22 13:33:05 -05:00
|
|
|
];
|
|
|
|
|
2024-11-22 17:58:24 -05:00
|
|
|
programs = {
|
|
|
|
bash = {
|
|
|
|
enable = true;
|
|
|
|
promptMainColor = "purple";
|
|
|
|
};
|
|
|
|
|
|
|
|
neovim = {
|
|
|
|
enable = true;
|
|
|
|
enableIde = true;
|
|
|
|
user = mainUser;
|
|
|
|
};
|
2024-11-22 13:33:05 -05:00
|
|
|
};
|
|
|
|
};
|
2023-10-15 23:12:19 -04:00
|
|
|
}
|