add nas for dragon, and yeswiki-updater
This commit is contained in:
parent
ac72d9761e
commit
f289e6af62
3 changed files with 33 additions and 3 deletions
|
@ -52,6 +52,32 @@
|
||||||
xkbVariant = "";
|
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.
|
# Enable CUPS to print documents.
|
||||||
services.printing.enable = true;
|
services.printing.enable = true;
|
||||||
|
|
||||||
|
|
|
@ -13,6 +13,7 @@ let
|
||||||
p.gomod
|
p.gomod
|
||||||
p.gowork
|
p.gowork
|
||||||
p.hcl
|
p.hcl
|
||||||
|
p.html
|
||||||
p.php
|
p.php
|
||||||
p.javascript
|
p.javascript
|
||||||
p.jq
|
p.jq
|
||||||
|
@ -24,6 +25,7 @@ let
|
||||||
p.nix
|
p.nix
|
||||||
p.python
|
p.python
|
||||||
p.rust
|
p.rust
|
||||||
|
p.twig
|
||||||
p.toml
|
p.toml
|
||||||
p.typescript
|
p.typescript
|
||||||
p.vue
|
p.vue
|
||||||
|
@ -219,10 +221,11 @@ in {
|
||||||
nixedit = "vi /etc/nixos";
|
nixedit = "vi /etc/nixos";
|
||||||
nixupdate = "sudo nix-channel --update && sudo nixos-rebuild switch";
|
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";
|
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 = ''
|
initExtra = ''
|
||||||
export BUN_INSTALL="$HOME/.bun"
|
export BUN_INSTALL="$HOME/.bun"
|
||||||
export PATH="$BUN_INSTALL/bin:$PATH"
|
export PATH="$HOME/.local/bin:$BUN_INSTALL/bin:$PATH"
|
||||||
'';
|
'';
|
||||||
oh-my-zsh = {
|
oh-my-zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
@ -20,8 +20,9 @@
|
||||||
gcc
|
gcc
|
||||||
gitkraken
|
gitkraken
|
||||||
nodejs
|
nodejs
|
||||||
php82Packages.composer
|
php83
|
||||||
php82Packages.php-cs-fixer
|
php83Packages.composer
|
||||||
|
php83Packages.php-cs-fixer
|
||||||
python311Packages.virtualenv
|
python311Packages.virtualenv
|
||||||
rpi-imager
|
rpi-imager
|
||||||
symfony-cli
|
symfony-cli
|
||||||
|
|
Loading…
Reference in a new issue