mirror of
https://github.com/Ascyii/nixos.git
synced 2026-01-01 06:44:26 -05:00
Some lsp refactor. Made webdav finally work with some internet search
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
# Scanning over the network support
|
||||
hardware.sane.enable = true;
|
||||
hardware.sane.extraBackends = [ pkgs.sane-airscan ];
|
||||
hardware.sane.disabledDefaultBackends = [ "escl" ];
|
||||
services.udev.packages = [ pkgs.sane-airscan ];
|
||||
services.avahi.enable = true;
|
||||
services.avahi.nssmdns = true;
|
||||
# Scanning over the network support
|
||||
hardware.sane.enable = true;
|
||||
hardware.sane.extraBackends = [ pkgs.sane-airscan ];
|
||||
hardware.sane.disabledDefaultBackends = [ "escl" ];
|
||||
services.udev.packages = [ pkgs.sane-airscan ];
|
||||
services.avahi.enable = true;
|
||||
services.avahi.nssmdns = true;
|
||||
}
|
||||
|
||||
@@ -1,20 +1,22 @@
|
||||
{ inputs, ... }:
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
imports = [ inputs.sops-nix.nixosModules.sops ];
|
||||
|
||||
# For web mounting
|
||||
services.davfs2.enable = true;
|
||||
|
||||
# Maybe the failed encryption is due to the btrfs system please remove this in the future
|
||||
# Load the secret
|
||||
sops = {
|
||||
defaultSopsFile = ./../../secrets.yaml;
|
||||
age.keyFile = "/home/jonas/.config/sops/age/keys.txt";
|
||||
secrets = { webdav_secret = { path = "/etc/davfs2/secrets"; }; };
|
||||
secrets = {
|
||||
webdav_authstring = {
|
||||
mode = "0600";
|
||||
path = "/etc/davfs2/secrets";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
systemd.mounts = [{
|
||||
description = "WebDAV mount point";
|
||||
description = "Webdav mount point";
|
||||
after = [ "network-online.target" ];
|
||||
wants = [ "network-online.target" ];
|
||||
what = "https://dav.hahn1.one";
|
||||
where = "/mnt/webdav";
|
||||
@@ -22,4 +24,12 @@
|
||||
options = "uid=1000,gid=1000,file_mode=0664,dir_mode=2775,_netdev";
|
||||
mountConfig.TimeoutSec = "5s";
|
||||
}];
|
||||
|
||||
# Is this too much power drain?
|
||||
systemd.automounts = [{
|
||||
description = "Webdav automount";
|
||||
where = "/mnt/webdav";
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
automountConfig = { TimeoutIdleSec = "2m"; };
|
||||
}];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user