Re: [Nix-dev] Using system.autoUpgrade with a git channel

2017-07-08 Thread John Ramsden via nix-dev
Cool, might have to do some experimenting. -- John Ramsden On Fri, Jul 7, 2017, at 08:35 PM, Danylo Hlynskyi wrote: > I've seen this in a wild > > system.autoUpgrade.enable = true; > system.autoUpgrade.flags = lib.mkForce > [ "--no-build-output" > "-I" "nixpkgs=/etc/nixos/nixpkgs-chann

Re: [Nix-dev] Using system.autoUpgrade with a git channel

2017-07-07 Thread Danylo Hlynskyi via nix-dev
I've seen this in a wild system.autoUpgrade.enable = true; system.autoUpgrade.flags = lib.mkForce [ "--no-build-output" "-I" "nixpkgs=/etc/nixos/nixpkgs-channels" ]; systemd.services.nixos-upgrade.path = [ pkgs.git ]; systemd.services.nixos-upgrade.preStart = '' cd /etc/nixos/nixpkgs-cha

Re: [Nix-dev] Using system.autoUpgrade with a git channel

2017-07-06 Thread John Ramsden via nix-dev
Thanks that's helpful. In other words if I'm using a checked out git repository I'm no longer able to use 'system.autoUpgrade'. -- John Ramsden On Thu, Jul 6, 2017, at 10:56 PM, Vladimír Čunát wrote: > On 07/07/2017 01:46 AM, John Ramsden via nix-dev wrote: > > I was also wondering what exactl

Re: [Nix-dev] Using system.autoUpgrade with a git channel

2017-07-06 Thread Vladimír Čunát via nix-dev
On 07/07/2017 01:46 AM, John Ramsden via nix-dev wrote: > I was also wondering what exactly the 'nixos-rebuild switch' command's > '--upgrade' flag does. It does $ nix-channel --update nixos Best see the source if you want details, as it's relatively simple: https://github.com/NixOS/nixpkgs/blob/m

[Nix-dev] Using system.autoUpgrade with a git channel

2017-07-06 Thread John Ramsden via nix-dev
I'm currently using a checked out version of the channels repository as my channel. I was previously using the integrated channel and using 'system.autoUpgrade.enable = true'. I assume I can no longer use this service for upgrades while I'm using git. Is there any way to run auto upgrades whi