How to make my zk site execute automatically using systemd and emanote as input #568
FelipeMarcelino
started this conversation in
General
Replies: 1 comment 4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I know that the flake.nix from
emanote-tempalte
when executed withnix run
generated the following commandsI would like to make a systems that execute this command automatically when I log into my machine, so I have a github repository with my notes and the flake.nix emanote-template.
Using this repository I import the flake as input to my nixos configuration flake like this:
Now, in one of my files, I tried to create a system service unit using home manager modules:
However, it is not working. How is the best way to make it work automatically as we did not know what is produced by emanote module
![image](https://private-user-images.githubusercontent.com/15383718/406583031-ac8995f9-53a3-4366-9cb9-2e80b98ca388.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwOTA0ODcsIm5iZiI6MTczOTA5MDE4NywicGF0aCI6Ii8xNTM4MzcxOC80MDY1ODMwMzEtYWM4OTk1ZjktNTNhMy00MzY2LTljYjktMmU4MGI5OGNhMzg4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA5VDA4MzYyN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTQ2OGY0OWI5NDRkOWViMjE5YmY2YzVkNjUzYWE0NGYzNjgyZWUzN2VhMjBmYTFhNWQzNmQzOGNmNDQxMDJhY2UmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.ARCf-gh0NS0pxEA0sZwTouV-ODxnCFf35-6eL67lloI)
That is my current directory structure (The file containing the code related to service is inside
nixconfig/home-manager/common/emanote-site.nix
):My current flake.nix configuration for my hosts/users:
Beta Was this translation helpful? Give feedback.
All reactions