flake/hosts/myputer/default.nix
2026-02-12 13:25:40 +10:00

61 lines
1.1 KiB
Nix
Executable file

{
pkgs,
upkgs,
lib,
...
}: {
imports = [
./hardware-configuration.nix
];
networking = {
hostName = "myputer";
firewall = {
allowedTCPPorts = [
22 # SSH
80 # HTTP
443 # HTTPS
5678 # MikroTik WinBox
25565 # Minecraft LAN
];
};
};
# ----- SERVICES -----
services = {
flatpak.enable = true;
};
security.sudo.wheelNeedsPassword = lib.mkForce false;
# ---- SYSTEM PACKAGES -----
environment.systemPackages = with pkgs; [
# User Environment
libreoffice
# Games
prismlauncher # minecraft
upkgs.olympus # CELESTE!! <3 :3
discord
];
# DEBUG: configuring xdg portal here instead?
# REFERENCE: https://discourse.nixos.org/t/hyprland-screen-sharing/43658
#xdg.portal = {
# enable = true;
# xdgOpenUsePortal = true;
# config = {
# common.default = ["gtk"];
# hyprland.default = ["gtk" "hyprland"];
# };
# extraPortals = with pkgs; [
# #xdg-desktop-portal-gtk
# #xdg-desktop-portal-wlr
# xdg-desktop-portal-hyprland
# ];
#};
# DO NOT MODIFY
system.stateVersion = "24.05"; # Did you read the comment?
}