From 743c487a52d082aaaccb82fa7be76560c82ab2d8 Mon Sep 17 00:00:00 2001 From: Liam Malone Date: Mon, 20 Apr 2026 18:26:50 +0100 Subject: [PATCH] remove `home.nix` files, close port 21, ensure flakes and cmds enabled --- hosts/darp8/home.nix | 48 ------------------------------- hosts/desktop/home.nix | 48 ------------------------------- hosts/graphical/configuration.nix | 3 +- 3 files changed, 2 insertions(+), 97 deletions(-) delete mode 100644 hosts/darp8/home.nix delete mode 100644 hosts/desktop/home.nix diff --git a/hosts/darp8/home.nix b/hosts/darp8/home.nix deleted file mode 100644 index a8bdfef..0000000 --- a/hosts/darp8/home.nix +++ /dev/null @@ -1,48 +0,0 @@ -{ - cfg, - hyprplugins, - config, - pkgs, - lib, - callPackage, - inputs, - ... -}: - -{ - home.username = cfg.username; - home.homeDirectory = cfg.homeDirectory; - - imports = [ - ./file.nix # config file out-of-store links - ./pkgs.nix # system pkgs - ./services.nix # system services - - # general modules - # ../../modules/home-manager/tmux.nix - inputs.dms.homeModules.dank-material-shell - ]; - - # You should not change this value, even if you update Home Manager. If you do - # want to update the value, then make sure to first check the Home Manager - # release notes. - home.stateVersion = "23.11"; # Please read the comment before changing. - - home.sessionVariables = { - EDITOR = "focus"; - GIT_EDITOR = "nvim"; - NIX_SHELL_PRESERVE_PROMPT = 1; - NIX_CONFIG_DIR = "${cfg.homeDirectory}/nixos"; - }; - - nix.settings.extra-trusted-substituters = [ - "https://ghostty.cachix.org" - ]; - nix.settings.experimental-features = [ "nix-command" "flakes" ]; - - # ENV SETTINGS - xdg.enable = true; - - # Let Home Manager install and manage itself. - programs.home-manager.enable = true; -} diff --git a/hosts/desktop/home.nix b/hosts/desktop/home.nix deleted file mode 100644 index 3885ae8..0000000 --- a/hosts/desktop/home.nix +++ /dev/null @@ -1,48 +0,0 @@ -{ - cfg, - config, - pkgs, - lib, - callPackage, - inputs, - ... -}: - -{ - home.username = cfg.username; - home.homeDirectory = cfg.homeDirectory; - - imports = [ - ./file.nix # config file out-of-store links - ./pkgs.nix # system pkgs - ./services.nix # system services - - # general modules - ../../modules/home-manager/tmux.nix - - inputs.dms.homeModules.dank-material-shell - ]; - - # You should not change this value, even if you update Home Manager. If you do - # want to update the value, then make sure to first check the Home Manager - # release notes. - home.stateVersion = "24.11"; # Please read the comment before changing. - - home.sessionVariables = { - EDITOR = "focus"; - GIT_EDITOR = "nvim"; - NIX_SHELL_PRESERVE_PROMPT = 1; - NIX_CONFIG_DIR = "${cfg.homeDirectory}/nixos"; - }; - - nix.settings.extra-trusted-substituters = [ - "https://ghostty.cachix.org" - ]; - nix.settings.experimental-features = [ "nix-command" "flakes" ]; - - # ENV SETTINGS - xdg.enable = true; - - # Let Home Manager install and manage itself. - programs.home-manager.enable = true; -} diff --git a/hosts/graphical/configuration.nix b/hosts/graphical/configuration.nix index b82d823..ffc768a 100644 --- a/hosts/graphical/configuration.nix +++ b/hosts/graphical/configuration.nix @@ -20,7 +20,7 @@ enable = true; # Open ports in the firewall. - allowedTCPPorts = [ 21 22 80 443 4070 5037 ]; + allowedTCPPorts = [ 22 80 443 4070 5037 ]; allowedUDPPorts = [ 4070 ]; allowedTCPPortRanges = [ @@ -89,6 +89,7 @@ trusted-public-keys = ["hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="]; trusted-users = [ "root" "@wheel" ]; allowed-users = [ "root" "@wheel" ]; + experimental-features = [ "nix-command" "flakes" ]; }; nix.gc = {