updated home/

This commit is contained in:
serenity-F 2024-11-19 16:15:00 +10:00
parent b4450deecf
commit fdc0126f0f
No known key found for this signature in database
56 changed files with 93 additions and 172 deletions

10
home/systemd/default.nix Normal file
View file

@ -0,0 +1,10 @@
{ ... }: {
imports = [
#./polkit.nix
#./file.nix
];
}

24
home/systemd/polkit.nix Normal file
View file

@ -0,0 +1,24 @@
{ ... }: {
systemd = {
user.services.polkit-gnome-authentication-agent-1 = {
description = "polkit-gnome-authentication-agent-1";
wantedBy = [ "graphical-session.target" ];
wants = [ "graphical-session.target" ];
after = [ "graphical-session.target" ];
serviceConfig = {
Type = "simple";
ExecStart = "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1";
Restart = "on-failure";
RestartSec = 1;
TimeoutStopSec = 10;
};
};
};
}

View file

@ -0,0 +1,55 @@
{
inputs,
outputs,
lib,
config,
pkgs,
...
}:
{
imports = [
];
## Declarative sync directory creation
systemd.tmpfiles.settings = {
"hecate" = {
"/home/serenity/sync/backups/hecate" = {
d = {
group = "users";
mode = "0777";
user = "serenity";
};
};
};
"hecate-backups" = {
"/home/serenity/sync/backups/hecate/backups" = {
d = {
group = "users";
mode = "0777";
user = "serenity";
};
};
};
"hecate-pictures" = {
"/home/serenity/sync/backups/hecate/pictures" = {
d = {
group = "users";
mode = "0777";
user = "serenity";
};
};
};
"hecate-misc" = {
"/home/serenity/sync/backups/hecate/misc" = {
d = {
group = "users";
mode = "0777";
user = "serenity";
};
};
};
};
}

64
home/systemd/sync.nix Normal file
View file

@ -0,0 +1,64 @@
{
inputs,
outputs,
lib,
config,
pkgs,
...
}:
{
imports = [
];
## Declarative sync directory creation
systemd.tmpfiles.settings = {
"library" = {
"/home/serenity/sync/library" = {
d = {
group = "users";
mode = "0777";
user = "serenity";
};
};
};
"auth" = {
"/home/serenity/sync/organisation/auth" = {
d = {
group = "users";
mode = "0777";
user = "serenity";
};
};
};
"notes" = {
"/home/serenity/sync/organisation/notes" = {
d = {
group = "users";
mode = "0777";
user = "serenity";
};
};
};
"planner" = {
"/home/serenity/sync/organisation/planner" = {
d = {
group = "users";
mode = "0777";
user = "serenity";
};
};
};
"paperwork" = {
"/home/serenity/sync/organisation/paperwork" = {
d = {
group = "users";
mode = "0777";
user = "serenity";
};
};
};
};
}