flake/hosts/myputer/default.nix

62 lines
1.1 KiB
Nix
Raw Permalink Normal View History

{
2024-10-30 13:51:36 +10:00
pkgs,
2026-02-08 23:41:05 +10:00
upkgs,
lib,
...
2026-02-09 01:51:30 +10:00
}: {
2024-10-30 13:51:36 +10:00
imports = [
2026-02-20 02:18:03 +10:00
./hardware.nix
2024-10-30 19:45:26 +10:00
];
2024-10-30 13:51:36 +10:00
2025-08-01 12:32:52 +10:00
networking = {
hostName = "myputer";
2024-10-30 13:51:36 +10:00
2025-10-24 11:51:49 +10:00
firewall = {
allowedTCPPorts = [
22 # SSH
80 # HTTP
443 # HTTPS
5678 # MikroTik WinBox
25565 # Minecraft LAN
2025-10-24 11:51:49 +10:00
];
};
2025-08-01 12:32:52 +10:00
};
2024-10-30 13:51:36 +10:00
# ----- SERVICES -----
services = {
2026-02-08 17:47:11 +10:00
flatpak.enable = true;
2024-10-30 13:51:36 +10:00
};
security.sudo.wheelNeedsPassword = lib.mkForce false;
2024-10-30 13:51:36 +10:00
# ---- SYSTEM PACKAGES -----
environment.systemPackages = with pkgs; [
2024-11-04 11:59:14 +10:00
# User Environment
2025-08-12 21:11:08 +10:00
libreoffice
2025-02-11 15:47:56 +10:00
# Games
2025-08-01 13:17:12 +10:00
prismlauncher # minecraft
2026-02-09 01:51:30 +10:00
upkgs.olympus # CELESTE!! <3 :3
2026-02-08 17:47:11 +10:00
discord
2024-10-30 13:51:36 +10:00
];
# 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
# ];
#};
2024-10-30 13:51:36 +10:00
# DO NOT MODIFY
system.stateVersion = "24.05"; # Did you read the comment?
}