kandi X-RAY | nixos-configs Summary
kandi X-RAY | nixos-configs Summary
nixos-configs
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of nixos-configs
nixos-configs Key Features
nixos-configs Examples and Code Snippets
Community Discussions
Trending Discussions on nixos-configs
QUESTION
I'm trying to package a script to perform deployments with a git push in a Nix derivation.
The goal is having a git repo that on post-receive
run some actions.
I want to package it so that I can just keep it alongside my configuration and ship it easily, minimising the amount of manual tasks to do.
I've already setup a git user:
...ANSWER
Answered 2020-May-11 at 20:45In general, as far as I know, Linux has no way to give ownership of a file to another user, unless you are root.
Secondly, I question why you would even want files in the output of your derivation to be owned by a different user. As described in the Nix manual, after building a derivation, Nix sets the modes of all files to 0444 or 0555, meaning they will be readable by all users on the system, and some will also be executable by all users on the system. There should be no additional permissions that you need for your users.
Remember that the output of a Nix derivation is supposed to be an immutable thing that never changes.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install nixos-configs
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page