Compare commits

...

4 commits

Author SHA1 Message Date
Antoine Vaure
2b806582b5 config for larbin and demo
Some checks failed
/ build-all (push) Failing after 3h5m4s
2025-10-10 15:28:04 +02:00
Antoine Vaure
ff6f15d2e3 default EDITOR to nvim in home config 2025-10-10 13:48:52 +02:00
572d2f09ae add socks proxy in ks
Some checks failed
/ build-all (push) Failing after 3h10m17s
2025-10-07 19:42:34 +02:00
ant
2bb91dff9b hs as builder for basado
All checks were successful
/ build-all (push) Successful in 1m21s
2025-10-04 17:48:57 +02:00
7 changed files with 64 additions and 6 deletions

View file

@ -43,7 +43,7 @@
inherit modules;
};
in
{
rec {
homeConfigurations."anvaure@Allegro23-12" = homeConfig [
{ home.username = "anvaure"; }
./home/more-software.nix
@ -54,6 +54,15 @@
{ targets.genericLinux.enable = true; }
];
homeConfigurations."anvaure@msm-lnx-ipva-01" = homeConfig [
{ home.username = "anvaure"; }
./home/base.nix
({pkgs, ...}: {
programs.fish.loginShellInit = "source ${pkgs.nix}/etc/profile.d/nix.fish";
})
];
homeConfigurations."anvaure@msm-lnx-demo-01" = homeConfigurations."anvaure@msm-lnx-ipva-01";
homeConfigurations."ant@hs" = homeConfig [
{ home.username = "ant"; }
./home/more-software.nix

View file

@ -5,11 +5,9 @@
./fish.nix
];
# Home Manager needs a bit of information about you and the paths it should
# manage.
nix.package = pkgs.nixVersions.latest;
home.homeDirectory = "/home/${config.home.username}";
home.stateVersion = "23.05"; # Please read the comment before changing.
home.packages = with pkgs; [
@ -30,6 +28,7 @@
];
home.sessionVariables = {
EDITOR = "nvim";
GOPATH = "${config.home.homeDirectory}/.local/share/go";
GOMODCACHE = "${config.home.homeDirectory}/.cache/go/pkg/mod";
CCACHE_MAXSIZE = "100Gi";

26
os/3proxy.nix Normal file
View file

@ -0,0 +1,26 @@
{
services._3proxy = {
enable = true;
services = [
{
type = "socks";
auth = [ "strong" ];
acl = [ {
rule = "allow";
users = [ "user1" ];
}
];
}
];
usersFile = "/etc/3proxy.passwd";
};
environment.etc = {
"3proxy.passwd".text = ''
user1:CR:$1$TqAb0wvc$e.O2GhdhXaMYSxNdNBmzh/
'';
};
networking.firewall.allowedTCPPorts = [ 1080 ];
networking.firewall.allowedUDPPorts = [ 1080 ];
}

View file

@ -107,4 +107,17 @@ in
services.udev.packages = [
pkgs.android-udev-rules
];
nix.distributedBuilds = true;
nix.settings.builders-use-substitutes = true;
nix.buildMachines = [
{
hostName = "192.168.1.5";
protocol = "ssh-ng";
sshUser = "remotebuild";
sshKey = "/home/ant/.ssh/id_ed25519";
system = pkgs.stdenv.hostPlatform.system;
supportedFeatures = [ "nixos-test" "big-parallel" "kvm" "gccarch-x86-64-v3" ];
}
];
}

View file

@ -1,6 +1,7 @@
{ config, pkgs, ... }:
let sshKeys = with (import ../sshKeys.nix); [
hs
basado
];
in
{
@ -16,4 +17,13 @@ in
users.groups.remotebuild = {};
nix.settings.extra-trusted-users = [ "remotebuild" ];
nix.settings.system-features = [
"benchmark"
"big-parallel"
"ca-derivations"
"kvm"
"nixos-test"
"gccarch-x86-64-v2"
"gccarch-x86-64-v3"
];
}

View file

@ -18,6 +18,7 @@ in {
../common.nix
../forgejo.nix
(import ../remote-disk-unlock.nix ["r8169"] sshKeys)
../builder.nix
];
boot = {
@ -146,7 +147,6 @@ in {
nix.distributedBuilds = true;
nix.settings.builders-use-substitutes = true;
nix.buildMachines = [
{
hostName = "192.168.1.2";
@ -154,7 +154,7 @@ in {
sshUser = "remotebuild";
sshKey = "/home/ant/.ssh/id_ed25519";
system = pkgs.stdenv.hostPlatform.system;
supportedFeatures = [ "nixos-test" "big-parallel" "kvm" ];
supportedFeatures = [ "nixos-test" "big-parallel" "kvm" "gccarch-x86-64-v3" ];
}
];
}

View file

@ -8,6 +8,7 @@ in {
imports = [
./hardware-configuration.nix
../common.nix
../3proxy.nix
inputs.simple-nixos-mailserver.nixosModule
];