⚙️ Estinien configuration #14

Merged
wymiller merged 7 commits from estinien into master 2026-08-11 19:02:56 -05:00
2 changed files with 37 additions and 11 deletions
Showing only changes of commit 04518129d5 - Show all commits
+5 -11
View File
@@ -3,12 +3,7 @@
userName, userName,
nur, nur,
... ...
}: let }: {
nurPkgs = import "${nur.outPath}/pkgs" {
inherit pkgs;
hildibrand = nur.inputs.hildibrand.packages.${pkgs.stdenv.hostPlatform.system}.default;
};
in {
imports = [ imports = [
../../pwrMgmt ../../pwrMgmt
../../networking/core.nix ../../networking/core.nix
@@ -58,18 +53,18 @@ in {
}; };
environment.systemPackages = [ environment.systemPackages = [
nurPkgs.hildibrand nur.packages.${pkgs.stdenv.hostPlatform.system}.hildibrand
]; ];
systemd.services.vintagestory-server = { systemd.services.hildibrand = {
description = "Vintage Story Server"; description = "Hildibrand - trivia buzzer bot";
wantedBy = [ "multi-user.target" ]; wantedBy = [ "multi-user.target" ];
after = [ "network.target" ]; after = [ "network.target" ];
serviceConfig = { serviceConfig = {
Type = "simple"; Type = "simple";
User = userName; User = userName;
WorkingDirectory = "/home/${userName}"; WorkingDirectory = "/home/${userName}";
ExecStart = "${nurPkgs.hildibrand}/bin/hildibrand"; ExecStart = "${nur.packages.${pkgs.stdenv.hostPlatform.system}.hildibrand}/bin/hildibrand";
Restart = "on-failure"; Restart = "on-failure";
RestartSec = "5s"; RestartSec = "5s";
}; };
@@ -77,7 +72,6 @@ in {
# Add username to groups "wheel" and "video" - more may be added here later # Add username to groups "wheel" and "video" - more may be added here later
users = { users = {
groups.hazel = {};
users = { users = {
${userName} = { ${userName} = {
extraGroups = [ "wheel" "network" ]; extraGroups = [ "wheel" "network" ];
@@ -0,0 +1,32 @@
# 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 + "/profiles/qemu-guest.nix")
];
boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "virtio_pci" "virtio_scsi" "sr_mod" "virtio_blk" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/498ce176-f090-46d8-96bf-9e6141cffa19";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/09A6-B803";
fsType = "vfat";
options = [ "fmask=0022" "dmask=0022" ];
};
swapDevices =
[ { device = "/dev/disk/by-uuid/4a64a2ee-2b32-4e53-b00f-7b1f127162aa"; }
];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
}