Compare commits
2 Commits
f9eca3ebde
...
7c61d646a6
| Author | SHA1 | Date | |
|---|---|---|---|
| 7c61d646a6 | |||
| ea3c826c63 |
@@ -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)
|
||||||
|
|||||||
1011
machines/laptop/flake.lock
generated
1011
machines/laptop/flake.lock
generated
File diff suppressed because it is too large
Load Diff
@@ -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; }
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ config, lib, pkgs, ... }: {
|
{ ... }: {
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
./hyprland
|
./hyprland
|
||||||
|
|||||||
@@ -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;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,11 +1,21 @@
|
|||||||
{ config, lib, pkgs, nix-minecraft, ... }: {
|
{ config, lib, pkgs, nix-minecraft, ... }: {
|
||||||
|
|
||||||
options.sysconfig.virtualization.minecraft.enable = lib.options.mkOption {
|
options.sysconfig = {
|
||||||
type = lib.types.bool;
|
virtualization.minecraft.enable = lib.options.mkOption {
|
||||||
default = false;
|
type = lib.types.bool;
|
||||||
|
default = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
services.minecraft.enable = lib.options.mkOption {
|
||||||
|
type = lib.types.bool;
|
||||||
|
default = false;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/*imports = [
|
||||||
|
nix-minecraft.nixosModules.minecraft-servers
|
||||||
|
];*/
|
||||||
|
|
||||||
config = lib.mkIf config.sysconfig.virtualization.minecraft.enable {
|
config = lib.mkIf config.sysconfig.virtualization.minecraft.enable {
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
@@ -42,9 +52,9 @@
|
|||||||
|
|
||||||
config = {
|
config = {
|
||||||
|
|
||||||
imports = [
|
/*imports = [
|
||||||
nix-minecraft.nixosModules.minecraft-servers
|
nix-minecraft.nixosModules.minecraft-servers
|
||||||
];
|
];*/
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [ tmux ];
|
environment.systemPackages = with pkgs; [ tmux ];
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,6 @@
|
|||||||
./openssh
|
./openssh
|
||||||
./pipewire
|
./pipewire
|
||||||
./containers
|
./containers
|
||||||
./minecraft
|
|
||||||
./sddm
|
./sddm
|
||||||
./novnc
|
./novnc
|
||||||
./kdePlasma6
|
./kdePlasma6
|
||||||
|
|||||||
@@ -1,70 +0,0 @@
|
|||||||
{ config, lib, pkgs, nix-minecraft, ... }: {
|
|
||||||
|
|
||||||
options.sysconfig.services.minecraft.enable = lib.options.mkOption {
|
|
||||||
type = lib.types.bool;
|
|
||||||
default = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
imports = [
|
|
||||||
nix-minecraft.nixosModules.minecraft-servers
|
|
||||||
];
|
|
||||||
|
|
||||||
config = lib.mkIf config.sysconfig.services.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;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -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 {
|
||||||
@@ -117,7 +121,7 @@
|
|||||||
backupFileExtension = "backup";
|
backupFileExtension = "backup";
|
||||||
extraSpecialArgs = { inherit inputs; };
|
extraSpecialArgs = { inherit inputs; };
|
||||||
useUserPackages = true;
|
useUserPackages = true;
|
||||||
sharedModules = [
|
sharedModules = [
|
||||||
inputs.sops-nix.homeManagerModules.sops
|
inputs.sops-nix.homeManagerModules.sops
|
||||||
];
|
];
|
||||||
users = builtins.listToAttrs (builtins.map
|
users = builtins.listToAttrs (builtins.map
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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 ];
|
||||||
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user