flake/hosts/myputer/default.nix

83 lines
1.6 KiB
Nix
Raw Normal View History

{
2024-10-30 13:51:36 +10:00
pkgs,
2026-02-08 23:41:05 +10:00
upkgs,
...
2026-02-09 01:51:30 +10:00
}: {
2024-10-30 13:51:36 +10:00
imports = [
2024-10-30 19:45:26 +10:00
./hardware-configuration.nix
];
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
};
2025-08-01 13:17:12 +10:00
# ------- USERS -------
2024-11-07 17:37:15 +10:00
security.sudo.wheelNeedsPassword = false;
2024-10-30 19:45:26 +10:00
users = {
users = {
# just me fr (personal account)
me = {
isNormalUser = true;
2025-08-01 13:17:12 +10:00
extraGroups = ["wheel" "netdev" "docker"];
shell = pkgs.bash;
2026-02-09 01:51:30 +10:00
packages = with pkgs; [
firefox
nitch
starfetch
2025-02-19 12:14:25 +10:00
2026-02-09 01:51:30 +10:00
colmena-latest
2026-02-09 01:51:30 +10:00
gitkraken
# NOTE: downloadthing this causes my PC to freak!! ("too many open files" error)
#keyguard # bitwarden client app
];
};
};
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?
}