diff --git a/machines/Segotep-desktop-tower-configuration.nix b/machines/Segotep-desktop-tower-configuration.nix index 8546977..2633a97 100644 --- a/machines/Segotep-desktop-tower-configuration.nix +++ b/machines/Segotep-desktop-tower-configuration.nix @@ -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; diff --git a/modules/home-config.nix b/modules/home-config.nix index b2cb46a..1347ff9 100644 --- a/modules/home-config.nix +++ b/modules/home-config.nix @@ -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; diff --git a/modules/local-dev.nix b/modules/local-dev.nix index fd212f8..72d94c3 100644 --- a/modules/local-dev.nix +++ b/modules/local-dev.nix @@ -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