meta: Build fixes
This commit is contained in:
parent
cd6c59354d
commit
6ef09611a2
6 changed files with 28 additions and 80 deletions
39
flake.nix
39
flake.nix
|
@ -12,8 +12,6 @@
|
|||
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
||||
nixos-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
nixos-hardware.url = "github:nixos/nixos-hardware";
|
||||
# my-nixpkgs.url = "github:ModdedGamers/nixpkgs/python-gasp-init";
|
||||
# my-nixpkgs.url = "path:/home/mrhedgehog/software/nixpkgs/coq_nvim-patches/";
|
||||
agenix.url = "github:ryantm/agenix";
|
||||
agenix.inputs.nixpkgs.follows = "nixpkgs";
|
||||
alejandra.url = "github:kamadorueda/alejandra";
|
||||
|
@ -48,7 +46,6 @@
|
|||
nixpkgs,
|
||||
nixos-unstable,
|
||||
nixos-hardware,
|
||||
# my-nixpkgs,
|
||||
agenix,
|
||||
alejandra,
|
||||
doom-emacs,
|
||||
|
@ -67,7 +64,6 @@
|
|||
wayland,
|
||||
}: let
|
||||
alejandra-overlay = final: prev: {alejandra = alejandra.defaultPackage.${prev.system};};
|
||||
# my-nixpkgs-overlay = final: prev: {my-nixpkgs = import my-nixpkgs {inherit system;};};
|
||||
nixpkgs-update-overlay = final: prev: {nixpkgs-update = nixpkgs-update.defaultPackage.${prev.system};};
|
||||
my-pkgs = final: prev: {my-pkgs = self.packages."${prev.system}";};
|
||||
|
||||
|
@ -83,7 +79,6 @@
|
|||
overlays = [
|
||||
# (import ./pkgs/default.nix {inherit inputs;})
|
||||
(import ./overlays/sumneko.nix)
|
||||
# my-nixpkgs-overlay
|
||||
my-pkgs
|
||||
alejandra-overlay
|
||||
emacs.overlay
|
||||
|
@ -98,20 +93,6 @@
|
|||
};
|
||||
|
||||
lib = nixpkgs.lib;
|
||||
|
||||
nixos-gen-config = {
|
||||
pkgs = pkgs;
|
||||
modules = [
|
||||
./modules/caddy.nix
|
||||
./hosts/prefect/configuration.nix
|
||||
{inherit inputs pkgs;}
|
||||
];
|
||||
};
|
||||
defaultSystem = {
|
||||
modules = [
|
||||
./modules/caddy.nix
|
||||
];
|
||||
};
|
||||
in {
|
||||
packages.${system} = {
|
||||
"caddy" = pkgs.callPackage ./pkgs/caddy.nix {};
|
||||
|
@ -120,24 +101,6 @@
|
|||
"taskwarrior-tui" = pkgs.callPackage ./pkgs/taskwarrior-tui.nix {};
|
||||
"tokyo-night-gtk" = pkgs.callPackage ./pkgs/tokyo-night-gtk.nix {};
|
||||
"pywalfox" = pkgs.callPackage ./pkgs/pywalfox.nix {};
|
||||
|
||||
# NixOS image builders
|
||||
iso = nixos-generators.nixosGenerate {
|
||||
inherit (nixos-gen-config) pkgs modules;
|
||||
format = "iso";
|
||||
};
|
||||
kexec = nixos-generators.nixosGenerate {
|
||||
inherit (nixos-gen-config) pkgs modules;
|
||||
format = "kexec-bundle";
|
||||
};
|
||||
vm = nixos-generators.nixosGenerate {
|
||||
inherit (nixos-gen-config) pkgs modules;
|
||||
format = "vm";
|
||||
};
|
||||
qemu-img = nixos-generators.nixosGenerate {
|
||||
inherit (nixos-gen-config) pkgs modules;
|
||||
format = "qcow";
|
||||
};
|
||||
};
|
||||
|
||||
nixosConfigurations.marvin = lib.nixosSystem {
|
||||
|
@ -147,7 +110,7 @@
|
|||
./hosts/marvin/bootloader.nix
|
||||
./modules/caddy.nix
|
||||
];
|
||||
specialArgs = {inherit self inputs;};
|
||||
specialArgs = {inherit self inputs pkgs;};
|
||||
};
|
||||
nixosConfigurations.prefect = lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
|
|
|
@ -14,11 +14,11 @@
|
|||
};
|
||||
kernelPackages = pkgs.linuxPackages_latest;
|
||||
supportedFilesystems = lib.mkForce ["btrfs" "vfat" "f2fs"];
|
||||
};
|
||||
initrd = {
|
||||
availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" ];
|
||||
kernelModules = [ ];
|
||||
};
|
||||
kernelModules = [ "kvm-amd" ];
|
||||
extraModulePackages = [ ];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{
|
||||
{ lib, ...}: {
|
||||
networking = {
|
||||
hostName = "marvin";
|
||||
enableIPv6 = true;
|
||||
|
@ -11,23 +11,23 @@
|
|||
enable = true;
|
||||
};
|
||||
wireless.enable = false;
|
||||
wireguard = {
|
||||
enable = true;
|
||||
interfaces = {
|
||||
wg42 = {
|
||||
allowedIPsAsRoutes = true;
|
||||
ips = [ "172.20.43.110/32" ];
|
||||
peers = [
|
||||
{
|
||||
allowedIPs = [ "172.20.0.0/14" ];
|
||||
dynamicEndpointRefreshSeconds = 10;
|
||||
endpoint = "65.108.0.219:488";
|
||||
persistentKeepalive = 25;
|
||||
publicKey = "e6kp9sca4XIzncKa9GEQwyOnMjje299Xg9ZdgXWMwHg=";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
# wireguard = {
|
||||
# enable = true;
|
||||
# interfaces = {
|
||||
# wg42 = {
|
||||
# allowedIPsAsRoutes = true;
|
||||
# ips = [ "172.20.43.110/32" ];
|
||||
# peers = [
|
||||
# {
|
||||
# allowedIPs = [ "172.20.0.0/14" ];
|
||||
# dynamicEndpointRefreshSeconds = 10;
|
||||
# endpoint = "65.108.0.219:488";
|
||||
# persistentKeepalive = 25;
|
||||
# publicKey = "e6kp9sca4XIzncKa9GEQwyOnMjje299Xg9ZdgXWMwHg=";
|
||||
# }
|
||||
# ];
|
||||
# };
|
||||
# };
|
||||
# };
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
{
|
||||
lib,
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
services.caddy = {
|
||||
|
@ -29,6 +30,5 @@
|
|||
reverse_proxy http://localhost:4000
|
||||
}
|
||||
'';
|
||||
envFile = config.age.secrets.marvinCfToken.path;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -262,21 +262,6 @@ in {
|
|||
certificates.
|
||||
'';
|
||||
};
|
||||
|
||||
token = mkOption {
|
||||
default = "";
|
||||
type = types.str;
|
||||
description = ''
|
||||
Cloudflare auth token. Suggested to not store this in plain text.
|
||||
'';
|
||||
};
|
||||
envFile = mkOption {
|
||||
default = /var/caddy/env;
|
||||
type = types.path;
|
||||
description = ''
|
||||
A file that caddy reads environment variables from.
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
# implementation
|
||||
|
|
|
@ -23,7 +23,7 @@ ${imports}
|
|||
in buildGoModule rec {
|
||||
pname = "caddy";
|
||||
version = "2.5.1";
|
||||
runVend = true;
|
||||
proxyVendor = true;
|
||||
subPackages = [ "cmd/caddy" ];
|
||||
|
||||
src = fetchFromGitHub {
|
||||
|
|
Loading…
Reference in a new issue