mirror of
https://github.com/tuxdotrs/tawm.git
synced 2025-07-06 21:16:35 +05:30
change wsl hostname to sirius
This commit is contained in:
55
hosts/sirius/default.nix
Normal file
55
hosts/sirius/default.nix
Normal file
@ -0,0 +1,55 @@
|
||||
{
|
||||
pkgs,
|
||||
inputs,
|
||||
username,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
inputs.nixos-wsl.nixosModules.wsl
|
||||
../common
|
||||
../../modules/nixos/virtualisation/docker.nix
|
||||
];
|
||||
|
||||
nixpkgs = {
|
||||
config.cudaSupport = true;
|
||||
hostPlatform = "x86_64-linux";
|
||||
};
|
||||
|
||||
wsl = {
|
||||
enable = true;
|
||||
defaultUser = "${username}";
|
||||
nativeSystemd = true;
|
||||
useWindowsDriver = true;
|
||||
};
|
||||
|
||||
networking.hostName = "sirius";
|
||||
|
||||
programs = {
|
||||
ssh.startAgent = true;
|
||||
zsh.enable = true;
|
||||
|
||||
nix-ld = {
|
||||
enable = true;
|
||||
libraries = config.hardware.graphics.extraPackages;
|
||||
package = pkgs.nix-ld-rs;
|
||||
};
|
||||
|
||||
dconf.enable = true;
|
||||
};
|
||||
|
||||
services = {
|
||||
ollama = {
|
||||
enable = true;
|
||||
acceleration = "cuda";
|
||||
openFirewall = true;
|
||||
host = "0.0.0.0";
|
||||
port = 11434;
|
||||
};
|
||||
tailscale.enable = true;
|
||||
};
|
||||
|
||||
fonts.packages = with pkgs; [(nerdfonts.override {fonts = ["FiraCode" "JetBrainsMono"];})];
|
||||
|
||||
system.stateVersion = "23.11";
|
||||
}
|
5
hosts/sirius/home.nix
Normal file
5
hosts/sirius/home.nix
Normal file
@ -0,0 +1,5 @@
|
||||
{...}: {
|
||||
imports = [
|
||||
../common/home.nix
|
||||
];
|
||||
}
|
Reference in New Issue
Block a user