Compare commits

...

3 commits

3 changed files with 45 additions and 36 deletions

View file

@ -7,3 +7,8 @@ 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
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.
## Manual configuration
```
smbpasswd -a kathe <password>
```

View file

@ -1,48 +1,29 @@
{
services.samba = {
enable = true;
securityType = "user";
openFirewall = true;
## Switch to structured config with NixOS 24.11
# settings = {
# global = {
# "workgroup" = "WORKGROUP";
# "hosts allow" = "192.168.";
# "hosts deny" = "0.0.0.0/0";
# "guest account" = "nobody";
# "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 = {
settings = {
global = {
"workgroup" = "WORKGROUP";
"hosts allow" = "192.168.";
"hosts deny" = "0.0.0.0/0";
"guest account" = "nobody";
"map to guest" = "bad user";
"security" = "user";
};
"public" = {
"path" = "/nas/chandler/public";
"browseable" = "yes";
"read only" = "yes";
"guest ok" = "yes"; # aka "public = yes"
};
kathe = {
path = "/nas/katherine";
browseable = "yes";
"valid users" = "kathe";
"read only" = "no";
"guest ok" = "no";
};
};
};
}

View file

@ -202,9 +202,32 @@
];
};
programs.vscode = {
programs.vscode = let
extensionrepo =
(import (builtins.fetchGit {
url = "https://github.com/nix-community/nix-vscode-extensions";
ref = "refs/heads/master";
})).extensions.${builtins.currentSystem};
in {
enable = true;
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 = {
"files.autoSave" = "afterDelay";
"editor.renderWhitespace" = "boundary";