pixi should be fixed as soon as possible, idk how this can play out between deploy and prod

nix-components
pegasust 2022-11-30 00:53:52 -07:00
parent 164d3c19eb
commit bbd41b7272
2 changed files with 54 additions and 1 deletions

View File

@ -20,7 +20,7 @@ let nvim_pkgs = [
pkgs.fd pkgs.fd
# Python3 as alternative to bash scripts :^) # Python3 as alternative to bash scripts :^)
(pkgs.python310Full.withPackages (pypkgs: [ (pkgs.python310Full.withPackages (pypkgs: [
pypkgs.python-lsp-server # python-lsp. Now we'll have to tell mason to look for this # pypkgs.python-lsp-server # python-lsp. Now we'll have to tell mason to look for this
pypkgs.pynvim # nvim provider pypkgs.pynvim # nvim provider
pypkgs.ujson # pylsp seems to rely on this. satisfy it lol pypkgs.ujson # pylsp seems to rely on this. satisfy it lol
])) ]))

View File

@ -23,6 +23,59 @@
}; };
}; };
}; };
nixosConfigurations.lizzi = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
./configuration.nix
];
specialArgs = {
hostname = "lizzi";
_networking = {
interfaces.eth1.ipv4.addresses = [{
address = "71.0.0.1";
prefixLength = 24;
}];
firewall = {
enable = false;
allowedTCPPorts = [ 80 443 22 ];
};
useDHCP = false;
interfaces.eth0.useDHCP = true;
};
_boot.loader.grub.enable = true;
_boot.loader.grub.version = 2;
_services.openssh = {
permitRootLogin = "no";
enable = true;
};
_services.gitea = {
enable = true;
stateDir = "/gitea";
rootUrl = "https://git.pegasust.com";
settings = {
repository = {
"ENABLE_PUSH_CREATE_USER" = true;
"ENABLE_PUSH_CREATE_ORG" = true;
};
};
};
_services.nginx = {
enable = true;
clientMaxBodySize = "100m"; # Allow big file transfers over git :^)
recommendedGzipSettings = true;
recommendedOptimisation = true;
recommendedProxySettings = true;
recommendedTlsSettings = true;
virtualHosts."git.pegasust.com" = {
# Gitea hostname
sslCertificate = "/var/lib/acme/git.pegasust.com/fullchain.pem";
sslCertificateKey = "/var/lib/acme/git.pegasust.com/key.pem";
forceSSL = true; # Runs on port 80 and 443
locations."/".proxyPass = "http://localhost:3000/"; # Proxy to Gitea
};
};
};
};
# Generic machine # Generic machine
nixosConfigurations.pixi = nixpkgs.lib.nixosSystem { nixosConfigurations.pixi = nixpkgs.lib.nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";