Created preliminary foundation of testing the nix systems by Flakes.
This commit is contained in:
parent
dac2e0b8cf
commit
6a5e8a2dc5
12 changed files with 200 additions and 49 deletions
|
|
@ -28,11 +28,11 @@
|
|||
};
|
||||
|
||||
imports = [
|
||||
./modules/desktop-manager/sway_greetd_homemanager.nix
|
||||
./modules/local/hostname_username.nix
|
||||
./modules/local/networking_local.nix
|
||||
./modules/bootloader/seabios-assigned-iso-at-birth.nix
|
||||
./modules/lix-default.nix
|
||||
../desktop-manager/sway_greetd_homemanager.nix
|
||||
../local/hostname_username.nix
|
||||
../local/networking_local.nix
|
||||
../bootloader/seabios-assigned-iso-at-birth.nix
|
||||
../lix-default.nix
|
||||
# Optionally to enable remote building: ./modules/toolsets/remote_building.nix
|
||||
#./modules/songsheet/wavelog/docker-compose.nix
|
||||
#./modules/secrets-config/sops-the-blank-system.nix
|
||||
|
|
|
|||
|
|
@ -28,17 +28,16 @@
|
|||
};
|
||||
|
||||
imports = [
|
||||
./modules/desktop-manager/sway_greetd_homemanager.nix
|
||||
./modules/local/hostname_username.nix
|
||||
./modules/local/networking_local.nix
|
||||
./modules/bootloader/seabios-assigned-iso-at-birth.nix
|
||||
./modules/lix-default.nix
|
||||
# Optionally: ./modules/toolsets/remote_building.nix
|
||||
#
|
||||
#
|
||||
../desktop-manager/sway_greetd_homemanager.nix
|
||||
../local/hostname_username.nix
|
||||
../local/networking_local.nix
|
||||
../bootloader/seabios-assigned-iso-at-birth.nix
|
||||
../lix-default.nix
|
||||
# Optionally: ../toolsets/remote_building.nix
|
||||
|
||||
## Compose modules for Portainer service
|
||||
./modules/songsheet/wavelog/docker-compose.nix
|
||||
./modules/secrets-config/sops-composesongsheet.nix
|
||||
../songsheet/wavelog/docker-compose.nix
|
||||
../secrets-config/sops-composesongsheet.nix
|
||||
];
|
||||
|
||||
config = {
|
||||
|
|
|
|||
|
|
@ -28,12 +28,13 @@
|
|||
};
|
||||
|
||||
imports = [
|
||||
./modules/desktop-manager/gnome.nix
|
||||
./modules/local/hostname_username.nix
|
||||
./modules/local/networking_local.nix
|
||||
./modules/lix-default.nix
|
||||
./modules/secrets-config/sops-database.nix
|
||||
./modules/system_scripts/gcloud_backup.nix
|
||||
../desktop-manager/gnome.nix
|
||||
../local/hostname_username.nix
|
||||
../local/networking_local.nix
|
||||
../bootloader/seabios-assigned-iso-at-birth.nix
|
||||
../lix-default.nix
|
||||
../secrets-config/sops-database.nix
|
||||
../system_scripts/gcloud_backup.nix
|
||||
./hardware-configuration.nix
|
||||
];
|
||||
|
||||
|
|
|
|||
|
|
@ -32,12 +32,12 @@ in {
|
|||
};
|
||||
|
||||
imports = [
|
||||
./modules/desktop-manager/sway_greetd_homemanager.nix
|
||||
./modules/local/hostname_username.nix
|
||||
./modules/local/networking_local.nix
|
||||
./modules/toolsets/remote_building.nix
|
||||
./modules/bootloader/seabios-assigned-proxmox-at-birth.nix
|
||||
./modules/lix-default.nix
|
||||
../desktop-manager/sway_greetd_homemanager.nix
|
||||
../local/hostname_username.nix
|
||||
../local/networking_local.nix
|
||||
../toolsets/remote_building.nix
|
||||
../bootloader/seabios-assigned-proxmox-at-birth.nix
|
||||
../lix-default.nix
|
||||
];
|
||||
|
||||
config = {
|
||||
|
|
|
|||
|
|
@ -28,17 +28,15 @@
|
|||
};
|
||||
|
||||
imports = [
|
||||
./modules/desktop-manager/sway_greetd_homemanager.nix
|
||||
./modules/local/hostname_username.nix
|
||||
./modules/local/networking_local.nix
|
||||
./modules/bootloader/seabios-assigned-iso-at-birth.nix
|
||||
./modules/lix-default.nix
|
||||
../desktop-manager/sway_greetd_homemanager.nix
|
||||
../local/hostname_username.nix
|
||||
../local/networking_local.nix
|
||||
../bootloader/seabios-assigned-iso-at-birth.nix
|
||||
../lix-default.nix
|
||||
# Optionally: ./modules/toolsets/remote_building.nix
|
||||
#
|
||||
#
|
||||
## Compose modules for Portainer service
|
||||
./modules/songsheet/wavelog/docker-compose.nix
|
||||
./modules/secrets-config/sops-composesongsheet.nix
|
||||
../songsheet/wavelog/docker-compose.nix
|
||||
../secrets-config/sops-composesongsheet.nix
|
||||
];
|
||||
|
||||
config = {
|
||||
|
|
|
|||
|
|
@ -28,11 +28,11 @@
|
|||
};
|
||||
|
||||
imports = [
|
||||
./modules/desktop-manager/sway_greetd_homemanager.nix
|
||||
./modules/local/hostname_username.nix
|
||||
./modules/local/networking_local.nix
|
||||
./modules/bootloader/seabios-assigned-iso-at-birth.nix
|
||||
./modules/lix-default.nix
|
||||
../desktop-manager/sway_greetd_homemanager.nix
|
||||
../local/hostname_username.nix
|
||||
../local/networking_local.nix
|
||||
../bootloader/seabios-assigned-iso-at-birth.nix
|
||||
../lix-default.nix
|
||||
# Optionally: ./modules/toolsets/remote_building.nix
|
||||
];
|
||||
|
||||
|
|
|
|||
|
|
@ -28,11 +28,12 @@
|
|||
};
|
||||
|
||||
imports = [
|
||||
./modules/desktop-manager/sway_greetd_homemanager.nix
|
||||
./modules/local/hostname_username.nix
|
||||
./modules/local/networking_local.nix
|
||||
./modules/bootloader/seabios-assigned-iso-at-birth.nix
|
||||
./modules/lix-default.nix
|
||||
../desktop-manager/sway_greetd_homemanager.nix
|
||||
../local/hostname_username.nix
|
||||
../local/networking_local.nix
|
||||
../bootloader/seabios-assigned-iso-at-birth.nix
|
||||
../lix-default.nix
|
||||
../secrets-config/sops-wireguard.nix
|
||||
# Optionally to enable remote building: ./modules/toolsets/remote_building.nix
|
||||
#./modules/songsheet/wavelog/docker-compose.nix
|
||||
#./modules/secrets-config/sops-the-blank-system.nix
|
||||
|
|
@ -76,18 +77,19 @@
|
|||
# Why 5182(0)? WireGuard server is running on port 51820,
|
||||
# thus we can use the "5182" infix in the IPv6 prefix to make it more memorable and less likely to cause confusion
|
||||
# with other local network services in the future.
|
||||
postUp = ''
|
||||
postSetup = ''
|
||||
${pkgs.iptables}/bin/ip6tables -A FORWARD -i wg0 -j ACCEPT
|
||||
${pkgs.iptables}/bin/ip6tables -t nat -A POSTROUTING -s fc00:5182::1:1/112 -o eth0 -j MASQUERADE
|
||||
'';
|
||||
|
||||
# Undo the above
|
||||
preDown = ''
|
||||
postShutdown = ''
|
||||
${pkgs.iptables}/bin/ip6tables -D FORWARD -i wg0 -j ACCEPT
|
||||
${pkgs.iptables}/bin/ip6tables -t nat -D POSTROUTING -s fc00:5182::1:1/112 -o eth0 -j MASQUERADE
|
||||
'';
|
||||
|
||||
privateKeyFile = config.sops.secrets.wireguard_private.path;
|
||||
#presharedKeyFile = config.sops.secrets.wireguard_preshared.path;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue