Initial commit

This commit is contained in:
2026-03-31 16:53:11 +02:00
commit d0eba1c834
343 changed files with 34443 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
{
lib,
pkgs,
...
}: {
services = {
printing = {
enable = true;
drivers = [pkgs.hplip];
};
irqbalance.enable = true;
thermald.enable = true;
speechd.enable = lib.mkForce false;
};
# Use in place of hypridle's before_sleep_cmd, since systemd does not wait for
# it to complete
powerManagement = {
enable = true;
cpuFreqGovernor = "schedutil";
powerDownCommands = ''
# Lock all sessions
loginctl lock-sessions
# Wait for lockscreen(s) to be up
sleep 1
'';
};
}
+3
View File
@@ -0,0 +1,3 @@
{
virtualisation.docker.enable = true;
}
+16
View File
@@ -0,0 +1,16 @@
{pkgs, ...}: {
services = {
# needed for GNOME services outside of GNOME Desktop
dbus = {
implementation = "broker";
packages = with pkgs; [
gcr
gnome-settings-daemon
libsecret
];
};
gnome.gnome-keyring.enable = true;
gvfs.enable = true;
};
}
+22
View File
@@ -0,0 +1,22 @@
{pkgs, ...}: {
# greetd display manager
services = {
greetd = let
session = {
command = "${pkgs.niri}/bin/niri-session";
user = "someone";
};
in {
enable = true;
settings = {
terminal.vt = 1;
default_session = session;
initial_session = session;
};
};
displayManager.autoLogin = {
user = "someone";
enable = true;
};
};
}
+17
View File
@@ -0,0 +1,17 @@
{
# enable location service
location.provider = "geoclue2";
# provide location
services.geoclue2 = {
enable = true;
geoProviderUrl = "https://beacondb.net/v1/geolocate";
submissionUrl = "https://beacondb.net/v2/geosubmit";
submissionNick = "geoclue";
appConfig.gammastep = {
isAllowed = true;
isSystem = false;
};
};
}
+39
View File
@@ -0,0 +1,39 @@
{pkgs, ...}: {
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
jack.enable = true;
pulse.enable = true;
wireplumber = {
enable = true;
configPackages = [
(pkgs.writeTextDir "share/wireplumber/bluetooth.lua.d/51-bluez-config.lua" ''
bluez_monitor.properties = {
["bluez5.enable-sbc-xq"] = true,
["bluez5.enable-msbc"] = true,
["bluez5.enable-hw-volume"] = true,
["bluez5.headset-roles"] = "[ hsp_hs hsp_ag hfp_hf hfp_ag ]",
["bluez5.a2dp.ldac.quality"] = "auto",
["bluez5.a2dp.aac.bitratemode"] = 0,
["bluez5.default.rate"] = 48000,
["bluez5.default.channels"] = 2,
["bluez5.headset-profile"] = "a2dp-only"
}
'')
];
};
extraConfig.pipewire."99-custom" = {
"context.properties" = {
default.clock = {
rate = 48000;
quantum = 1024;
min-quantum = 32;
max-quantum = 2048;
};
};
};
};
}
+20
View File
@@ -0,0 +1,20 @@
{
services = {
logind.settings.Login = {
powerKey = "suspend";
lidSwitch = "suspend";
lidSwitchExternalPower = "lock";
};
power-profiles-daemon.enable = true;
# battery info
upower = {
enable = true;
percentageLow = 20;
percentageCritical = 10;
percentageAction = 3;
criticalPowerAction = "PowerOff";
};
};
}
+7
View File
@@ -0,0 +1,7 @@
{...}: {
systemd.user.services.xdg-desktop-portal = {
serviceConfig = {
UnsetEnvironment = "NIX_XDG_DESKTOP_PORTAL_DIR";
};
};
}