some reorganizing
This commit is contained in:
parent
df9e8ae8bf
commit
113e015135
182 changed files with 443 additions and 449 deletions
10
sys/profiles/services/default.nix
Normal file
10
sys/profiles/services/default.nix
Normal file
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
services = {
|
||||
dbus.implementation = "broker";
|
||||
|
||||
psd = {
|
||||
enable = true;
|
||||
resyncTimer = "10m";
|
||||
};
|
||||
};
|
||||
}
|
3
sys/profiles/services/flatpak.nix
Normal file
3
sys/profiles/services/flatpak.nix
Normal file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
services.flatpak.enable = true;
|
||||
}
|
12
sys/profiles/services/gnome-services.nix
Normal file
12
sys/profiles/services/gnome-services.nix
Normal file
|
@ -0,0 +1,12 @@
|
|||
{pkgs, ...}: {
|
||||
services = {
|
||||
dbus.packages = with pkgs; [
|
||||
gcr
|
||||
gnome.gnome-settings-daemon
|
||||
];
|
||||
|
||||
gnome.gnome-keyring.enable = true;
|
||||
|
||||
gvfs.enable = true;
|
||||
};
|
||||
}
|
27
sys/profiles/services/pipewire.nix
Normal file
27
sys/profiles/services/pipewire.nix
Normal file
|
@ -0,0 +1,27 @@
|
|||
{lib, ...}: {
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
jack.enable = true;
|
||||
pulse.enable = true;
|
||||
|
||||
# https://wiki.archlinux.org/title/PipeWire#Noticeable_audio_delay_or_audible_pop/crack_when_starting_playback
|
||||
wireplumber.extraConfig."51-disable-suspension.conf" = {
|
||||
"monitor.alsa.rules" = lib.singleton {
|
||||
matches = [
|
||||
{"node.name" = "~alsa_input.*";}
|
||||
{"node.name" = "~alsa_output.*";}
|
||||
];
|
||||
actions.update-props."session.suspend-timeout.seconds" = 0;
|
||||
};
|
||||
"monitor.bluez.rules" = lib.singleton {
|
||||
matches = [
|
||||
{"node.name" = "~bluez_input.*";}
|
||||
{"node.name" = "~bluez_output.*";}
|
||||
];
|
||||
actions.update-props."session.suspend-timeout-seconds" = 0;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
7
sys/profiles/services/sunshine.nix
Normal file
7
sys/profiles/services/sunshine.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
services.sunshine = {
|
||||
enable = true;
|
||||
capSysAdmin = true;
|
||||
openFirewall = true;
|
||||
};
|
||||
}
|
56
sys/profiles/services/syncthing.nix
Normal file
56
sys/profiles/services/syncthing.nix
Normal file
|
@ -0,0 +1,56 @@
|
|||
let
|
||||
devices = {
|
||||
"nixdesk" = {
|
||||
id = "XXABQZC-CO6OM2E-EMB3QIJ-NF5I3WU-CCQPPRY-7BX4ZSS-WIU4WW2-WXFWVQR";
|
||||
autoAcceptFolders = true;
|
||||
};
|
||||
"redmi-note-10-pro" = {
|
||||
id = "WJPE56U-56LPOYB-IAENGSW-IFQ4A6J-66JX73I-ONXX4PY-QXJK6IF-UZHVWA7";
|
||||
autoAcceptFolders = true;
|
||||
};
|
||||
"hopper" = {
|
||||
id = "DK3RPET-ACMULD2-TLQS6YM-XWUMS3N-JRNDNME-YTM3H4X-P7QVUKB-N3PL5QF";
|
||||
autoAcceptFolders = true;
|
||||
};
|
||||
"school-probook" = {
|
||||
id = "ZYNRRWE-SIJLPMQ-5LJDWCY-BF5VMRM-FQRFEW4-L7PKA23-HVJADTV-FZYRSQM";
|
||||
autoAcceptFolders = true;
|
||||
};
|
||||
};
|
||||
in {
|
||||
services.syncthing = {
|
||||
enable = true;
|
||||
openDefaultPorts = true;
|
||||
user = "xun";
|
||||
group = "users";
|
||||
dataDir = "/home/xun/.local/share/syncthing";
|
||||
configDir = "/home/xun/.config/syncthing";
|
||||
|
||||
overrideDevices = true;
|
||||
settings = {
|
||||
inherit devices;
|
||||
folders = {
|
||||
"~/secrets" = {
|
||||
devices = builtins.attrNames devices;
|
||||
versioning = {
|
||||
type = "trashcan";
|
||||
params.cleanoutDays = "180";
|
||||
};
|
||||
id = "sfw9y-yusup";
|
||||
};
|
||||
"~/docs/xun-megavault" = {
|
||||
devices = builtins.attrNames devices;
|
||||
id = "1zkf-wf5r";
|
||||
versioning = {
|
||||
type = "simple";
|
||||
params.keep = "15";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
settings.options.urAccepted = -1; # disable usage reporting
|
||||
settings.gui.insecureSkipHostcheck = true;
|
||||
settings.gui.insecureAdminAccess = true;
|
||||
};
|
||||
}
|
6
sys/profiles/services/virt-manager.nix
Normal file
6
sys/profiles/services/virt-manager.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{pkgs, ...}: {
|
||||
virtualisation.libvirtd.enable = true;
|
||||
programs.virt-manager.enable = true;
|
||||
boot.kernelParams = ["amd_iommu=on" "iommu=pt"];
|
||||
environment.systemPackages = [pkgs.libvirt];
|
||||
}
|
3
sys/profiles/services/waydroid.nix
Normal file
3
sys/profiles/services/waydroid.nix
Normal file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
virtualisation.waydroid.enable = true;
|
||||
}
|
11
sys/profiles/services/xdg-portals.nix
Normal file
11
sys/profiles/services/xdg-portals.nix
Normal file
|
@ -0,0 +1,11 @@
|
|||
{pkgs, ...}: {
|
||||
xdg.portal = {
|
||||
enable = true;
|
||||
extraPortals = with pkgs; [
|
||||
xdg-desktop-portal-gtk
|
||||
];
|
||||
config = {
|
||||
common.default = ["gtk"];
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue