2024-06-27 00:56:27 -04:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
self,
|
2024-08-02 22:32:29 -04:00
|
|
|
pkgs,
|
2024-06-27 00:56:27 -04:00
|
|
|
...
|
|
|
|
}: 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-09-29 23:46:34 -04:00
|
|
|
imports = [
|
|
|
|
./hardware-configuration.nix
|
2023-10-15 17:27:57 -04:00
|
|
|
|
2024-09-05 08:17:23 -04:00
|
|
|
./modules
|
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
|
2024-07-10 20:38:03 -04:00
|
|
|
self.nixosModules.plymouth
|
2024-08-02 22:32:29 -04:00
|
|
|
self.nixosModules.server
|
2023-09-29 23:46:34 -04:00
|
|
|
];
|
2023-06-13 23:34:03 -04:00
|
|
|
|
2024-09-05 08:17:23 -04:00
|
|
|
home-manager.users.${mainUser}.imports = [
|
|
|
|
self.homeManagerModules.firefox
|
|
|
|
];
|
2024-07-14 22:59:33 -04:00
|
|
|
|
|
|
|
# State Version: DO NOT CHANGE
|
|
|
|
system.stateVersion = "23.05";
|
|
|
|
|
|
|
|
# ------------------------------------------------
|
|
|
|
# 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 = "wim";
|
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 12:31:57 -04:00
|
|
|
isNormalUser = true;
|
2023-10-18 14:00:52 -04:00
|
|
|
extraGroups = [
|
|
|
|
"wheel"
|
|
|
|
"input"
|
|
|
|
"uinput"
|
|
|
|
"adm"
|
|
|
|
"video"
|
|
|
|
"libvirtd"
|
|
|
|
];
|
2023-10-18 12:31:57 -04:00
|
|
|
};
|
|
|
|
|
2023-09-17 15:53:56 -04:00
|
|
|
networking = {
|
2024-01-09 13:13:04 -05:00
|
|
|
inherit hostName;
|
2023-10-15 13:30:21 -04:00
|
|
|
networkmanager = {
|
|
|
|
enable = true;
|
|
|
|
wifi.backend = "wpa_supplicant";
|
|
|
|
};
|
2023-10-15 22:52:15 -04:00
|
|
|
firewall.enable = false;
|
2023-09-17 15:53:56 -04:00
|
|
|
};
|
2023-06-13 23:34:03 -04:00
|
|
|
|
2023-07-02 21:03:44 -04:00
|
|
|
time.timeZone = "America/Montreal";
|
2023-06-13 23:34:03 -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 = "eDP-1";
|
|
|
|
isLaptop = true;
|
|
|
|
isTouchscreen = true;
|
|
|
|
|
|
|
|
fontSize = 12.5;
|
|
|
|
};
|
|
|
|
|
2024-08-02 22:32:29 -04:00
|
|
|
roles.server = {
|
|
|
|
user = mainUser;
|
|
|
|
tailscale.enable = true;
|
|
|
|
};
|
|
|
|
|
2024-07-14 22:59:33 -04:00
|
|
|
programs.adb = {
|
|
|
|
enable = true;
|
|
|
|
user = mainUser;
|
|
|
|
};
|
|
|
|
|
|
|
|
boot.plymouth = {
|
|
|
|
enable = true;
|
|
|
|
theme = "dracula";
|
2024-08-02 22:32:29 -04:00
|
|
|
themePackages = [
|
|
|
|
self.legacyPackages.${pkgs.system}.dracula.plymouth
|
|
|
|
];
|
2024-07-14 22:59:33 -04:00
|
|
|
};
|
2024-08-02 22:32:29 -04:00
|
|
|
|
|
|
|
services.kmscon.enable = true;
|
2023-06-13 23:34:03 -04:00
|
|
|
}
|