refactor flake

This commit is contained in:
2024-08-01 04:53:47 +05:30
parent 2dafb7605d
commit d53f9250d6
3 changed files with 4 additions and 81 deletions

View File

@ -7,13 +7,9 @@
}: {
imports = [
inputs.nixos-wsl.nixosModules.wsl
../../modules/nixos/default.nix
];
nixpkgs = {
config.cudaSupport = true;
hostPlatform = "x86_64-linux";
};
wsl = {
enable = true;
defaultUser = "${username}";
@ -21,13 +17,6 @@
useWindowsDriver = true;
};
nix = {
settings = {
experimental-features = "nix-command flakes";
auto-optimise-store = true;
};
};
networking.hostName = "wsl";
programs = {
@ -48,27 +37,9 @@
host = "0.0.0.0";
port = 11434;
};
openssh = {
enable = true;
settings = {
PasswordAuthentication = false;
};
};
tailscale.enable = true;
};
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";