mirror of
https://github.com/tuxdotrs/tawm.git
synced 2025-07-06 13:06:35 +05:30
56 lines
1.1 KiB
Nix
56 lines
1.1 KiB
Nix
{
|
|
pkgs,
|
|
inputs,
|
|
username,
|
|
...
|
|
}: {
|
|
imports = [
|
|
inputs.nixos-wsl.nixosModules.wsl
|
|
];
|
|
|
|
nixpkgs.hostPlatform = "x86_64-linux";
|
|
|
|
wsl.enable = true;
|
|
wsl.defaultUser = "${username}";
|
|
|
|
nix = {
|
|
settings = {
|
|
experimental-features = "nix-command flakes";
|
|
auto-optimise-store = true;
|
|
};
|
|
};
|
|
|
|
programs = {
|
|
ssh.startAgent = true;
|
|
zsh.enable = true;
|
|
nix-ld.enable = true;
|
|
dconf.enable = true;
|
|
};
|
|
|
|
services = {
|
|
ollama.enable = true;
|
|
openssh = {
|
|
enable = true;
|
|
settings = {
|
|
PasswordAuthentication = false;
|
|
};
|
|
};
|
|
};
|
|
|
|
users = {
|
|
defaultUserShell = pkgs.zsh;
|
|
users.${username} = {
|
|
initialPassword = "${username}";
|
|
isNormalUser = true;
|
|
extraGroups = ["networkmanager" "wheel" "storage"];
|
|
openssh.authorizedKeys.keys = [
|
|
''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIL+OzPUe2ECPC929DqpkM39tl/vdNAXfsRnmrGfR+X3D 0xtux@pm.me''
|
|
];
|
|
};
|
|
};
|
|
|
|
fonts.packages = with pkgs; [(nerdfonts.override {fonts = ["FiraCode" "JetBrainsMono"];})];
|
|
|
|
system.stateVersion = "23.11";
|
|
}
|