add home for titan

This commit is contained in:
cy 2024-12-28 22:27:48 -05:00
parent c24f8a0539
commit 2dafd991c0
3 changed files with 55 additions and 0 deletions

View file

@ -145,6 +145,14 @@
./home/yt/chunk.nix ./home/yt/chunk.nix
]; ];
}; };
"yt@titan" = home-manager.lib.homeManagerConfiguration {
pkgs = pkgsFor.x86_64-linux;
extraSpecialArgs = { inherit inputs outputs; };
modules = [
./home/yt/titan.nix
];
};
}; };
}; };
} }

32
home/yt/titan.nix Normal file
View file

@ -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
];
}

View file

@ -47,4 +47,19 @@
}; };
security.sudo.enable = true; security.sudo.enable = true;
security.sudo.wheelNeedsPassword = false; security.sudo.wheelNeedsPassword = false;
# network stuff
networking.hostName = "titan";
networking.networkmanager.enable = true;
networking.firewall = {
enable = true;
allowedTCPPorts = [
22
80
443
];
allowedUDPPorts = [
443
];
};
} }