Compare commits
No commits in common. "f05ca666ed7c0ffc3f18b367ce2280e32053d825" and "5fe97a669d38ab56d84bd227333e68f6c1c5d9f5" have entirely different histories.
f05ca666ed
...
5fe97a669d
|
@ -7,8 +7,3 @@ entirely sure at this point. For now, I took the easy way out: Just keep trying
|
||||||
SD cards until one works! Thankfully, it seems to be reliable that an SD card
|
SD cards until one works! Thankfully, it seems to be reliable that an SD card
|
||||||
works either 100% or 0% of the time. Currently using a 32GB Microcenter cheapo,
|
works either 100% or 0% of the time. Currently using a 32GB Microcenter cheapo,
|
||||||
in place of the nicer 128GB ones I was planning on instead.
|
in place of the nicer 128GB ones I was planning on instead.
|
||||||
|
|
||||||
## Manual configuration
|
|
||||||
```
|
|
||||||
smbpasswd -a kathe <password>
|
|
||||||
```
|
|
||||||
|
|
|
@ -1,29 +1,48 @@
|
||||||
{
|
{
|
||||||
services.samba = {
|
services.samba = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
securityType = "user";
|
||||||
openFirewall = true;
|
openFirewall = true;
|
||||||
settings = {
|
## Switch to structured config with NixOS 24.11
|
||||||
global = {
|
# settings = {
|
||||||
"workgroup" = "WORKGROUP";
|
# global = {
|
||||||
"hosts allow" = "192.168.";
|
# "workgroup" = "WORKGROUP";
|
||||||
"hosts deny" = "0.0.0.0/0";
|
# "hosts allow" = "192.168.";
|
||||||
"guest account" = "nobody";
|
# "hosts deny" = "0.0.0.0/0";
|
||||||
"map to guest" = "bad user";
|
# "guest account" = "nobody";
|
||||||
"security" = "user";
|
# "map to guest" = "bad user";
|
||||||
};
|
# };
|
||||||
|
# "public" = {
|
||||||
|
# "path" = "/nas/chandler/Public";
|
||||||
|
# "browseable" = "yes";
|
||||||
|
# "read only" = "yes";
|
||||||
|
# "guest ok" = "yes"; # aka "public = yes"
|
||||||
|
# };
|
||||||
|
# # "private" = {
|
||||||
|
# # "path" = "/mnt/Shares/Private";
|
||||||
|
# # "browseable" = "yes";
|
||||||
|
# # "read only" = "no";
|
||||||
|
# # "guest ok" = "no";
|
||||||
|
# # "create mask" = "0644";
|
||||||
|
# # "directory mask" = "0755";
|
||||||
|
# # "force user" = "username";
|
||||||
|
# # "force group" = "groupname";
|
||||||
|
# # };
|
||||||
|
# };
|
||||||
|
extraConfig = ''
|
||||||
|
workgroup = WORKGROUP
|
||||||
|
hosts allow = 192.168.
|
||||||
|
hosts deny = 0.0.0.0/0
|
||||||
|
guest account = nobody
|
||||||
|
map to guest = bad user
|
||||||
|
'';
|
||||||
|
shares = {
|
||||||
"public" = {
|
"public" = {
|
||||||
"path" = "/nas/chandler/public";
|
"path" = "/nas/chandler/public";
|
||||||
"browseable" = "yes";
|
"browseable" = "yes";
|
||||||
"read only" = "yes";
|
"read only" = "yes";
|
||||||
"guest ok" = "yes"; # aka "public = yes"
|
"guest ok" = "yes"; # aka "public = yes"
|
||||||
};
|
};
|
||||||
kathe = {
|
|
||||||
path = "/nas/katherine";
|
|
||||||
browseable = "yes";
|
|
||||||
"valid users" = "kathe";
|
|
||||||
"read only" = "no";
|
|
||||||
"guest ok" = "no";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -202,32 +202,9 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.vscode = let
|
programs.vscode = {
|
||||||
extensionrepo =
|
|
||||||
(import (builtins.fetchGit {
|
|
||||||
url = "https://github.com/nix-community/nix-vscode-extensions";
|
|
||||||
ref = "refs/heads/master";
|
|
||||||
})).extensions.${builtins.currentSystem};
|
|
||||||
in {
|
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.vscodium;
|
package = pkgs.vscodium;
|
||||||
mutableExtensionsDir = false;
|
|
||||||
extensions = with extensionrepo.open-vsx; [ # TODO: -release ?
|
|
||||||
eamodio.gitlens
|
|
||||||
editorconfig.editorconfig
|
|
||||||
golang.go
|
|
||||||
jeandeaual.lilypond-syntax
|
|
||||||
jeandeaual.scheme
|
|
||||||
jeanp413.open-remote-ssh
|
|
||||||
jnoortheen.nix-ide
|
|
||||||
llvm-vs-code-extensions.vscode-clangd
|
|
||||||
ms-azuretools.vscode-docker
|
|
||||||
ms-python.debugpy
|
|
||||||
ms-python.python
|
|
||||||
rust-lang.rust-analyzer
|
|
||||||
stkb.rewrap
|
|
||||||
xaver.clang-format
|
|
||||||
];
|
|
||||||
userSettings = {
|
userSettings = {
|
||||||
"files.autoSave" = "afterDelay";
|
"files.autoSave" = "afterDelay";
|
||||||
"editor.renderWhitespace" = "boundary";
|
"editor.renderWhitespace" = "boundary";
|
||||||
|
|
Loading…
Reference in a new issue