2024-06-27 00:56:27 -04:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
self,
|
|
|
|
...
|
|
|
|
}: let
|
2024-01-09 13:13:04 -05:00
|
|
|
inherit (config.vars) mainUser hostName;
|
|
|
|
in {
|
2024-07-14 22:59:33 -04:00
|
|
|
# ------------------------------------------------
|
|
|
|
# Imports
|
|
|
|
# ------------------------------------------------
|
2023-10-15 23:12:19 -04:00
|
|
|
imports = [
|
|
|
|
./hardware-configuration.nix
|
|
|
|
|
2023-11-13 00:03:28 -05:00
|
|
|
./modules/gpu-replay.nix
|
2023-10-17 19:10:54 -04:00
|
|
|
./modules/nix-gaming.nix
|
2024-06-27 00:56:27 -04:00
|
|
|
|
2024-07-14 19:30:28 -04:00
|
|
|
self.nixosModules.adb
|
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
|
|
|
home-manager.users.${mainUser} = {
|
|
|
|
imports = [
|
2024-08-02 22:32:29 -04:00
|
|
|
self.homeManagerModules.firefox
|
2024-07-14 22:59:33 -04:00
|
|
|
];
|
|
|
|
|
|
|
|
# State Version: DO NOT CHANGE
|
|
|
|
home.stateVersion = "23.11";
|
|
|
|
};
|
|
|
|
# State Version: DO NOT CHANGE
|
|
|
|
system.stateVersion = "23.11";
|
|
|
|
|
|
|
|
# ------------------------------------------------
|
|
|
|
# User Settings
|
|
|
|
# ------------------------------------------------
|
2023-12-01 14:12:33 -05:00
|
|
|
vars = {
|
2024-01-09 13:13:04 -05:00
|
|
|
mainUser = "matt";
|
2023-12-01 14:12:33 -05:00
|
|
|
hostName = "binto";
|
2024-01-24 18:39:18 -05:00
|
|
|
promptMainColor = "purple";
|
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"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2023-10-15 23:12:19 -04:00
|
|
|
networking = {
|
2024-01-09 13:13:04 -05:00
|
|
|
inherit hostName;
|
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-08-02 22:32:29 -04: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;
|
|
|
|
};
|
|
|
|
|
2024-07-14 22:59:33 -04:00
|
|
|
programs.adb = {
|
|
|
|
enable = true;
|
|
|
|
user = mainUser;
|
|
|
|
};
|
2024-08-02 22:32:29 -04:00
|
|
|
|
|
|
|
services.kmscon.enable = true;
|
2023-10-15 23:12:19 -04:00
|
|
|
}
|