began home/scripts tidy up
This commit is contained in:
parent
00b1c4517e
commit
3662235e7e
16 changed files with 2 additions and 2 deletions
10
home/scripts/systemd/default.nix
Executable file
10
home/scripts/systemd/default.nix
Executable file
|
|
@ -0,0 +1,10 @@
|
|||
{ ... }: {
|
||||
|
||||
imports = [
|
||||
#./polkit.nix
|
||||
#./file.nix
|
||||
];
|
||||
|
||||
|
||||
|
||||
}
|
||||
24
home/scripts/systemd/polkit.nix
Executable file
24
home/scripts/systemd/polkit.nix
Executable 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;
|
||||
};
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
55
home/scripts/systemd/sync-hecate.nix
Executable file
55
home/scripts/systemd/sync-hecate.nix
Executable 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/scripts/systemd/sync.nix
Executable file
64
home/scripts/systemd/sync.nix
Executable 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue