Cleanup and fixed
This commit is contained in:
@@ -11,7 +11,7 @@
|
|||||||
gamemode
|
gamemode
|
||||||
#gamescope
|
#gamescope
|
||||||
#mangohud
|
#mangohud
|
||||||
#prismlauncher
|
prismlauncher
|
||||||
openttd-jgrpp
|
openttd-jgrpp
|
||||||
#bottles
|
#bottles
|
||||||
lutris
|
lutris
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
|
|
||||||
{ config, lib, ... }:{
|
{ config, lib, ... }:{
|
||||||
config = lib.mkIf (config.syscfg.server.nftables.enable) {
|
config = lib.mkIf (config.syscfg.server ? nftables.enable) {
|
||||||
boot.kernel.sysctl = {
|
boot.kernel.sysctl = {
|
||||||
"net.ipv4.ip_forward" = 1;
|
"net.ipv4.ip_forward" = 1;
|
||||||
"net.ipv6.conf.all.forwarding" = 1;
|
"net.ipv6.conf.all.forwarding" = 1;
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ let
|
|||||||
allowedUsernames = map (u: u.username) config.syscfg.users;
|
allowedUsernames = map (u: u.username) config.syscfg.users;
|
||||||
activeUsers = lib.filterAttrs (name: _: lib.elem name allowedUsernames) groupedUsers;
|
activeUsers = lib.filterAttrs (name: _: lib.elem name allowedUsernames) groupedUsers;
|
||||||
in {
|
in {
|
||||||
config = lib.mkIf (config.syscfg.server.nftables.enable) {
|
config = lib.mkIf (config.syscfg.server ? nftables.enable) {
|
||||||
services.openssh = {
|
services.openssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
ports = [ 422 ];
|
ports = [ 422 ];
|
||||||
|
|||||||
@@ -21,16 +21,5 @@
|
|||||||
game = true;
|
game = true;
|
||||||
develop = true;
|
develop = true;
|
||||||
};
|
};
|
||||||
net = {
|
|
||||||
wlp = {
|
|
||||||
enable = false;
|
|
||||||
nif = "NA";
|
|
||||||
};
|
|
||||||
wg = {
|
|
||||||
enable = false;
|
|
||||||
ip4 = "";
|
|
||||||
ip6 = "";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,7 +18,6 @@
|
|||||||
cli = true;
|
cli = true;
|
||||||
};
|
};
|
||||||
net = {
|
net = {
|
||||||
wlp = { enable = false; };
|
|
||||||
wg = {
|
wg = {
|
||||||
enable = true;
|
enable = true;
|
||||||
ip4 = "10.10.1.1/32";
|
ip4 = "10.10.1.1/32";
|
||||||
|
|||||||
@@ -1,11 +1,12 @@
|
|||||||
{
|
{
|
||||||
syscfg = {
|
syscfg = {
|
||||||
hostname = "sandbox";
|
hostname = "gateway";
|
||||||
type = "nixos";
|
type = "nixos";
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
defaultUser = "sora";
|
defaultUser = "sora";
|
||||||
users = [{
|
users = [{
|
||||||
username = "sora";
|
username = "sora";
|
||||||
|
pubssh = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINrrUB0KBjeAKPVG2Bdcm4mI9AMab7y97SOCdEHGogYv sora@gateway";
|
||||||
wm = "-";
|
wm = "-";
|
||||||
git = {
|
git = {
|
||||||
email = "soraefir+git@helcel";
|
email = "soraefir+git@helcel";
|
||||||
@@ -14,27 +15,11 @@
|
|||||||
};
|
};
|
||||||
}];
|
}];
|
||||||
make = {
|
make = {
|
||||||
gui = false;
|
|
||||||
cli = true;
|
cli = true;
|
||||||
virt = true;
|
|
||||||
power = false;
|
|
||||||
game = false;
|
|
||||||
develop = false;
|
|
||||||
};
|
|
||||||
net = {
|
|
||||||
wlp = { enable = false; };
|
|
||||||
wg = { enable = false; };
|
|
||||||
};
|
};
|
||||||
server = {
|
server = {
|
||||||
hostDomain = "test.helcel.net";
|
openssh = true;
|
||||||
mailDomain = "mail.helcel.net";
|
web = true;
|
||||||
mailServer = "mail.helcel.net";
|
|
||||||
|
|
||||||
dbHost = "localhost";
|
|
||||||
dbPort = "3306";
|
|
||||||
|
|
||||||
configPath = "/home/media/config";
|
|
||||||
dataPath = "/home/media/data";
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,14 +1,27 @@
|
|||||||
{ config, lib, pkgs, modulesPath, ... }: {
|
{ config, lib, pkgs, modulesPath, ... }: {
|
||||||
imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];
|
imports = [ (modulesPath + "/profiles/qemu-guest.nix" ) ];
|
||||||
|
|
||||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
boot.loader.grub.device = "/dev/sda";
|
|
||||||
|
boot.loader.systemd-boot.enable = lib.mkForce false;
|
||||||
|
boot.loader.grub = {
|
||||||
|
enable = true;
|
||||||
|
device = "/dev/sda";
|
||||||
|
efiSupport = true;
|
||||||
|
};
|
||||||
|
|
||||||
boot.initrd.availableKernelModules =
|
boot.initrd.availableKernelModules =
|
||||||
[ "ata_piix" "uhci_hcd" "xen_blkfront" "vmw_pvscsi" ];
|
[ "ata_piix" "uhci_hcd" "xen_blkfront" "vmw_pvscsi" ];
|
||||||
boot.initrd.kernelModules = [ "nvme" ];
|
boot.initrd.kernelModules = [ "nvme" ];
|
||||||
|
|
||||||
fileSystems."/" = {
|
fileSystems."/" = {
|
||||||
device = "/dev/sda3";
|
device = "/dev/disk/by-uuid/abc944c6-484a-4abe-a675-906e3781d71f";
|
||||||
fsType = "btrfs";
|
fsType = "btrfs";
|
||||||
};
|
};
|
||||||
|
fileSystems."/boot" = {
|
||||||
|
device = "/dev/disk/by-uuid/C555-300B";
|
||||||
|
fsType = "vfat";
|
||||||
|
options = [ "defaults" ];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user