mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-06-07 21:39:23 +02:00
run nix fmt
This commit is contained in:
parent
eab8e4b1d8
commit
d5cbe31c02
61 changed files with 1299 additions and 830 deletions
|
@ -1,7 +1,14 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
let cfg = config.jopejoe1.moodle-dl;
|
||||
in {
|
||||
let
|
||||
cfg = config.jopejoe1.moodle-dl;
|
||||
in
|
||||
{
|
||||
options.jopejoe1.moodle-dl = {
|
||||
enable = lib.mkEnableOption "Enable moodle-dl";
|
||||
};
|
||||
|
@ -22,7 +29,12 @@ in {
|
|||
git -C /var/lib/moodle-dl add .
|
||||
git -C /var/lib/moodle-dl commit -m "moodle-dl updated on `$(date)`"
|
||||
'';
|
||||
path = with pkgs; [ openssh moodle-dl git coreutils ];
|
||||
path = with pkgs; [
|
||||
openssh
|
||||
moodle-dl
|
||||
git
|
||||
coreutils
|
||||
];
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
User = "root";
|
||||
|
@ -30,4 +42,3 @@ in {
|
|||
};
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue