feat: add enable option for syncthing
This commit is contained in:
parent
b090bf38ab
commit
807eb7efba
7 changed files with 19 additions and 13 deletions
|
|
@ -22,6 +22,7 @@
|
|||
bluetooth.enable = false;
|
||||
printing.enable = true;
|
||||
vpn.enable = true;
|
||||
sync.enable = true;
|
||||
|
||||
devenv.enable = true;
|
||||
virtualisation.enable = true;
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@
|
|||
bluetooth.enable = true;
|
||||
printing.enable = true;
|
||||
vpn.enable = true;
|
||||
sync.enable = true;
|
||||
|
||||
devenv.enable = true;
|
||||
virtualisation.enable = true;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,11 @@
|
|||
{ ... }: {
|
||||
{ ... }@inputs: {
|
||||
|
||||
imports = [ ./hardware.nix ];
|
||||
imports = [
|
||||
./hardware.nix
|
||||
inputs.nixos-hardware.nixosModules.common-pc-laptop
|
||||
inputs.nixos-hardware.nixosModules.common-pc-laptop-acpi_call
|
||||
inputs.nixos-hardware.nixosModules.common-pc-laptop-ssd
|
||||
];
|
||||
|
||||
networking.hostName = "W530";
|
||||
|
||||
|
|
@ -8,14 +13,15 @@
|
|||
|
||||
gui = {
|
||||
enable = true;
|
||||
greeter.enable = true;
|
||||
flavour = [ "sway" "i3" ];
|
||||
greeter.enable = false;
|
||||
flavour = [ "sway" ];
|
||||
};
|
||||
nvidia.enable = false;
|
||||
audio.enable = true;
|
||||
bluetooth.enable = true;
|
||||
printing.enable = true;
|
||||
vpn.enable = true;
|
||||
sync.enable = false;
|
||||
|
||||
devenv.enable = true;
|
||||
virtualisation.enable = true;
|
||||
|
|
|
|||
|
|
@ -1,15 +1,9 @@
|
|||
{ config, lib, modulesPath, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[
|
||||
(modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "xhci_pci" "ehci_pci" "ahci" "firewire_ohci" "usb_storage" "sd_mod" "sr_mod" "sdhci_pci" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ ];
|
||||
boot.extraModulePackages = [ ];
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
|
||||
|
|
|
|||
|
|
@ -38,6 +38,10 @@
|
|||
enable = mkEnableOption "vpn";
|
||||
};
|
||||
|
||||
sync = {
|
||||
enable = mkEnableOption "sync";
|
||||
};
|
||||
|
||||
devenv = {
|
||||
enable = mkEnableOption "devenv";
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
{ ... }: {
|
||||
{ lib, config, ... }: lib.mkIf config.bchmnn.sync.enable {
|
||||
|
||||
services.syncthing = {
|
||||
enable = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue