setup server

This commit is contained in:
2024-06-15 02:00:49 -06:00
parent b66baa6c19
commit 8411094c67
13 changed files with 58 additions and 2626 deletions

View File

@@ -1,4 +1,4 @@
{ pkgs, ... }: {
{ ... }: {
imports = [ ./hardware-configuration.nix ../../base.nix ];
my = {
emacs.enable = true;
@@ -59,7 +59,6 @@
vaultwarden.enable = true;
};
};
fonts.fontconfig.enable = true;
networking = {
hostName = "miniserver";
firewall = {
@@ -78,7 +77,7 @@
"gccarch-alderlake"
];
in {
distributedBuilds = true;
settings.cores = 3;
buildMachines = [{
hostName = "workstation";
system = "x86_64-linux";
@@ -87,24 +86,8 @@
speedFactor = 1;
supportedFeatures = featuresList;
}];
settings = {
cores = 3;
auto-optimise-store = true;
trusted-users = [ "nixremote" ];
system-features = featuresList;
};
};
nixpkgs.config = {
allowUnfree = true;
permittedInsecurePackages = [ "openssl-1.1.1w" ];
};
security = {
rtkit.enable = true;
acme = {
acceptTerms = true;
defaults.email = "CaptainJawZ@outlook.com";
};
};
nixpkgs.config.permittedInsecurePackages = [ "openssl-1.1.1w" ];
users = {
groups.nixremote.gid = 555;
users.nixremote = {
@@ -117,9 +100,8 @@
];
};
};
environment.systemPackages = with pkgs; [ wget ];
services = {
btrfs.autoScrub.fileSystems = [ "/mnt/pool" ];
btrfs.autoScrub.fileSystems = [ "/" ];
# minidlna = {
# enable = true;
# openFirewall = true;