Compare commits
2 changed files with 0 additions and 53 deletions
10
flake.nix
10
flake.nix
|
|
@ -229,16 +229,6 @@
|
||||||
./hosts/dav
|
./hosts/dav
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
nixosConfigurations."git" = nixpkgs.lib.nixosSystem {
|
|
||||||
#system = "x86_64-linux";
|
|
||||||
#pkgs = import nixpkgs { inherit system; };
|
|
||||||
inherit system;
|
|
||||||
modules = [
|
|
||||||
agenix.nixosModules.default
|
|
||||||
{ environment.systemPackages = [ (agenix.packages.${system}.default) ]; }
|
|
||||||
./hosts/git
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
#);
|
#);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,43 +0,0 @@
|
||||||
{ ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
imports = [
|
|
||||||
../common.nix
|
|
||||||
../../services/openssh.nix
|
|
||||||
../../services/prometheus-node.nix
|
|
||||||
./forgejo.nix
|
|
||||||
];
|
|
||||||
|
|
||||||
networking = {
|
|
||||||
hostName = "git";
|
|
||||||
firewall = {
|
|
||||||
allowedTCPPorts = [
|
|
||||||
22 # SSH
|
|
||||||
80 # HTTP/1
|
|
||||||
443 # HTTP/2
|
|
||||||
];
|
|
||||||
allowedUDPPorts = [
|
|
||||||
443 # HTTP/3
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
users.users.root.openssh.authorizedKeys.keys = [
|
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMn0SP19A5C8PqdH+99ki3TILozj/U4tBSQxcRRepN21 samuel@pluto"
|
|
||||||
];
|
|
||||||
|
|
||||||
environment.etc."ssh/banner".text = ''
|
|
||||||
__
|
|
||||||
__/\ \__
|
|
||||||
__ /\_\ \ ,_\
|
|
||||||
/'_ `\/\ \ \ \/
|
|
||||||
/\ \L\ \ \ \ \ \_
|
|
||||||
\ \____ \ \_\ \__\
|
|
||||||
\/___L\ \/_/\/__/
|
|
||||||
/\____/
|
|
||||||
\_/__/
|
|
||||||
'';
|
|
||||||
services.openssh.settings.Banner = "/etc/ssh/banner";
|
|
||||||
|
|
||||||
system.stateVersion = "25.11";
|
|
||||||
}
|
|
||||||
Loading…
Reference in a new issue