This commit is contained in:
2026-01-05 15:20:14 -06:00
parent ea3c826c63
commit 7c61d646a6
9 changed files with 23 additions and 78 deletions

View File

@@ -33,7 +33,6 @@
hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1"; hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1";
#nixvim.url = "git+https://gitea.esotericbytes.com/Blunkall-Technologies/Moirai";
nixvim.url = "git+https://gitea.esotericbytes.com/Blunkall-Technologies/Moirai"; nixvim.url = "git+https://gitea.esotericbytes.com/Blunkall-Technologies/Moirai";
}; };
@@ -47,10 +46,10 @@
(name: ({ (name: ({
inherit name; inherit name;
value = { ... } @ exputs: { value = { ... }: {
imports = [ imports = [
(import ./system (inputs // exputs)) ./system
(import ./system/profiles/${name} (inputs // exputs)) ./system/profiles/${name}
]; ];
}; };
})) filtered) })) filtered)

View File

@@ -26,8 +26,7 @@
nixosConfigurations."${host}" = nixpkgs.lib.nixosSystem { nixosConfigurations."${host}" = nixpkgs.lib.nixosSystem {
specialArgs = { specialArgs = olympus.inputs;
};
modules = [ modules = [
{ sysconfig.host = host; } { sysconfig.host = host; }

View File

@@ -16,7 +16,7 @@
# Bootloader. # Bootloader.
boot = { boot = {
kernelPackages = pkgs.linuxKernel.packages.linux_6_16; kernelPackages = pkgs.linuxKernel.packages.linux_6_18;
loader = { loader = {
systemd-boot.enable = true; systemd-boot.enable = true;
efi.canTouchEfiVariables = true; efi.canTouchEfiVariables = true;

View File

@@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }: { { ... }: {
imports = [ imports = [
./hyprland ./hyprland

View File

@@ -1,4 +1,4 @@
{ config, lib, pkgs, inputs, ... }: { { config, lib, pkgs, hyprland, ... }: {
options.sysconfig.programs.hyprland.enable = lib.options.mkOption { options.sysconfig.programs.hyprland.enable = lib.options.mkOption {
type = lib.types.bool; type = lib.types.bool;
@@ -18,9 +18,9 @@
systemd.setPath.enable = true; systemd.setPath.enable = true;
package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland; package = hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;
portalPackage = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland; portalPackage = hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland;
}; };
}; };
} }

View File

@@ -12,68 +12,11 @@
}; };
}; };
imports = [ /*imports = [
nix-minecraft.nixosModules.minecraft-servers nix-minecraft.nixosModules.minecraft-servers
]; ];*/
config = lib.mkIf config.sysconfig.services.minecraft.enable { config = lib.mkIf config.sysconfig.virtualization.minecraft.enable {
nixpkgs.overlays = [ nix-minecraft.overlay ];
services.minecraft-servers = {
enable = true;
eula = true;
openFirewall = true;
dataDir = "/var/lib/mcservers";
#managementSystem.systemd-socket.enable = true; #temp
servers = {
bedrock = {
enable = true;
package = pkgs.fabricServers.fabric-1_21_8;
serverProperties = {
server-port = 25566;
gamemode = "survival";
difficulty = 2;
white-list = true;
motd = "Test";
};
whitelist = {
"MeasureTwice66" = "a4032062-293d-484d-a790-9f52475836bb";
"651sonic" = "936a3fb0-4548-4557-975b-7794e97a3afc";
"Griffin12_" = "6a1f56d9-f712-4723-a031-e5437a389bb3";
};
autoStart = true;
};
modded = {
enable = false;
#package = pkgs.fabricServers.fabric-1_21_1.override { loaderVersion = "0.16.14"; };
package = pkgs.fabricServers.fabric-1_21_1;
jvmOpts = [ "-Xms8000M" "-Xmx12000M" ];
serverProperties = {
server-port = 25566;
gamemode = "survival";
white-list = true;
allow-flight = true;
motd = "Ex-plo-sion!!!";
};
whitelist = {
"MeasureTwice66" = "a4032062-293d-484d-a790-9f52475836bb";
"651sonic" = "936a3fb0-4548-4557-975b-7794e97a3afc";
"Griffin12_" = "6a1f56d9-f712-4723-a031-e5437a389bb3";
};
autoStart = true;
symlinks = {
"mods" = ./mods;
};
};
};
};
} // (lib.mkIf config.sysconfig.virtualization.minecraft.enable {
networking = { networking = {
firewall = { firewall = {
@@ -172,5 +115,5 @@
system.stateVersion = "25.05"; system.stateVersion = "25.05";
}; };
}; };
}); };
} }

View File

@@ -1,12 +1,16 @@
{ config, lib, pkgs, inputs, ... }: { { config, lib, pkgs, ... } @ inputs: {
imports = let imports = let
dir = builtins.readDir ./.; dir = builtins.readDir ./.;
in (builtins.filter in builtins.map (x: ./${x}) (builtins.filter
(file: (dir.${file} == "directory")) (file: (dir.${file} == "directory"))
(builtins.attrNames dir) (builtins.attrNames dir)
); );
/*imports = [
./nathan
];*/
options.sysconfig = with lib; { options.sysconfig = with lib; {
sshHostKeys = lib.mkOption { sshHostKeys = lib.mkOption {

View File

@@ -37,7 +37,7 @@
nh.enable = lib.mkDefault true; nh.enable = lib.mkDefault true;
minimal = lib.mkDefault false; minimal = lib.mkDefault false;
hyprland.enable = lib.mkDefault config.homeconfig.graphical && !config.homeconfig.standalone; hyprland.enable = lib.mkDefault (config.homeconfig.graphical && !config.homeconfig.standalone);
hyprlock.enable = lib.mkDefault config.homeconfig.hyprland.enable; hyprlock.enable = lib.mkDefault config.homeconfig.hyprland.enable;
wal.enable = lib.mkDefault config.homeconfig.graphical; wal.enable = lib.mkDefault config.homeconfig.graphical;
hyprpanel.enable = lib.mkDefault config.homeconfig.hyprland.enable; hyprpanel.enable = lib.mkDefault config.homeconfig.hyprland.enable;

View File

@@ -11,8 +11,8 @@
isNormalUser = true; isNormalUser = true;
#hashedPasswordFile = lib.mkIf (cfg.hashedPasswordFile != null) cfg.hashedPasswordFile; #hashedPasswordFile = lib.mkIf (cfg.hashedPasswordFile != null) cfg.hashedPasswordFile;
extraGroups = [ "networkmanager" ]; extraGroups = [ "networkmanager" ];
openssh.authorizedKeys.keys = lib.mkIf config.sysconfig.services.openssh.enable (cfg.ssh.keys ++ (map (z: config.sysconfig.sshHostKeys.${z}) cfg.ssh.hosts)); openssh.authorizedKeys.keys = with config.sysconfig.users.nathan; lib.mkIf config.sysconfig.services.openssh.enable (ssh.keys ++ (map (z: config.sysconfig.sshHostKeys.${z}) ssh.hosts));
packages = with pkgs; lib.mkIf (cfg.home-manager.enable && cfg.home-manager.standalone) [ home-manager ]; packages = with pkgs; with config.sysconfig.users.nathan; lib.mkIf (home-manager.enable && home-manager.standalone) [ home-manager ];
}; };
}; };