Compare commits

..
5 Commits
Author SHA1 Message Date
Taneb 075b1ff967 Add note about adding samba users to readme 2024-06-01 11:07:42 +00:00
Taneb 9fcb0cfad1 Check a box 2024-06-01 11:04:47 +00:00
Taneb 5e34efac9d Samba and also get rid of tabs 2024-06-01 11:04:12 +00:00
Taneb 30f97c74b5 Add account for Nairis 2024-05-31 16:24:16 +00:00
Taneb 2fb3f631d4 Reformat in preparation for multiple users 2024-05-31 16:24:04 +00:00
2 changed files with 47 additions and 12 deletions
+9 -1
View File
@@ -21,7 +21,7 @@ MicroSD card as boot and OS.
### Second milestone
- [ ] Samba for easy file access from Windows
- [X] Samba for easy file access from Windows
- [ ] NFS for easy file access from Linux
### Third milestone
@@ -29,6 +29,14 @@ MicroSD card as boot and OS.
- [ ] Torrent client web control interface available over LAN
- [ ] Torrent client downloads over VPN
## Non-declarative things
You need to add accounts for the `samba`. It doesn't use the Linux passwords.
```
sudo smbpasswd -a $username
```
## Building
To build the SD image:
+38 -11
View File
@@ -13,13 +13,19 @@
};
# Configuration of individual users
nixosModules.users = {...}: {
users.users.taneb = {
isNormalUser = true;
extraGroups = [ "wheel" ];
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIV9ymP4tpq11a8wfUvn8eEEwAPvZZSPZTbASLh7YxOw nvd1234@gmail.com"
];
hashedPassword = "$y$j9T$9pxQ4Zj7OirGMmgclhUb0/$YCfaYmIaaHRrkqiqdNbQSlJ7puX8bGrMCLavq6Pe1e3";
users.users = {
taneb = {
isNormalUser = true;
extraGroups = [ "wheel" ];
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIV9ymP4tpq11a8wfUvn8eEEwAPvZZSPZTbASLh7YxOw nvd1234@gmail.com"
];
hashedPassword = "$y$j9T$9pxQ4Zj7OirGMmgclhUb0/$YCfaYmIaaHRrkqiqdNbQSlJ7puX8bGrMCLavq6Pe1e3";
};
nairis = {
isNormalUser = true;
hashedPassword = "$y$j9T$luA6OU3OWVXbJc6DZM4Fx1$nTc89zTdKgozwR5kZQglbWaCkOFtmNZcpO4WCcYYPZC";
};
};
users.mutableUsers = false;
};
@@ -41,11 +47,31 @@
nixosModules.plex = {...}: {
services.plex = {
enable = true;
dataDir = "/storage/data";
openFirewall = true;
dataDir = "/storage/data";
openFirewall = true;
};
nixpkgs.config.allowUnfree = true;
};
nixosModules.samba = {...}: {
services.samba = {
enable = true;
openFirewall = true;
shares = {
chopper = {
path = "/storage/media";
browseable = "yes";
"read only" = "no";
"guest ok" = "no";
"inherit permissions" = "yes";
"create mask" = "0666";
};
};
};
services.samba-wsdd = {
enable = true;
openFirewall = true;
};
};
nixosConfigurations.chopper = nixpkgs.lib.nixosSystem {
system = "aarch64-linux";
modules = [
@@ -53,8 +79,9 @@
self.nixosModules.base
self.nixosModules.users
self.nixosModules.ssh
self.nixosModules.zfs
self.nixosModules.plex
self.nixosModules.zfs
self.nixosModules.plex
self.nixosModules.samba
];
};
};