2024-09-07 21:22:12 -05:00
|
|
|
{
|
2024-12-12 19:41:58 -06:00
|
|
|
config,
|
2024-09-07 21:22:12 -05:00
|
|
|
pkgs,
|
2024-09-07 22:20:24 -05:00
|
|
|
userName,
|
2024-09-07 21:22:12 -05:00
|
|
|
...
|
2024-12-15 21:37:43 -06:00
|
|
|
}: {
|
2024-12-12 19:41:58 -06:00
|
|
|
imports = [
|
|
|
|
../../apps/flatpak.nix
|
2024-12-15 17:22:36 -06:00
|
|
|
../../pwrMgmt
|
2024-12-12 19:41:58 -06:00
|
|
|
../../sound/pipewire.nix
|
|
|
|
../../sound/shairport.nix
|
|
|
|
../../virtualization/podman.nix
|
|
|
|
../../virtualization/hardware.nix
|
|
|
|
(config.nixosModules.gpuHardware {gpuVendor = "amd";})
|
|
|
|
];
|
|
|
|
|
2024-09-07 21:22:12 -05:00
|
|
|
# Enable flakes for NixOS
|
|
|
|
nix.settings.experimental-features = ["nix-command" "flakes"];
|
|
|
|
|
|
|
|
# Utilize systemd-boot
|
|
|
|
boot.loader.systemd-boot.enable = true;
|
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
|
|
|
|
# Enable Bluetooth if present
|
|
|
|
hardware.bluetooth.enable = true;
|
|
|
|
|
|
|
|
# Set your timezone
|
2024-12-15 21:37:43 -06:00
|
|
|
time.timeZone = "America/Detroit";
|
2024-09-07 21:22:12 -05:00
|
|
|
|
|
|
|
# Enable touchpad
|
|
|
|
services.libinput.enable = true;
|
|
|
|
|
|
|
|
# Install packages to be installed system-wide
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
vim
|
|
|
|
neovim
|
|
|
|
git
|
|
|
|
wireguard-tools
|
2024-09-08 15:44:14 -05:00
|
|
|
grim
|
|
|
|
slurp
|
|
|
|
playerctl
|
|
|
|
light
|
|
|
|
brightnessctl
|
2024-09-09 08:27:52 -05:00
|
|
|
firefox
|
2024-09-08 15:44:14 -05:00
|
|
|
wttrbar
|
|
|
|
cliphist
|
2024-10-30 21:41:37 -05:00
|
|
|
patchelf
|
2024-09-07 21:22:12 -05:00
|
|
|
];
|
|
|
|
|
|
|
|
# Set the EDITOR global environment variable to neovim
|
|
|
|
environment.variables.EDITOR = "nvim";
|
|
|
|
|
|
|
|
# Enable OpenSSH
|
|
|
|
services.openssh.enable = true;
|
|
|
|
|
|
|
|
# Enable keyring
|
|
|
|
services.gnome.gnome-keyring.enable = true;
|
|
|
|
|
|
|
|
# Enable GnuPG
|
|
|
|
programs.gnupg.agent = {
|
|
|
|
enable = true;
|
|
|
|
enableSSHSupport = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
# Enable SUID wrappers (some programs need them)
|
|
|
|
programs.mtr.enable = true;
|
|
|
|
|
|
|
|
# Enable Polkit
|
|
|
|
security.polkit.enable = true;
|
|
|
|
|
2024-12-15 17:22:36 -06:00
|
|
|
# Gaming module (see ../../apps/gaming.nix)
|
|
|
|
customGaming = {
|
|
|
|
steam = {
|
|
|
|
enable = true;
|
|
|
|
firewall = {
|
|
|
|
remotePlay = true;
|
|
|
|
localNetworkGameTransfers = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
gamemode.enable = true;
|
|
|
|
gamescope.enable = true;
|
|
|
|
lutris = {
|
|
|
|
enable = true;
|
|
|
|
wine = {
|
|
|
|
enable = true;
|
|
|
|
package = pkgs.wine;
|
|
|
|
};
|
|
|
|
compatibility = {
|
|
|
|
protonSupport = true;
|
|
|
|
extraTools = with pkgs; [
|
|
|
|
proton-ge-custom
|
|
|
|
];
|
|
|
|
};
|
|
|
|
extraPackages = with pkgs; [
|
|
|
|
gamemode
|
|
|
|
mangohud
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
minecraft.enable = true;
|
2024-09-07 21:22:12 -05:00
|
|
|
};
|
|
|
|
|
2024-12-15 17:22:36 -06:00
|
|
|
# Power management (see ../../pwrMgmt/default.nix)
|
|
|
|
customPowerManagement = {
|
2024-09-07 21:22:12 -05:00
|
|
|
enable = true;
|
2024-12-15 17:22:36 -06:00
|
|
|
cpuFreqGovernor = "performance";
|
|
|
|
powertop.enable = false;
|
2024-09-07 21:22:12 -05:00
|
|
|
};
|
2024-09-07 22:20:24 -05:00
|
|
|
|
2024-12-18 19:09:08 -06:00
|
|
|
containers.podman = {
|
|
|
|
enable = true;
|
|
|
|
extraPackages = with pkgs; [
|
|
|
|
docker-credential-helpers
|
|
|
|
toolbox
|
|
|
|
cosign
|
|
|
|
crane
|
|
|
|
podman-tui
|
|
|
|
podman-desktop
|
|
|
|
];
|
2024-12-15 17:22:36 -06:00
|
|
|
};
|
2024-09-14 14:30:50 -05:00
|
|
|
|
2024-12-15 17:22:36 -06:00
|
|
|
customNetworking = {
|
|
|
|
firewall.enable = true;
|
|
|
|
networkManager.enable = true;
|
|
|
|
};
|
2024-09-09 08:27:52 -05:00
|
|
|
|
2024-11-22 23:05:59 -06:00
|
|
|
# Enable dconf
|
|
|
|
programs.dconf.enable = true;
|
|
|
|
|
2024-09-07 22:20:24 -05:00
|
|
|
# Add username to groups "wheel" and "video" - more may be added here later
|
2024-10-30 21:41:37 -05:00
|
|
|
users.users.${userName}.extraGroups = ["wheel" "video" "gamemode" "podman" "network"];
|
2024-09-08 15:44:14 -05:00
|
|
|
|
|
|
|
# XDG stuff
|
|
|
|
xdg = {
|
|
|
|
portal = {
|
|
|
|
enable = true;
|
2024-09-14 14:30:50 -05:00
|
|
|
wlr.enable = true;
|
2024-10-30 21:41:37 -05:00
|
|
|
config = {
|
|
|
|
common = {
|
|
|
|
default = [
|
|
|
|
"wlr"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
2024-09-14 14:30:50 -05:00
|
|
|
xdgOpenUsePortal = true;
|
2024-09-08 15:44:14 -05:00
|
|
|
extraPortals = with pkgs; [
|
|
|
|
xdg-desktop-portal-wlr
|
|
|
|
xdg-desktop-portal-gtk
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
# Firewall stuff not allowed in common user and network creation
|
|
|
|
networking.firewall.enable = true; # VERY important, do not touch
|
2024-11-03 21:44:23 -06:00
|
|
|
networking.firewall.allowedTCPPorts = [];
|
|
|
|
networking.firewall.allowedUDPPorts = [];
|
2024-09-08 15:44:14 -05:00
|
|
|
networking.networkmanager.enable = true; # Linux tool for managing network connections
|
|
|
|
|
2024-09-14 14:30:50 -05:00
|
|
|
system.stateVersion = "24.05";
|
2024-09-07 21:22:12 -05:00
|
|
|
}
|