[prev in list] [next in list] [prev in thread] [next in thread] 

List:       nix-dev
Subject:    Re: [Nix-dev] Two declarative ways to install a package?
From:       Roger Qiu <roger.qiu () matrix ! ai>
Date:       2016-08-12 7:01:37
Message-ID: CA+HLvXkx=re1w49dxBhYRzAFRASWi8ZU5mBXoMQYtnnGN12i5w () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


For example: There are both nginx package and nginx service. The package
part is just the package management aspect of Nix, while the nginx service
is the service management (configuration management) aspect of Nix. However
if you use the service, then as a dependency, package is usually installed.
On 12/08/2016 5:11 AM, "Nick Sabalausky" <bus_nixos_list@semitwist.com>
wrote:

> I'm noticing that when installing packages declaratively via
> configuration.nix and nixos-rebuild, some packages are install one way, but
> others are installed another way. For example:
>
> # Some packages are installed via environment.systemPackages
> environment.systemPackages = with pkgs; [
>   wget firefox thunderbird git
> ];
>
> # Others are installed via *.enabled = true;
> services.openssh.enable = true;
> services.printing.enable = true;
> services.xserver.enable = true;
> services.xserver.displayManager.kdm.enable = true;
> services.xserver.desktopManager.kde4.enable = true;
> services.vmwareGuest.enable = true;
>
> What exactly is the difference? Is there any more nuance to it than
> "Services are installed one way, non-services are installed the other way"?
>
> How do I know which way to install a given package? Especially if I'm not
> sure offhand whether a given package involves a service component.
>
> Can all packages be installed wither way? Are all packages ONLY one way or
> the other?
>
> How can I find what packages are available via one method or the other?
> _______________________________________________
> nix-dev mailing list
> nix-dev@lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>

[Attachment #5 (text/html)]

<p dir="ltr">For example: There are both nginx package and nginx service. The package \
part is just the package management aspect of Nix, while the nginx service is the \
service management (configuration management) aspect of Nix. However if you use the \
service, then as a dependency, package is usually installed.</p> <div \
class="gmail_quote">On 12/08/2016 5:11 AM, &quot;Nick Sabalausky&quot; &lt;<a \
href="mailto:bus_nixos_list@semitwist.com">bus_nixos_list@semitwist.com</a>&gt; \
wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 \
.8ex;border-left:1px #ccc solid;padding-left:1ex">I&#39;m noticing that when \
installing packages declaratively via configuration.nix and nixos-rebuild, some \
packages are install one way, but others are installed another way. For example:<br> \
<br> # Some packages are installed via environment.systemPackages<br>
environment.systemPackages = with pkgs; [<br>
   wget firefox thunderbird git<br>
];<br>
<br>
# Others are installed via *.enabled = true;<br>
services.openssh.enable = true;<br>
services.printing.enable = true;<br>
services.xserver.enable = true;<br>
services.xserver.displayManage<wbr>r.kdm.enable = true;<br>
services.xserver.desktopManage<wbr>r.kde4.enable = true;<br>
services.vmwareGuest.enable = true;<br>
<br>
What exactly is the difference? Is there any more nuance to it than &quot;Services \
are installed one way, non-services are installed the other way&quot;?<br> <br>
How do I know which way to install a given package? Especially if I&#39;m not sure \
offhand whether a given package involves a service component.<br> <br>
Can all packages be installed wither way? Are all packages ONLY one way or the \
other?<br> <br>
How can I find what packages are available via one method or the other?<br>
______________________________<wbr>_________________<br>
nix-dev mailing list<br>
<a href="mailto:nix-dev@lists.science.uu.nl" \
target="_blank">nix-dev@lists.science.uu.nl</a><br> <a \
href="http://lists.science.uu.nl/mailman/listinfo/nix-dev" rel="noreferrer" \
target="_blank">http://lists.science.uu.nl/mai<wbr>lman/listinfo/nix-dev</a><br> \
</blockquote></div>



_______________________________________________
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic