init: public
This commit is contained in:
7
config/hosts/imxyy-nix-wsl/default.nix
Normal file
7
config/hosts/imxyy-nix-wsl/default.nix
Normal file
@@ -0,0 +1,7 @@
|
||||
{ ... }:
|
||||
{
|
||||
imports = [
|
||||
./nixos.nix
|
||||
./home.nix
|
||||
];
|
||||
}
|
||||
13
config/hosts/imxyy-nix-wsl/home.nix
Normal file
13
config/hosts/imxyy-nix-wsl/home.nix
Normal file
@@ -0,0 +1,13 @@
|
||||
{ ... }:
|
||||
{
|
||||
my.home.programs.zsh.shellAliases = {
|
||||
localproxy_on = "export http_proxy=http://192.168.128.1:7890 https_proxy=http://192.168.128.1:7890 all_proxy=socks://192.168.128.1:7890";
|
||||
};
|
||||
my = {
|
||||
coding.all.enable = true;
|
||||
cmd.misc.enable = true;
|
||||
xdg.enable = true;
|
||||
cmd.media.all.enable = true;
|
||||
desktop.media.all.enable = true;
|
||||
};
|
||||
}
|
||||
17
config/hosts/imxyy-nix-wsl/nixos.nix
Normal file
17
config/hosts/imxyy-nix-wsl/nixos.nix
Normal file
@@ -0,0 +1,17 @@
|
||||
{ username, nixos-wsl, ... }:
|
||||
{
|
||||
imports = [
|
||||
nixos-wsl.nixosModules.wsl
|
||||
];
|
||||
wsl.enable = true;
|
||||
wsl.defaultUser = "${username}";
|
||||
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
settings = {
|
||||
# Forbid root login through SSH.
|
||||
PermitRootLogin = "no";
|
||||
PasswordAuthentication = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user