{ config, inputs, pkgs, ... }: { imports = [ ../../modules/nixos/nixpkgs.nix ../../modules/nixos/bootloader.nix ../../modules/nixos/hardware.nix ../../modules/nixos/nvidia.nix ../../modules/nixos/i18n.nix ../../modules/nixos/main-user.nix ../../modules/nixos/network.nix ../../modules/nixos/programs.nix ./packages.nix # ../../modules/home-manager/hyprpanel.nix ./other/activate.nix # ./apps/ancs.nix ]; programs.steam = { enable = true; remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server localNetworkGameTransfers.openFirewall = true; # Open ports in the firewall for Steam Local Network Game Transfers }; # services.ancs.enable = true; services.flatpak.enable = true; services.flatpak.remotes = [ { name = "flathub"; location = "https://dl.flathub.org/repo/flathub.flatpakrepo"; } ]; services.flatpak.packages = [ { appId = "com.modrinth.ModrinthApp"; origin = "flathub"; } ]; services.printing = { enable = true; drivers = with pkgs; [ gutenprint gutenprintBin splix hplip ]; webInterface = true; listenAddresses = [ "*:631" ]; allowFrom = [ "all" ]; browsing = true; defaultShared = true; openFirewall = true; }; programs.virt-manager.enable = true; # user.groups.libvirtd.members = [ "ocbwoy3" ]; virtualisation.libvirtd.enable = true; # virtualisation.waydroid.enable = true; virtualisation.spiceUSBRedirection.enable = true; networking.extraHosts = '' # Block Twitter (self-explanatory) 0.0.0.0 platform.twitter.com 0.0.0.0 api.twitter.com 0.0.0.0 twitter.com 0.0.0.0 platform.x.com 0.0.0.0 api.x.com 0.0.0.0 x.com # Block Essential Mod (shady practices) 0.0.0.0 api.essential.gg 0.0.0.0 connect.essential.gg 0.0.0.0 *.essential.gg 0.0.0.0 *.modcore.dev 0.0.0.0 *.sparkuniverse.com ''; powerManagement.enable = true; services.avahi = { enable = true; nssmdns4 = true; openFirewall = true; publish = { enable = true; userServices = true; }; }; # Sadly, I don't know how to install flatpaks like this. # services.flatpak.packages = [ # "com.usebottles.bottles" # { flatpakref = "https://sober.vinegarhq.org/sober.flatpakref"; sha256 = "0"; } # ]; programs.hyprland = { enable = true; xwayland.enable = true; package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland; portalPackage = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland; }; programs.zsh = { enable = true; autosuggestions.enable = true; zsh-autoenv.enable = true; syntaxHighlighting.enable = true; ohMyZsh = { enable = true; plugins = [ "git" "direnv" "thefuck" ]; theme = "robbyrussell"; }; shellAliases = { nixrebuild = "sudo nixos-rebuild switch --flake .#default --impure --cores 4 -L --upgrade"; neofetch = "fastfetch"; }; }; virtualisation.docker.enable = true; main-user.packages = with pkgs; [ warp-terminal prismlauncher # vesktop # legcord equibop libsForQt5.kdenlive libsForQt5.qt5ct libsForQt5.lightly kdePackages.qt6ct lightly-qt hyfetch kitty inputs.ghostty.packages.${pkgs.stdenv.hostPlatform.system}.ghostty ]; xdg.terminal-exec.enable = true; xdg.portal = { enable = true; extraPortals = [ pkgs.xdg-desktop-portal-gnome pkgs.xdg-desktop-portal-gtk ]; }; environment.variables.XDG_TERMINAL = "${inputs.ghostty.packages.${pkgs.stdenv.hostPlatform.system}.ghostty}/bin/ghostty"; environment.variables.XDG_SYSTEM_MONITOR = "${pkgs.htop}/bin/htop"; fileSystems = { "/".options = [ "compress=zstd" ]; "/home".options = [ "compress=zstd" ]; "/nix".options = [ "compress=zstd" "noatime" ]; }; services.btrfs.autoScrub = { enable = true; interval = "monthly"; fileSystems = [ "/" ]; }; # CHANGE YOUR NAME IN HOME MANAGER! main-user.userName = "ocbwoy3"; main-user.realName = "OCbwoy3"; programs.dconf.enable = true; services.gvfs.enable = true; catppuccin = { enable = true; flavor = "mocha"; accent = "blue"; # gtk.enable = true; }; # home-manager.services.mpris-proxy.enable = true; home-manager.users.ocbwoy3 = { services.mpris-proxy.enable = true; programs.chromium = { enable = true; package = pkgs.brave; extensions = [ { id = "cjpalhdlnbpafiamejdnhcphjbkeiagm"; } # uBlock Origin { id = "enamippconapkdmgfgjchkhakpfinmaj"; } # DeArrow { id = "clngdbkpkpeebahjckkjfobafhncgmne"; } # Sytlus { id = "hnmpcagpplmpfojmgmnngilcnanddlhb"; } # Windscribe { id = "hfjngafpndganmdggnapblamgbfjhnof"; } # RoSeal { id = "aflpfginfpjhanhkmdpohpggpolfopmb"; } # SkyLink { id = "agjnjboanicjcpenljmaaigopkgdnihi"; } # PreMiD { id = "ijcpiojgefnkmcadacmacogglhjdjphj"; } # Shinigami Eyes { id = "bmoehnfdgafmljnmbidgjhgfaegkfddk"; } # Bluesky for Everyone { id = "hbkpclpemjeibhioopcebchdmohaieln"; } # BTRoblox { id = "lnjaiaapbakfhlbjenjkhffcdpoompki"; } # Catppuccin gh file explorer icons { id = "ejcfepkfckglbgocfkanmcdngdijcgld"; } # ChatGPT { id = "jifpbeccnghkjeaalbbjmodiffmgedin"; } # CRX Viewer { id = "hplhmahilccgjccaanlagdidofgaanfe"; } # Gamefam Blocker { id = "adbacgifemdbhdkfppmeilbgppmhaobf"; } # RoPro { id = "cbghhgpcnddeihccjmnadmkaejncjndb"; } # Vencord { id = "jinjaccalgkegednnccohejagnlnfdag"; } # Violentmonkey { id = "lahhiofdgnbcgmemekkmjnpifojdaelb"; } # Vercel { id = "mnjggcdmjocbbbhaepdhchncahnbgone"; } # Sponsorblock { id = "pncfbmialoiaghdehhbnbhkkgmjanfhe"; } # uBlacklist ]; }; programs.git = { enable = true; userName = "OCbwoy3"; userEmail = "ocbwoy3@ocbwoy3.dev"; }; home.stateVersion = "24.11"; }; }