From d39860a3b265df82ffe4961d3cbfed6848246760 Mon Sep 17 00:00:00 2001 From: serenity-F Date: Thu, 12 Dec 2024 02:16:41 +1000 Subject: [PATCH] removed `scripts/systemd` --- home/default.nix | 2 - home/scripts/systemd/default.nix | 10 ----- home/scripts/systemd/polkit.nix | 24 ----------- home/scripts/systemd/sync-hecate.nix | 55 ------------------------ home/scripts/systemd/sync.nix | 64 ---------------------------- 5 files changed, 155 deletions(-) delete mode 100755 home/scripts/systemd/default.nix delete mode 100755 home/scripts/systemd/polkit.nix delete mode 100755 home/scripts/systemd/sync-hecate.nix delete mode 100755 home/scripts/systemd/sync.nix diff --git a/home/default.nix b/home/default.nix index 93dca5c..07fbd87 100755 --- a/home/default.nix +++ b/home/default.nix @@ -5,8 +5,6 @@ imports = [ ## Import desktop configs ./desktop - ## Import service configs - ./scripts/systemd ## Import program configs ./programs ]; diff --git a/home/scripts/systemd/default.nix b/home/scripts/systemd/default.nix deleted file mode 100755 index c9a1323..0000000 --- a/home/scripts/systemd/default.nix +++ /dev/null @@ -1,10 +0,0 @@ -{ ... }: { - - imports = [ - #./polkit.nix - #./file.nix - ]; - - - -} diff --git a/home/scripts/systemd/polkit.nix b/home/scripts/systemd/polkit.nix deleted file mode 100755 index 27c7fc1..0000000 --- a/home/scripts/systemd/polkit.nix +++ /dev/null @@ -1,24 +0,0 @@ -{ ... }: { - - 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; - }; - - }; - }; - -} diff --git a/home/scripts/systemd/sync-hecate.nix b/home/scripts/systemd/sync-hecate.nix deleted file mode 100755 index 5a6a81b..0000000 --- a/home/scripts/systemd/sync-hecate.nix +++ /dev/null @@ -1,55 +0,0 @@ -{ - 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"; - }; - }; - }; - }; - -} diff --git a/home/scripts/systemd/sync.nix b/home/scripts/systemd/sync.nix deleted file mode 100755 index 220323e..0000000 --- a/home/scripts/systemd/sync.nix +++ /dev/null @@ -1,64 +0,0 @@ -{ - 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"; - }; - }; - }; - }; - -}