add nas for dragon, and yeswiki-updater

This commit is contained in:
Florian Schmitt 2024-01-23 22:28:11 +03:00
parent ac72d9761e
commit f289e6af62
3 changed files with 33 additions and 3 deletions

View file

@ -52,6 +52,32 @@
xkbVariant = "";
};
fileSystems."/mnt/nas/music" =
{
device = "192.168.1.2:/volume1/music";
options = [ "nfsvers=4.2" "x-systemd.automount" "noauto" "rw" "relatime" "user" "acl" "defaults"];
fsType = "nfs";
};
services.rpcbind.enable = true; # needed for NFS
systemd.mounts = [{
type = "nfs";
mountConfig = {
Options = "defaults,acl,user,noauto,relatime,rw";
};
what = "192.168.1.2:/volume1/music";
where = "/mnt/nas/music";
}];
systemd.automounts = [{
wantedBy = [ "multi-user.target" ];
automountConfig = {
TimeoutIdleSec = "600";
};
where = "/mnt/nas/music";
}];
# Enable CUPS to print documents.
services.printing.enable = true;

View file

@ -13,6 +13,7 @@ let
p.gomod
p.gowork
p.hcl
p.html
p.php
p.javascript
p.jq
@ -24,6 +25,7 @@ let
p.nix
p.python
p.rust
p.twig
p.toml
p.typescript
p.vue
@ -219,10 +221,11 @@ in {
nixedit = "vi /etc/nixos";
nixupdate = "sudo nix-channel --update && sudo nixos-rebuild switch";
nixclean = "sudo nix-env --delete-generations old --profile /nix/var/nix/profiles/system && sudo /nix/var/nix/profiles/system/bin/switch-to-configuration switch && sudo nix-store --gc";
yeswiki-updater = "cd /home/mrflos/Developpements/yeswiki-installer/ && sudo php yeswiki-updater.php";
};
initExtra = ''
export BUN_INSTALL="$HOME/.bun"
export PATH="$BUN_INSTALL/bin:$PATH"
export PATH="$HOME/.local/bin:$BUN_INSTALL/bin:$PATH"
'';
oh-my-zsh = {
enable = true;

View file

@ -20,8 +20,9 @@
gcc
gitkraken
nodejs
php82Packages.composer
php82Packages.php-cs-fixer
php83
php83Packages.composer
php83Packages.php-cs-fixer
python311Packages.virtualenv
rpi-imager
symfony-cli