Compare commits

..

3 Commits

4 changed files with 9 additions and 20 deletions
-1
View File
@@ -4,7 +4,6 @@
--- ---
---
## **📌 Contexte et Objectifs** ## **📌 Contexte et Objectifs**
@@ -11,7 +11,7 @@
# Configuration réseau (IPv4 + IPv6) # Configuration réseau (IPv4 + IPv6)
networking.hostName = "rp01"; networking.hostName = "rp01";
networking.interfaces.eth0.ipv4.addresses = [ networking.interfaces.eth0.ipv4.addresses = [
{ address = "192.168.1.100"; prefixLength = 24; } { address = "10.40.0.199"; prefixLength = 24; }
]; ];
# networking.interfaces.eth0.ipv6.addresses = [ # networking.interfaces.eth0.ipv6.addresses = [
# { address = "2001:db8::1"; prefixLength = 64; } # { address = "2001:db8::1"; prefixLength = 64; }
-13
View File
@@ -41,19 +41,6 @@
boot.kernelModules = [ ]; # TODO : review the disabling of all kernelModules in a container boot.kernelModules = [ ]; # TODO : review the disabling of all kernelModules in a container
powerManagement.enable = false; powerManagement.enable = false;
# Enable SSH for deployment
# TODO : maybe move this to a module shared by all machines
services.openssh = {
enable = true;
openFirewall = true;
settings = {
PermitRootLogin = "yes";
PasswordAuthentication = true;
# TODO : confirm that SSH//PermitEmptyPasswords is not actually needed.
# PermitEmptyPasswords = "yes";
};
};
# Limiter les ressources si nécessaire # Limiter les ressources si nécessaire
# TODO : review the need to limit ZFS pools in the LXC container configuration, in my ZFSless context # TODO : review the need to limit ZFS pools in the LXC container configuration, in my ZFSless context
boot.zfs.extraPools = [ ]; boot.zfs.extraPools = [ ];
@@ -1,17 +1,17 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
{ {
# Activer SSH pour le déploiement # Install Git, curl, and other required tools
environment.systemPackages = with pkgs; [ git curl ];
# Enable unsecured SSH for initial deployment
services.openssh = { services.openssh = {
enable = true; enable = true;
permitRootLogin = "yes"; permitRootLogin = "yes";
passwordAuthentication = true; passwordAuthentication = true;
}; };
# Installer Git, curl, et les outils nécessaires # Deployment script
environment.systemPackages = with pkgs; [ git curl ];
# Ajouter le script de déploiement
system.activationScripts.setup-deploy = '' system.activationScripts.setup-deploy = ''
#!${pkgs.bash}/bin/bash #!${pkgs.bash}/bin/bash
set -euo pipefail set -euo pipefail
@@ -26,4 +26,7 @@
git clone https://gitea.lagraula.fr/xavier/nixos-infra.git /etc/nixos-infra git clone https://gitea.lagraula.fr/xavier/nixos-infra.git /etc/nixos-infra
fi fi
''; '';
system.stateVersion = "25.11";
} }