From 2dafd991c0911aaf471dd1735187ac96f7c1d724 Mon Sep 17 00:00:00 2001 From: cy Date: Sat, 28 Dec 2024 22:27:48 -0500 Subject: [PATCH] add home for titan --- flake.nix | 8 ++++++++ home/yt/titan.nix | 32 ++++++++++++++++++++++++++++++++ hosts/titan/default.nix | 15 +++++++++++++++ 3 files changed, 55 insertions(+) create mode 100644 home/yt/titan.nix diff --git a/flake.nix b/flake.nix index e7e41b6..2018ac4 100644 --- a/flake.nix +++ b/flake.nix @@ -145,6 +145,14 @@ ./home/yt/chunk.nix ]; }; + + "yt@titan" = home-manager.lib.homeManagerConfiguration { + pkgs = pkgsFor.x86_64-linux; + extraSpecialArgs = { inherit inputs outputs; }; + modules = [ + ./home/yt/titan.nix + ]; + }; }; }; } diff --git a/home/yt/titan.nix b/home/yt/titan.nix new file mode 100644 index 0000000..5da924e --- /dev/null +++ b/home/yt/titan.nix @@ -0,0 +1,32 @@ +{ + pkgs, + ... +}: +{ + imports = [ + ./common.nix + ]; + home = { + username = "yt"; + homeDirectory = "/home/yt"; + stateVersion = "24.05"; + }; + programs.home-manager.enable = true; + + systemd.user.startServices = "sd-switch"; + + home.packages = with pkgs; [ + lua-language-server + vim-language-server + python312Packages.python-lsp-server + nixd + gopls + bash-language-server + llvmPackages_19.clang-tools + rust-analyzer + yt-dlp + gnumake + btop + foot.terminfo + ]; +} diff --git a/hosts/titan/default.nix b/hosts/titan/default.nix index c2ac96f..ef0f900 100644 --- a/hosts/titan/default.nix +++ b/hosts/titan/default.nix @@ -47,4 +47,19 @@ }; security.sudo.enable = true; security.sudo.wheelNeedsPassword = false; + + # network stuff + networking.hostName = "titan"; + networking.networkmanager.enable = true; + networking.firewall = { + enable = true; + allowedTCPPorts = [ + 22 + 80 + 443 + ]; + allowedUDPPorts = [ + 443 + ]; + }; }