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-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-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-09-30 13:50:51 -04:00
|
|
|
self.nixosModules.docker
|
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-07-14 22:59:33 -04:00
|
|
|
# State Version: DO NOT CHANGE
|
|
|
|
system.stateVersion = "23.05";
|
|
|
|
|
|
|
|
# ------------------------------------------------
|
|
|
|
# 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 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-11-18 12:30:54 -05:00
|
|
|
hostName = "wim";
|
2023-10-15 13:30:21 -04:00
|
|
|
networkmanager = {
|
|
|
|
enable = true;
|
2024-09-25 15:07:54 -04:00
|
|
|
|
|
|
|
wifi = {
|
|
|
|
backend = "wpa_supplicant";
|
|
|
|
scanRandMacAddress = false;
|
|
|
|
};
|
2023-10-15 13:30:21 -04:00
|
|
|
};
|
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-11-13 19:39:01 -05: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 = [
|
2024-11-20 15:17:55 -05:00
|
|
|
self.scopedPackages.${pkgs.system}.dracula.plymouth
|
2024-08-02 22:32:29 -04:00
|
|
|
];
|
2024-07-14 22:59:33 -04:00
|
|
|
};
|
2024-08-02 22:32:29 -04:00
|
|
|
|
2024-09-30 13:50:51 -04:00
|
|
|
khepri.enable = true;
|
2024-08-02 22:32:29 -04:00
|
|
|
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-06-13 23:34:03 -04:00
|
|
|
}
|