feat: zenbrowser + nas attempt through tailscale + lib cc

This commit is contained in:
Florian Schmitt 2025-02-28 18:52:13 +03:00
parent 0a5118e815
commit da3cf14e5e
5 changed files with 120 additions and 40 deletions

View file

@ -1,4 +1,4 @@
{ config, ... }:
{ config, pkgs, ... }:
{
boot.loader.systemd-boot.enable = true;
@ -41,7 +41,17 @@
nvidiaSettings = true;
package = config.boot.kernelPackages.nvidiaPackages.latest;
};
services.tailscale = {
enable = true;
};
services.syncthing = {
enable = true;
openDefaultPorts = true;
settings.gui = {
user = "mrflos";
password = "VerySecurePassword";
};
};
services.xserver = {
enable = true;
videoDrivers = [
@ -51,45 +61,50 @@
xkb.variant = "";
};
fileSystems."/mnt/nas/music" = {
device = "192.168.1.2:/volume1/music";
fileSystems."/home/mrflos/Nas-music" = {
device = "diskstation.tailed460c.ts.net:/volume1/music";
options = [
"nfsvers=4.2"
#"nfsvers=4.2"
"x-systemd.automount"
"noauto"
"rw"
"relatime"
"user"
"acl"
"defaults"
#"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.mounts = [
# {
# type = "nfs";
# mountConfig = {
# Options = "defaults,acl,user,noauto,relatime,rw";
# };
# what = "diskstation.tailed460c.ts.net:/volume1/music";
# where = "/mnt/nas/music";
# }
#];
systemd.automounts = [
{
wantedBy = [ "multi-user.target" ];
automountConfig = {
TimeoutIdleSec = "600";
};
where = "/mnt/nas/music";
}
];
#systemd.automounts = [
# {
# wantedBy = [ "multi-user.target" ];
# automountConfig = {
# TimeoutIdleSec = "600";
# };
# where = "/mnt/nas/music";
# }
#];
services.printing.enable = true;
security.wrappers."mount.nfs" = {
setuid = true;
owner = "root";
group = "root";
source = "${pkgs.nfs-utils.out}/bin/mount.nfs";
};
security.rtkit.enable = true;
services.pipewire = {
enable = true;
@ -98,6 +113,12 @@
pulse.enable = true;
};
environment = {
sessionVariables = {
LD_LIBRARY_PATH = "${pkgs.stdenv.cc.cc.lib}/lib";
};
};
imports = [
../../modules/console.nix
../../modules/desktop.nix
@ -106,14 +127,9 @@
../../modules/local-dev.nix
../../modules/nixos.nix
../../modules/systemd-unfreeze.nix
../../modules/zen-browser.nix
];
#programs.proxychains.enable = true;
#programs.proxychains.proxies.prx1.enable = true;
#programs.proxychains.proxies.prx1.type = "socks5";
#programs.proxychains.proxies.prx1.host = "127.0.0.1";
#programs.proxychains.proxies.prx1.port = 9090;
#services.ollama = {
# enable = true;
# acceleration = "cuda";