Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
spacefault committed Mar 3, 2024
1 parent 8ec829f commit 80960ce
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 34 deletions.
1 change: 0 additions & 1 deletion home/home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,3 @@
./zsh.nix
];
}

1 change: 0 additions & 1 deletion home/zsh.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,3 @@
};
};
}

5 changes: 1 addition & 4 deletions minecraft/default.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{
pkgs,
...
}: {
{pkgs, ...}: {
services.minecraft-server = {
enable = true;
eula = true;
Expand Down
40 changes: 22 additions & 18 deletions system/hardware-config.nix
Original file line number Diff line number Diff line change
@@ -1,29 +1,33 @@
# Do not modify this file! It was generated by ‘nixos-generate-config’
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }:

{
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
config,
lib,
pkgs,
modulesPath,
...
}: {
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];

boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "ahci" "usbhid" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
boot.initrd.availableKernelModules = ["xhci_pci" "nvme" "ahci" "usbhid" "usb_storage" "sd_mod"];
boot.initrd.kernelModules = [];
boot.kernelModules = ["kvm-amd"];
boot.extraModulePackages = [];

fileSystems."/" =
{ device = "/dev/disk/by-uuid/6e5cf932-0bf8-4a18-9eeb-ebe67f00ef6c";
fsType = "ext4";
};
fileSystems."/" = {
device = "/dev/disk/by-uuid/6e5cf932-0bf8-4a18-9eeb-ebe67f00ef6c";
fsType = "ext4";
};

fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/3D04-1D95";
fsType = "vfat";
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/3D04-1D95";
fsType = "vfat";
};

swapDevices = [ ];
swapDevices = [];

# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's
Expand Down
8 changes: 4 additions & 4 deletions system/networking.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
networking = {
hostName = "grade-mc-server";
networkmanager.enable = true;
enableIPv6 = false;
enableIPv6 = false;
firewall = {
enable = true;
allowedTCPPorts = [ "25565" "22" ];
allowedUDPPorts = [ "25565" "22" ];
};
allowedTCPPorts = ["25565" "22"];
allowedUDPPorts = ["25565" "22"];
};
};
}
2 changes: 1 addition & 1 deletion system/services.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
enable = true;
flake = "github:gradetools/minecraft-nix#grade-mc-server";
dates = "minutely";
flags = [ "--option" "tarball-ttl" "0" ];
flags = ["--option" "tarball-ttl" "0"];
};
services = {
devmon.enable = true;
Expand Down
11 changes: 6 additions & 5 deletions system/users.nix
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
{ config
, pkgs
, ...
{
config,
pkgs,
...
}: {
users.users.leviticusc = {
isNormalUser = true;
description = "sysadmin";
extraGroups = [ "networkmanager" "wheel" "audio" "video" "input" ];
packages = with pkgs; [ ];
extraGroups = ["networkmanager" "wheel" "audio" "video" "input"];
packages = with pkgs; [];
shell = pkgs.zsh;
initialHashedPassword = "173b4y23b4y123b4u123by412bu34b1y2u3b1y2u3b4u1i3b4";
# openssh.authorizedKeys.keyFiles = [
Expand Down

0 comments on commit 80960ce

Please sign in to comment.