fix: use rootPath everywhere! :3

This commit is contained in:
Ranomier 2025-06-15 21:45:30 +02:00
parent 33a314b658
commit 5a9e25cc6e
4 changed files with 14 additions and 22 deletions

View file

@ -1,14 +1,13 @@
{pkgs, ...}:{ {pkgs, rootPath, ...}:{
imports = [ imports = [
./boot.nix ./boot.nix
./hardware-configuration.nix ./hardware-configuration.nix
#../../modules/hosting/wordpress-simple/kiezpalme.nix (rootPath + /system_profiles/server.nix)
#../../modules/hosting/wordpress-simple/pertineo.nix
../../modules/hosting/wordpress.nix
../../modules/sec_auth/ssh-server.nix
../../system_profiles/server.nix #(rootPath + /modules/hosting/wordpress-simple/kiezpalme.nix)
#(rootPath + /modules/hosting/wordpress-simple/pertineo.nix)
(rootPath + /modules/hosting/wordpress.nix)
]; ];
#services.mysql = { #services.mysql = {
@ -31,7 +30,7 @@
username = "root"; username = "root";
in { in {
users."${username}".openssh.authorizedKeys.keyFiles = [ users."${username}".openssh.authorizedKeys.keyFiles = [
../../certificates/id_ed25519_ext-julia.pub (rootPath + /certificates/id_ed25519_ext-julia.pub)
]; ];
}; };
} }

View file

@ -1,20 +1,18 @@
{ {rootPath, ...}: {
imports = [ imports = [
./boot.nix ./boot.nix
./hardware-configuration.nix ./hardware-configuration.nix
(rootPath + /system_profiles/server.nix)
../../modules/game/server/luanti (rootPath + /modules/game/server/luanti)
../../modules/sec_auth/ssh-server.nix (rootPath + /modules/pkg_mgrmnt/unattended-updates.nix)
../../modules/pkg_mgrmnt/unattended-updates.nix
../../system_profiles/server.nix
]; ];
users = let users = let
username = "root"; username = "root";
in { in {
users."${username}".openssh.authorizedKeys.keyFiles = [ users."${username}".openssh.authorizedKeys.keyFiles = [
../../certificates/id_ed25519_game-luanti.pub (rootPath + /certificates/id_ed25519_game-luanti.pub)
]; ];
}; };

View file

@ -1,13 +1,7 @@
{...}: { {rootPath, ...}: {
nixpkgs.config = {
# Disable if you don't want unfree packages
allowUnfree = true;
};
imports = [ imports = [
./hardware-configuration.nix ./hardware-configuration.nix
../../system_profiles/defaults.nix (rootPath + /system_profiles/server.nix)
../../system_profiles/mini-container.nix
]; ];
} }

View file

@ -1,6 +1,7 @@
{rootPath, ...}: { {rootPath, ...}: {
imports = [ imports = [
(rootPath + /modules/customisation.nix) (rootPath + /modules/customisation.nix)
(rootPath + /modules/sec_auth/ssh-server.nix)
(rootPath + /modules/software/neovim.nix) (rootPath + /modules/software/neovim.nix)
(rootPath + /modules/software/packages/core.nix) (rootPath + /modules/software/packages/core.nix)
]; ];