wip
This commit is contained in:
parent
683972662b
commit
ea63d5e273
8 changed files with 306 additions and 5 deletions
114
hosts/wsl/default.nix
Normal file
114
hosts/wsl/default.nix
Normal file
|
|
@ -0,0 +1,114 @@
|
|||
{
|
||||
inputs,
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
{
|
||||
|
||||
imports = [
|
||||
inputs.nixos-wsl.nixosModules.default
|
||||
];
|
||||
|
||||
wsl = {
|
||||
enable = true;
|
||||
wslConf = {
|
||||
network.generateResolvConf = false;
|
||||
};
|
||||
};
|
||||
|
||||
networking = {
|
||||
nameservers = [
|
||||
"10.33.0.100"
|
||||
"10.33.1.30"
|
||||
"1.1.1.1"
|
||||
];
|
||||
proxy = {
|
||||
httpProxy = "http://127.0.0.1:3128";
|
||||
httpsProxy = "http://127.0.0.1:3128";
|
||||
noProxy = ".lefoyer.lu,.foyer.lu,.foyer.cloud,localhost,127.0.0.1";
|
||||
};
|
||||
};
|
||||
|
||||
modules = {
|
||||
editor = {
|
||||
vim.enable = true;
|
||||
};
|
||||
desktop.file-manager.enable = true;
|
||||
desktop.zsh.enable = true;
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
scala-cli
|
||||
jdk17
|
||||
httpie
|
||||
zsh-syntax-highlighting
|
||||
tldr
|
||||
nil
|
||||
coursier
|
||||
nodejs
|
||||
imagemagick
|
||||
(sbt.override { jre = jdk17; })
|
||||
mill
|
||||
kafkactl
|
||||
];
|
||||
|
||||
security.pki.certificateFiles = [
|
||||
"${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt"
|
||||
./certs/Foyer-Group-Root-CA.crt
|
||||
./certs/Foyer-Sub-CA.crt
|
||||
];
|
||||
|
||||
environment.variables = {
|
||||
JAVAX_NET_SSL_TRUSTSTORE = "/mnt/c/Users/RDO/scoop/apps/java21/current/lib/security/cacerts";
|
||||
JAVA_OPTS = "-Dhttp.proxyHost=localhost -Dhttp.proxyPort=3128 -Dhttps.proxyHost=localhost -Dhttps.proxyPort=3128 -Djavax.net.ssl.trustStore=/mnt/c/Users/RDO/scoop/apps/java21/current/lib/security/cacerts -Djavax.net.ssl.trustStorePassword=changeit";
|
||||
};
|
||||
|
||||
home-manager.users.${config.user.name} = {
|
||||
home.file.".sbt/repositories".text = ''
|
||||
[repositories]
|
||||
local
|
||||
maven-local
|
||||
nexus-maven: https://nexus.foyer.lu/repository/mvn-all/
|
||||
nexus-ivy: https://nexus.foyer.lu/repository/ivy-all/, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext]
|
||||
nexus-ivy-sbt: https://nexus.foyer.lu/repository/ivy-all/, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[artifact](-[classifier])-[type].[ext]
|
||||
|
||||
'';
|
||||
programs = {
|
||||
git = {
|
||||
enable = true;
|
||||
userName = "Paul-Henri Froidmont";
|
||||
userEmail = "rdo@foyer.lu";
|
||||
extraConfig = {
|
||||
init.defaultBranch = "master";
|
||||
http.sslVerify = false;
|
||||
};
|
||||
};
|
||||
bat.enable = true;
|
||||
jq.enable = true;
|
||||
fzf.enable = true;
|
||||
lesspipe.enable = true;
|
||||
pazi.enable = true;
|
||||
broot = {
|
||||
enable = true;
|
||||
enableZshIntegration = true;
|
||||
};
|
||||
command-not-found.enable = true;
|
||||
direnv = {
|
||||
enable = true;
|
||||
enableZshIntegration = true;
|
||||
nix-direnv.enable = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
settings = {
|
||||
PasswordAuthentication = true;
|
||||
# LogLevel = "DEBUG";
|
||||
};
|
||||
};
|
||||
|
||||
system.stateVersion = "24.05";
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue