Beeeeeeef is back for dinner

This commit is contained in:
Daniel Flanagan 2024-02-21 20:33:50 -06:00
parent d9fbabff3c
commit c2a246295b
Signed by: lytedev
GPG key ID: 5B2020A0F9921EF4
3 changed files with 30 additions and 25 deletions

View file

@ -100,9 +100,9 @@
# TODO: regular cron or something? # TODO: regular cron or something?
programs.nix-index = { programs.nix-index = {
enable = true; enable = true;
enableFishIntegration = true;
};
# maybe we can share somehow so things for nix-y systems and non-nix-y systems alike enableBashIntegration = config.programs.bash.enable;
# am I going to _have_ non-nix systems anymore? enableFishIntegration = config.programs.fish.enable;
enableZshIntegration = config.programs.zsh.enable;
};
} }

View file

@ -297,11 +297,11 @@ in {
}; };
}; };
# TODO: regular cron or something? # # TODO: regular cron or something?
programs.nix-index = { # programs.nix-index = {
enable = true; # enable = true;
enableFishIntegration = true; # # enableFishIntegration = true;
}; # };
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";

View file

@ -556,13 +556,18 @@ in {
# listenPort = 6767; # listenPort = 6767;
# }; # };
services.samba-wsdd.enable = true; services.samba-wsdd = {
enable = true;
};
services.samba = { services.samba = {
enable = true; enable = true;
openFirewall = true; openFirewall = true;
securityType = "user"; securityType = "user";
package = pkgs.sambaFull;
# not needed since I don't think I use printer sharing?
# https://nixos.wiki/wiki/Samba#Printer_sharing
# package = pkgs.sambaFull; # broken last I checked in nixpkgs?
extraConfig = '' extraConfig = ''
workgroup = WORKGROUP workgroup = WORKGROUP
@ -576,10 +581,10 @@ in {
hosts deny = 0.0.0.0/0 hosts deny = 0.0.0.0/0
guest account = nobody guest account = nobody
map to guest = bad user map to guest = bad user
load printers = yes
printing = cups
printcap name = cups
''; '';
# load printers = yes
# printing = cups
# printcap name = cups
shares = { shares = {
libre = { libre = {
path = "/storage/libre"; path = "/storage/libre";
@ -621,17 +626,17 @@ in {
"force user" = "daniel"; "force user" = "daniel";
"force group" = "users"; "force group" = "users";
}; };
printers = { # printers = {
comment = "All Printers"; # comment = "All Printers";
path = "/var/spool/samba"; # path = "/var/spool/samba";
public = "yes"; # public = "yes";
browseable = "yes"; # browseable = "yes";
# to allow user 'guest account' to print. # # to allow user 'guest account' to print.
"guest ok" = "yes"; # "guest ok" = "yes";
writable = "no"; # writable = "no";
printable = "yes"; # printable = "yes";
"create mode" = 0700; # "create mode" = 0700;
}; # };
}; };
}; };