mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
standardize systemd services more
This commit is contained in:
parent
82b2d4971e
commit
c4f378b102
3 changed files with 6 additions and 11 deletions
|
|
@ -18,9 +18,9 @@
|
||||||
"postgresql.service"
|
"postgresql.service"
|
||||||
"miniflux-dbsetup.service"
|
"miniflux-dbsetup.service"
|
||||||
];
|
];
|
||||||
script = lib.getExe' pkgs.miniflux "miniflux";
|
|
||||||
|
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
|
ExecStart = lib.getExe pkgs.miniflux;
|
||||||
User = "miniflux";
|
User = "miniflux";
|
||||||
RuntimeDirectory = "miniflux";
|
RuntimeDirectory = "miniflux";
|
||||||
RuntimeDirectoryMode = "0770";
|
RuntimeDirectoryMode = "0770";
|
||||||
|
|
@ -72,10 +72,8 @@
|
||||||
"network.target"
|
"network.target"
|
||||||
"postgresql.service"
|
"postgresql.service"
|
||||||
];
|
];
|
||||||
script = ''
|
|
||||||
${lib.getExe' config.services.postgresql.package "psql"} "miniflux" -c "CREATE EXTENSION IF NOT EXISTS hstore"
|
|
||||||
'';
|
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
|
ExecStart = "${lib.getExe' config.services.postgresql.package "psql"} 'miniflux' -c 'CREATE EXTENSION IF NOT EXISTS hstore'";
|
||||||
Type = "oneshot";
|
Type = "oneshot";
|
||||||
User = config.services.postgresql.superUser;
|
User = config.services.postgresql.superUser;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
{
|
{
|
||||||
self',
|
self',
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
|
||||||
config,
|
config,
|
||||||
|
pkgs,
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
options.local.bootConfig.disable = lib.mkEnableOption "";
|
options.local.bootConfig.disable = lib.mkEnableOption "";
|
||||||
|
|
@ -56,15 +56,12 @@
|
||||||
reloadIfChanged = false;
|
reloadIfChanged = false;
|
||||||
restartIfChanged = false;
|
restartIfChanged = false;
|
||||||
stopIfChanged = false;
|
stopIfChanged = false;
|
||||||
|
wantedBy = [ "default.target" ];
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
|
ExecStart = "${lib.getExe' pkgs.efibootmgr "efibootmgr"} -t 0";
|
||||||
Type = "oneshot";
|
Type = "oneshot";
|
||||||
RemainAfterExit = true;
|
RemainAfterExit = true;
|
||||||
};
|
};
|
||||||
path = [ pkgs.efibootmgr ];
|
|
||||||
wantedBy = [ "default.target" ];
|
|
||||||
script = ''
|
|
||||||
efibootmgr -t 0
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -55,7 +55,7 @@ in
|
||||||
platformTheme = "gtk2";
|
platformTheme = "gtk2";
|
||||||
};
|
};
|
||||||
services.xserver.displayManager.sessionCommands = ''
|
services.xserver.displayManager.sessionCommands = ''
|
||||||
${lib.getExe' pkgs.xorg.xrdb "xrdb"} -load /etc/xdg/Xresources
|
${lib.getExe pkgs.xorg.xrdb} -load /etc/xdg/Xresources
|
||||||
'';
|
'';
|
||||||
fonts = {
|
fonts = {
|
||||||
packages = [
|
packages = [
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue