Compare commits
No commits in common. "cf30b5d7bedb6c165db8d794f503aaafa86e29f5" and "ed8c52cb0e6d03c17eb0d39bb2a6c30f7ea32e1e" have entirely different histories.
cf30b5d7be
...
ed8c52cb0e
@ -13,20 +13,10 @@
|
|||||||
powerManagement.enable = true;
|
powerManagement.enable = true;
|
||||||
|
|
||||||
nix = {
|
nix = {
|
||||||
|
settings.experimental-features = [ "nix-command" "flakes" ];
|
||||||
gc.automatic = true;
|
gc.automatic = true;
|
||||||
settings = {
|
|
||||||
experimental-features = [ "nix-command" "flakes" ];
|
|
||||||
substituters = [
|
|
||||||
"http://nix.dhilton.xyz/"
|
|
||||||
"https://cache.nixos.org/"
|
|
||||||
];
|
|
||||||
trusted-public-keys = [
|
|
||||||
"nix.dhilton.xyz:MOW060dF1A0/UXmPZBue9KMxCO13PHYFwx1X9hcdYZ4="
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
hostName = "laptop";
|
hostName = "laptop";
|
||||||
networkmanager.enable = true;
|
networkmanager.enable = true;
|
||||||
|
|||||||
@ -2,23 +2,13 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
imports = [ ./hardware-configuration.nix ./service.nix ];
|
imports = [ ./hardware-configuration.nix ./service.nix ];
|
||||||
powerManagement.enable = false;
|
powerManagement.enable = true;
|
||||||
system.autoUpgrade.enable = true;
|
system.autoUpgrade.enable = true;
|
||||||
networking.networkmanager.enable = true;
|
networking.networkmanager.enable = true;
|
||||||
boot.kernelParams = [ "intel_pstate=active" ];
|
|
||||||
|
|
||||||
nix = {
|
nix = {
|
||||||
|
settings.experimental-features = [ "nix-command" "flakes" ];
|
||||||
gc.automatic = true;
|
gc.automatic = true;
|
||||||
settings = {
|
|
||||||
experimental-features = [ "nix-command" "flakes" ];
|
|
||||||
substituters = [
|
|
||||||
"http://nix.dhilton.xyz/"
|
|
||||||
"https://cache.nixos.org/"
|
|
||||||
];
|
|
||||||
trusted-public-keys = [
|
|
||||||
"nix.dhilton.xyz:MOW060dF1A0/UXmPZBue9KMxCO13PHYFwx1X9hcdYZ4="
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
@ -39,8 +29,6 @@
|
|||||||
|
|
||||||
environment.systemPackages = with pkgs; [ microcodeIntel ];
|
environment.systemPackages = with pkgs; [ microcodeIntel ];
|
||||||
|
|
||||||
hardware.bluetooth.enable = true;
|
|
||||||
hardware.bluetooth.powerOnBoot = true;
|
|
||||||
hardware.graphics = {
|
hardware.graphics = {
|
||||||
enable = true;
|
enable = true;
|
||||||
extraPackages = with pkgs; [
|
extraPackages = with pkgs; [
|
||||||
@ -50,7 +38,6 @@
|
|||||||
vaapiVdpau
|
vaapiVdpau
|
||||||
libvdpau-va-gl
|
libvdpau-va-gl
|
||||||
vpl-gpu-rt
|
vpl-gpu-rt
|
||||||
neovim
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -2,8 +2,7 @@
|
|||||||
|
|
||||||
networking.firewall = {
|
networking.firewall = {
|
||||||
enable = true;
|
enable = true;
|
||||||
allowedTCPPorts = [ 80 443 22 26615 ];
|
allowedTCPPorts = [ 80 443 22 ];
|
||||||
allowedUDPPorts = [ 26615 ];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
security.acme = {
|
security.acme = {
|
||||||
@ -20,27 +19,11 @@
|
|||||||
|
|
||||||
fail2ban = { enable = true; };
|
fail2ban = { enable = true; };
|
||||||
|
|
||||||
postgresql = { enable = true; };
|
|
||||||
|
|
||||||
i2p = { enable = true; };
|
|
||||||
|
|
||||||
nix-serve = {
|
|
||||||
enable = true;
|
|
||||||
secretKeyFile = "/var/cache-priv-key.pem";
|
|
||||||
};
|
|
||||||
|
|
||||||
ollama = {
|
|
||||||
enable = true;
|
|
||||||
package = pkgs.ollama.overrideAttrs (oldAttrs: {
|
|
||||||
NIX_CFLAGS_COMPILE = "${oldAttrs.NIX_CFLAGS_COMPILE or ""} -mavx2 -mfma -march=native -O3";
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
gitea = {
|
gitea = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
service.DISABLE_REGISTRATION = true;
|
service.DISABLE_REGISTRATION = true;
|
||||||
service.ENABLE_PUSH_CREATE_USER = true;
|
service.ENABLE_PUSH_CREATE_USER = true;
|
||||||
server = {
|
server = {
|
||||||
HTTP_PORT = 8001;
|
HTTP_PORT = 8001;
|
||||||
DOMAIN = "dhilton.xyz";
|
DOMAIN = "dhilton.xyz";
|
||||||
@ -66,7 +49,7 @@
|
|||||||
|
|
||||||
home-assistant = {
|
home-assistant = {
|
||||||
enable = true;
|
enable = true;
|
||||||
extraComponents = [ "wiz" "fail2ban" "ollama" "wyoming" ];
|
extraComponents = [ "wiz" "fail2ban" ];
|
||||||
config = {
|
config = {
|
||||||
default_config = { };
|
default_config = { };
|
||||||
"automation ui" = "!include automations.yaml";
|
"automation ui" = "!include automations.yaml";
|
||||||
@ -78,45 +61,11 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
wyoming = {
|
|
||||||
piper.servers."piperNix" = {
|
|
||||||
enable = true;
|
|
||||||
uri = "tcp://0.0.0.0:10200";
|
|
||||||
voice = "en-us-ryan-low";
|
|
||||||
};
|
|
||||||
faster-whisper.servers."whisperNix" = {
|
|
||||||
enable = true;
|
|
||||||
uri = "tcp://0.0.0.0:10300";
|
|
||||||
language = "en";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
searx = {
|
searx = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
server.port = 8005;
|
server.port = 8005;
|
||||||
server.secret_key = "secretlol";
|
server.secret_key = "secretlol";
|
||||||
search.formats = ["html" "json"];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
akkoma = {
|
|
||||||
enable = true;
|
|
||||||
initDb.enable = true;
|
|
||||||
config = {
|
|
||||||
":pleroma" = {
|
|
||||||
":instance" = {
|
|
||||||
name = "dhilton fedi";
|
|
||||||
description = "dhilton akkoma server";
|
|
||||||
email = "markers711@gmail.com";
|
|
||||||
registration_open = false;
|
|
||||||
};
|
|
||||||
"Pleroma.Web.Endpoint" = { url.host = "fed.dhilton.xyz"; };
|
|
||||||
};
|
|
||||||
};
|
|
||||||
nginx = {
|
|
||||||
enableACME = true;
|
|
||||||
forceSSL = true;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -168,10 +117,6 @@
|
|||||||
proxyWebsockets = true;
|
proxyWebsockets = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
"nix.dhilton.xyz" = {
|
|
||||||
locations."/".proxyPass = "http://127.0.0.1:5000";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user