1
0
Fork 0
This commit is contained in:
Lukas Wurzinger 2025-07-14 21:18:44 +02:00
parent 3f6dafe073
commit 79792e5a76
No known key found for this signature in database
24 changed files with 143 additions and 101 deletions

View file

@ -2,6 +2,7 @@
config,
lib,
inputs,
pkgs,
...
}:
let
@ -24,6 +25,11 @@ in
displayManager.cosmic-greeter.enable = true;
};
environment.cosmic.excludePackages = [
pkgs.cosmic-edit
pkgs.cosmic-player
];
environment.sessionVariables.COSMIC_DATA_CONTROL_ENABLED = 1;
};
}

6
profiles/desktop/mpv.nix Normal file
View file

@ -0,0 +1,6 @@
{ inputs, pkgs, ... }:
{
environment.systemPackages = [
inputs.mympv.packages.${pkgs.system}.default
];
}

View file

@ -0,0 +1,6 @@
{ lib, ... }:
{
options.profiles.trusted = {
enable = lib.mkEnableOption "trusted";
};
}

View file

@ -0,0 +1,21 @@
{
config,
lib,
...
}:
let
cfg = config.profiles.trusted;
inherit (config.networking) hostName;
in
{
config = lib.mkIf cfg.enable {
services.syncthing = {
enable = true;
systemService = true;
openDefaultPorts = true;
guiAddress = "${hostName}.tailnet.helveticanonstandard.net:4000";
overrideDevices = false;
overrideFolders = false;
};
};
}

View file

@ -0,0 +1,21 @@
{
config,
lib,
...
}:
let
cfg = config.profiles.trusted;
in
{
config = lib.mkIf cfg.enable {
services.tailscale = {
enable = true;
openFirewall = true;
useRoutingFeatures = "both"; # TODO
};
networking.firewall.trustedInterfaces = [
config.services.tailscale.interfaceName
];
};
}