Skip to content

Commit

Permalink
brin back the idw-tun
Browse files Browse the repository at this point in the history
  • Loading branch information
noahdotpy committed Jan 24, 2025
1 parent 9b02196 commit bcd58bb
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 0 deletions.
8 changes: 8 additions & 0 deletions files/systemd/system/idwt-nu-system.path
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[Unit]
Description=Run IDWT (nu) Apply (System) when config changes

[Path]
PathModified=/etc/idwt-nu/config.yml

[Install]
WantedBy=multi-user.target
9 changes: 9 additions & 0 deletions files/systemd/system/idwt-nu-system.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[Unit]
Description=IDWT (nu) Apply (System)

[Service]
Type=oneshot
ExecStart=/usr/bin/idwt-nu apply-system

[Install]
WantedBy=default.target
12 changes: 12 additions & 0 deletions files/systemd/system/idwt-nu-system.timer
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[Unit]
Description=Run IDWT (nu) Apply (System) every second

[Timer]
AccuracySec=1s
OnBootSec=1s
OnUnitInactiveSec=1s
Persistent=false
Restart=always

[Install]
WantedBy=multi-user.target
2 changes: 2 additions & 0 deletions recipes/profiles/common/modules/install-idwt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ modules:
- type: containerfile
snippets:
- COPY --from=ghcr.io/noahdotpy/idwt:git /out/bin/idwt /usr/bin/idwt
- COPY --from=ghcr.io/noahdotpy/idwt-nu:git /out /

3 changes: 3 additions & 0 deletions recipes/profiles/common/modules/systemd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ system:
- idwt-system.path
- idwt-system.service
- idwt-system.timer
- idwt-nu-system.path
- idwt-nu-system.service
- idwt-nu-system.timer
- nushell-profile.d.path
- nushell-profile.d.service
- rpm-ostreed-automatic.timer
Expand Down

0 comments on commit bcd58bb

Please sign in to comment.