added dronefile
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing

This commit is contained in:
Jake Hillion 2022-11-13 16:37:00 +00:00
parent 9adb676f7c
commit bff75ff38e
9 changed files with 35 additions and 13 deletions

16
.drone.yml Normal file
View File

@ -0,0 +1,16 @@
---
kind: pipeline
type: docker
name: default
steps:
- name: lint
image: nixos/nix:2.11.1
commands:
- nix-env -i nixpkgs-fmt
- nixpkgs-fmt --check .
---
kind: signature
hmac: d481135de9de842e2af6d0cc9729577477c8906d5d862c1a54cf1e57f823f134
...

View File

@ -5,7 +5,7 @@
networking.hostName = "microserver"; networking.hostName = "microserver";
networking.domain = "home.ts.hillion.co.uk"; networking.domain = "home.ts.hillion.co.uk";
imports = [ imports = [
../../modules/common/default.nix ../../modules/common/default.nix
../../modules/secrets/tailscale/microserver.home.ts.hillion.co.uk.nix ../../modules/secrets/tailscale/microserver.home.ts.hillion.co.uk.nix

View File

@ -11,7 +11,7 @@
enable = true; enable = true;
version = 4; version = 4;
}; };
imports = [ imports = [
./hardware-configuration.nix ./hardware-configuration.nix
../../modules/common/default.nix ../../modules/common/default.nix

View File

@ -5,7 +5,8 @@
{ {
imports = imports =
[ (modulesPath + "/installer/scan/not-detected.nix") [
(modulesPath + "/installer/scan/not-detected.nix")
]; ];
boot.initrd.availableKernelModules = [ "xhci_pci" ]; boot.initrd.availableKernelModules = [ "xhci_pci" ];
@ -14,7 +15,8 @@
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ ];
fileSystems."/" = fileSystems."/" =
{ device = "/dev/disk/by-uuid/44444444-4444-4444-8888-888888888888"; {
device = "/dev/disk/by-uuid/44444444-4444-4444-8888-888888888888";
fsType = "ext4"; fsType = "ext4";
}; };

View File

@ -5,7 +5,7 @@
networking.hostName = "vm"; networking.hostName = "vm";
networking.domain = "strangervm.ts.hillion.co.uk"; networking.domain = "strangervm.ts.hillion.co.uk";
imports = [ imports = [
../../modules/common/default.nix ../../modules/common/default.nix
../../modules/resilio/default.nix ../../modules/resilio/default.nix

View File

@ -5,7 +5,8 @@
{ {
imports = imports =
[ (modulesPath + "/profiles/qemu-guest.nix") [
(modulesPath + "/profiles/qemu-guest.nix")
]; ];
boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod" ]; boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod" ];
@ -14,12 +15,14 @@
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ ];
fileSystems."/" = fileSystems."/" =
{ device = "/dev/disk/by-uuid/6d59bd4b-439d-4480-897c-4480ea6fbe56"; {
device = "/dev/disk/by-uuid/6d59bd4b-439d-4480-897c-4480ea6fbe56";
fsType = "ext4"; fsType = "ext4";
}; };
fileSystems."/data" = fileSystems."/data" =
{ device = "/dev/disk/by-uuid/01a351b8-cf66-4a31-9804-0b4145e69153"; {
device = "/dev/disk/by-uuid/01a351b8-cf66-4a31-9804-0b4145e69153";
fsType = "btrfs"; fsType = "btrfs";
}; };

View File

@ -6,7 +6,7 @@
./ssh.nix ./ssh.nix
./tailscale.nix ./tailscale.nix
]; ];
nix = { nix = {
settings.experimental-features = [ "nix-command" "flakes" ]; settings.experimental-features = [ "nix-command" "flakes" ];
settings = { settings = {

View File

@ -3,7 +3,7 @@
{ {
options.resilioFolders = lib.mkOption { options.resilioFolders = lib.mkOption {
type = with lib.types; uniq (listOf attrs); type = with lib.types; uniq (listOf attrs);
default = []; default = [ ];
}; };
config.services.resilio.sharedFolders = config.services.resilio.sharedFolders =
@ -11,13 +11,14 @@
mkFolder = name: secret: { mkFolder = name: secret: {
directory = "${config.services.resilio.directoryRoot}/${name}"; directory = "${config.services.resilio.directoryRoot}/${name}";
secret = "${secret}"; secret = "${secret}";
knownHosts = []; knownHosts = [ ];
searchLAN = true; searchLAN = true;
useDHT = true; useDHT = true;
useRelayServer = true; useRelayServer = true;
useSyncTrash = false; useSyncTrash = false;
useTracker = true; useTracker = true;
}; };
in builtins.map (folder: mkFolder folder.name folder.secret) config.resilioFolders; in
builtins.map (folder: mkFolder folder.name folder.secret) config.resilioFolders;
} }

View File

@ -8,7 +8,7 @@
services.caddy = { services.caddy = {
enable = true; enable = true;
virtualHosts."ts.hillion.co.uk".extraConfig = '' virtualHosts."ts.hillion.co.uk".extraConfig = ''
reverse_proxy http://10.48.62.14:8080 reverse_proxy http://10.48.62.14:8080
''; '';