mirror of
https://github.com/tuxdotrs/tawm.git
synced 2025-07-06 21:16:35 +05:30
refactor flake
This commit is contained in:
@ -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";
|
||||
|
Reference in New Issue
Block a user