nixos-configs/devices/wim/default.nix

93 lines
1.7 KiB
Nix
Raw Normal View History

{
config,
self,
...
}: let
inherit (config.vars) mainUser hostName;
in {
# ------------------------------------------------
# Imports
# ------------------------------------------------
2023-09-29 23:46:34 -04:00
imports = [
./hardware-configuration.nix
2023-11-30 17:17:34 -05:00
../../modules/ags
../../modules/audio.nix
../../modules/kmscon.nix
../../modules/printer.nix
../../modules/tailscale.nix
2023-10-15 22:52:15 -04:00
./modules/security.nix
2024-07-14 19:30:28 -04:00
self.nixosModules.adb
self.nixosModules.desktop
2024-07-10 20:38:03 -04:00
self.nixosModules.plymouth
2023-09-29 23:46:34 -04:00
];
home-manager.users.${mainUser} = {
imports = [
../../home/firefox
];
# State Version: DO NOT CHANGE
home.stateVersion = "23.05";
};
# State Version: DO NOT CHANGE
system.stateVersion = "23.05";
# ------------------------------------------------
# User Settings
# ------------------------------------------------
vars = {
mainUser = "matt";
hostName = "wim";
promptMainColor = "purple";
};
users.users.${mainUser} = {
isNormalUser = true;
extraGroups = [
"wheel"
"input"
"uinput"
"adm"
"video"
"libvirtd"
];
};
networking = {
inherit hostName;
networkmanager = {
enable = true;
wifi.backend = "wpa_supplicant";
};
2023-10-15 22:52:15 -04:00
firewall.enable = false;
};
time.timeZone = "America/Montreal";
# ------------------------------------------------
# `Self` Modules configuration
# ------------------------------------------------
roles.desktop = {
user = mainUser;
mainMonitor = "eDP-1";
isLaptop = true;
isTouchscreen = true;
fontSize = 12.5;
};
programs.adb = {
enable = true;
user = mainUser;
};
boot.plymouth = {
enable = true;
theme = "dracula";
};
}