Fixes
This commit is contained in:
parent
5eecf7bdb7
commit
b1199c76bd
@ -65,6 +65,7 @@ with deviceSpecific; {
|
||||
"gid=${toString config.users.groups.smbgrp.gid}"
|
||||
];
|
||||
};
|
||||
# Samba Windows
|
||||
"/media/windows/files" = lib.mkIf (!isHost) {
|
||||
fsType = "cifs";
|
||||
device = "//192.168.0.100/Files";
|
||||
@ -88,6 +89,30 @@ with deviceSpecific; {
|
||||
"gid=${toString config.users.groups.users.gid}"
|
||||
];
|
||||
};
|
||||
# Samba Linux
|
||||
"/media/linux/files" = lib.mkIf (!isHost) {
|
||||
fsType = "cifs";
|
||||
device = "//192.168.0.100/files";
|
||||
options = [
|
||||
"user=${secrets.linux-samba.user}"
|
||||
"password=${secrets.linux-samba.password}"
|
||||
# "nofail"
|
||||
"uid=${toString config.users.users.alukard.uid}"
|
||||
"gid=${toString config.users.groups.users.gid}"
|
||||
];
|
||||
};
|
||||
"/media/linux/data" = lib.mkIf (!isHost) {
|
||||
fsType = "cifs";
|
||||
device = "//192.168.0.100/data";
|
||||
options = [
|
||||
"ro"
|
||||
"user=${secrets.linux-samba.user}"
|
||||
"password=${secrets.linux-samba.password}"
|
||||
# "nofail"
|
||||
"uid=${toString config.users.users.alukard.uid}"
|
||||
"gid=${toString config.users.groups.users.gid}"
|
||||
];
|
||||
};
|
||||
};
|
||||
swapDevices = [
|
||||
{
|
||||
|
@ -32,7 +32,7 @@ with deviceSpecific; {
|
||||
disable netbios = yes
|
||||
smb ports = 445
|
||||
|
||||
[Data]
|
||||
[data]
|
||||
path = /shared/data
|
||||
browsable = yes
|
||||
read only = yes
|
||||
@ -40,7 +40,7 @@ with deviceSpecific; {
|
||||
force directory mode = 2770
|
||||
valid users = @smbgrp
|
||||
|
||||
[Files]
|
||||
[files]
|
||||
path = /shared/files
|
||||
browsable = yes
|
||||
read only = no
|
||||
|
@ -40,10 +40,11 @@
|
||||
services.accounts-daemon.enable = true;
|
||||
|
||||
services.avahi.enable = true;
|
||||
services.avahi.ipv6 = true;
|
||||
# services.avahi.ipv6 = true;
|
||||
services.avahi.nssmdns = true;
|
||||
services.avahi.publish.enable = true;
|
||||
services.avahi.publish.addresses = true;
|
||||
services.avahi.publish.domain = true;
|
||||
|
||||
systemd.services.systemd-udev-settle.enable = false;
|
||||
|
||||
|
@ -68,7 +68,6 @@ in
|
||||
|
||||
config = mkMerge [
|
||||
(mkIf cfgC.enable {
|
||||
environment.systemPackages = with pkgs; [ (barrier.override { avahiWithLibdnssdCompat = true; }) ];
|
||||
systemd.user.services."barrier-client" = {
|
||||
after = [ "network.target" "graphical-session.target" ];
|
||||
description = "Barrier client";
|
||||
@ -79,7 +78,6 @@ in
|
||||
};
|
||||
})
|
||||
(mkIf cfgS.enable {
|
||||
environment.systemPackages = with pkgs; [ (barrier.override { avahiWithLibdnssdCompat = true; }) ];
|
||||
systemd.user.services."barrier-server" = {
|
||||
after = [ "network.target" "graphical-session.target" ];
|
||||
description = "Barrier server";
|
||||
|
BIN
secret.nix.gpg
BIN
secret.nix.gpg
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user