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

View File

@ -5,7 +5,8 @@
{
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" ];
@ -14,12 +15,14 @@
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/6d59bd4b-439d-4480-897c-4480ea6fbe56";
{
device = "/dev/disk/by-uuid/6d59bd4b-439d-4480-897c-4480ea6fbe56";
fsType = "ext4";
};
fileSystems."/data" =
{ device = "/dev/disk/by-uuid/01a351b8-cf66-4a31-9804-0b4145e69153";
{
device = "/dev/disk/by-uuid/01a351b8-cf66-4a31-9804-0b4145e69153";
fsType = "btrfs";
};

View File

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