2024-09-07 21:22:12 -05:00
|
|
|
{
|
2024-12-12 19:41:58 -06:00
|
|
|
config,
|
2024-12-23 14:35:36 -06:00
|
|
|
lib,
|
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-23 14:35:36 -06:00
|
|
|
}:
|
|
|
|
let flatpakPackages = [
|
|
|
|
"com.github.tchx84.Flatseal"
|
|
|
|
"com.slack.Slack"
|
|
|
|
"info.beyondallreason.bar"
|
|
|
|
"io.dbeaver.DBeaverCommunity"
|
|
|
|
"io.openrct2.OpenRCT2"
|
|
|
|
"md.obsidian.Obsidian"
|
|
|
|
"org.prismlauncher.PrismLauncher"
|
|
|
|
"sh.cider.Cider"
|
|
|
|
];
|
|
|
|
in {
|
2024-12-12 19:41:58 -06:00
|
|
|
imports = [
|
2024-12-23 14:35:36 -06:00
|
|
|
(import ../../apps/flatpak.nix {
|
|
|
|
inherit lib pkgs flatpakPackages;
|
|
|
|
})
|
|
|
|
../../apps/gaming.nix
|
|
|
|
../../graphics
|
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
|
|
|
|
];
|
|
|
|
|
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-23 14:35:36 -06:00
|
|
|
graphics = {
|
|
|
|
enable = true;
|
|
|
|
gpuVendor = "nvidia"; # or "amd" or "intel"
|
|
|
|
wayland.enable = true;
|
|
|
|
vulkan.enable = true;
|
|
|
|
};
|
|
|
|
|
2024-12-15 17:22:36 -06:00
|
|
|
# Gaming module (see ../../apps/gaming.nix)
|
2024-12-23 14:35:36 -06:00
|
|
|
gaming = {
|
2024-12-15 17:22:36 -06:00
|
|
|
steam = {
|
|
|
|
enable = true;
|
|
|
|
firewall = {
|
|
|
|
remotePlay = true;
|
|
|
|
localNetworkGameTransfers = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
gamemode.enable = true;
|
|
|
|
gamescope.enable = true;
|
|
|
|
lutris = {
|
|
|
|
enable = true;
|
|
|
|
wine = {
|
|
|
|
enable = true;
|
2024-12-23 14:35:36 -06:00
|
|
|
package = pkgs.wine-staging;
|
2024-12-15 17:22:36 -06:00
|
|
|
};
|
|
|
|
compatibility = {
|
|
|
|
protonSupport = true;
|
|
|
|
};
|
|
|
|
extraPackages = with pkgs; [
|
|
|
|
gamemode
|
|
|
|
mangohud
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2024-12-23 14:35:36 -06:00
|
|
|
ffxiv.enable = true;
|
2024-12-15 17:22:36 -06:00
|
|
|
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)
|
2024-12-23 14:35:36 -06:00
|
|
|
pwrMgmt = {
|
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-23 14:35:36 -06:00
|
|
|
podman = {
|
2024-12-18 19:09:08 -06:00
|
|
|
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-23 14:35:36 -06:00
|
|
|
networking = {
|
2024-12-15 17:22:36 -06:00
|
|
|
firewall.enable = true;
|
2024-12-23 14:35:36 -06:00
|
|
|
networkmanager.enable = true;
|
2024-12-15 17:22:36 -06:00
|
|
|
};
|
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
|
|
|
|
2024-12-23 14:35:36 -06:00
|
|
|
# Flatpak packages (see ../../apps/flatpak.nix)
|
|
|
|
services.flatpak.packages = flatpakPackages;
|
|
|
|
|
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
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-12-23 14:35:36 -06:00
|
|
|
system.stateVersion = "24.11";
|
2024-09-07 21:22:12 -05:00
|
|
|
}
|