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;
|
bluetooth.enable = false;
|
||||||
printing.enable = true;
|
printing.enable = true;
|
||||||
vpn.enable = true;
|
vpn.enable = true;
|
||||||
|
sync.enable = true;
|
||||||
|
|
||||||
devenv.enable = true;
|
devenv.enable = true;
|
||||||
virtualisation.enable = true;
|
virtualisation.enable = true;
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,7 @@
|
||||||
bluetooth.enable = true;
|
bluetooth.enable = true;
|
||||||
printing.enable = true;
|
printing.enable = true;
|
||||||
vpn.enable = true;
|
vpn.enable = true;
|
||||||
|
sync.enable = true;
|
||||||
|
|
||||||
devenv.enable = true;
|
devenv.enable = true;
|
||||||
virtualisation.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";
|
networking.hostName = "W530";
|
||||||
|
|
||||||
|
|
@ -8,14 +13,15 @@
|
||||||
|
|
||||||
gui = {
|
gui = {
|
||||||
enable = true;
|
enable = true;
|
||||||
greeter.enable = true;
|
greeter.enable = false;
|
||||||
flavour = [ "sway" "i3" ];
|
flavour = [ "sway" ];
|
||||||
};
|
};
|
||||||
nvidia.enable = false;
|
nvidia.enable = false;
|
||||||
audio.enable = true;
|
audio.enable = true;
|
||||||
bluetooth.enable = true;
|
bluetooth.enable = true;
|
||||||
printing.enable = true;
|
printing.enable = true;
|
||||||
vpn.enable = true;
|
vpn.enable = true;
|
||||||
|
sync.enable = false;
|
||||||
|
|
||||||
devenv.enable = true;
|
devenv.enable = true;
|
||||||
virtualisation.enable = true;
|
virtualisation.enable = true;
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,9 @@
|
||||||
{ config, lib, modulesPath, ... }:
|
{ config, lib, modulesPath, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports =
|
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
||||||
[
|
|
||||||
(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.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.systemd-boot.enable = true;
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -38,6 +38,10 @@
|
||||||
enable = mkEnableOption "vpn";
|
enable = mkEnableOption "vpn";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
sync = {
|
||||||
|
enable = mkEnableOption "sync";
|
||||||
|
};
|
||||||
|
|
||||||
devenv = {
|
devenv = {
|
||||||
enable = mkEnableOption "devenv";
|
enable = mkEnableOption "devenv";
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
{ ... }: {
|
{ lib, config, ... }: lib.mkIf config.bchmnn.sync.enable {
|
||||||
|
|
||||||
services.syncthing = {
|
services.syncthing = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue