Migrate to uv

This commit is contained in:
Kivi Kaitaniemi
2025-12-12 17:03:15 +02:00
parent a566adf546
commit 9da024c8bd
13 changed files with 272 additions and 216 deletions
+1 -3
View File
@@ -72,9 +72,7 @@ class MyModule(Module):
def directories(self) -> dict[str, Directory]:
# Directories are handeled the same way. Variables are substituted in text files.
return {
"/home/kk/.config/mod-app/": Directory(
source_directory="files/app-config", owner="kk"
)
"/home/kk/.config/mod-app/": Directory(source_directory="files/app-config", owner="kk")
}
# Packages and systemd units are basically the same with modules as without modules.
+1 -3
View File
@@ -115,9 +115,7 @@ decman.enabled_systemd_units += ["NetworkManager.service"]
# You can manage units for users as well.
# Ensure that previous user unit declarations aren't overwritten and they are initialized.
decman.enabled_systemd_user_units["kk"] = decman.enabled_systemd_user_units.get(
"kk", []
)
decman.enabled_systemd_user_units["kk"] = decman.enabled_systemd_user_units.get("kk", [])
# Add user unit.
decman.enabled_systemd_user_units["kk"].append("syncthing.service")