Re: [Nix-dev] [Help] Accidentally removed configuration.nix

2017-04-10 Thread Benjamin Herr
I've been putting

    environment.etc = {
        nixos-orig.source = ./.;
    };

into my configuration.nix and for my still fairly trivial but at least
somewhat moduralized config it seems to work out all right.


On Thu, 2017-04-06 at 18:12 +0200, Guillaume Maudoux (Layus) wrote:
> Hi,
> 
> system.copySystemConfiguration is far from perfect. As soon as you 
> modularize your config, you will miss all the other files.
> 
> If you want a correct system.copySystemConfiguration, you really
> need 
> https://github.com/NixOS/nix/pull/709.
> It allows you to snapshot all the sources of a nix derivation, not
> just 
> one file.
> 
> I tested it back then, and it worked pretty well.
> 
> -- Layus.
> 
> 
> On 06/04/17 17:46, ni...@vince.lol wrote:
> > No I don't have `system.copySystemConfiguration=true` set :-(
> > Luckily I documented my recent efforts in some gists.
> > I managed to install NixOS on ZFS here: 
> > https://gist.github.com/awesomefireduck/c763e168a62a0ef559a1fb94732
> > 61459
> > And my (yet untested) attempt at PCI passthrough here: 
> > https://gist.github.com/awesomefireduck/1be07805081a4d7a51c527e452b
> > 87b26
> > There is still some missing, but nothing I can't handle, I guess.
> > This is a great time to enable my ZFS snapshots... :-/
> > 
> > Does anyone know why `system.copySystemConfiguration` is set to
> > false 
> > by default? It seems like it would be better to default this to
> > true, 
> > right?
> > Or at least have this listed in the generated config? 
> > (`nixos-generate-config`)
> > 
> > Anyway, I'll be okay, thanks folks!!
> > 
> > Sincerely,
> > Vince
> > On Thursday, April 6, 2017 4:58 PM, Sergiu Ivanov 
> >  wrote:
> > > 
> > > Hi Vince,
> > > 
> > > Thus quoth  ni...@vince.lol  at 14:12 on Thu, Apr 06 2017:
> > > > 
> > > > I acidentally removed my /etc/nixos/configuration.nix is there
> > > > any way
> > > > I can get it back?
> > > 
> > > 
> > > Citing directly from:
> > > 
> > >  http://stackoverflow.com/questions/28603773/recover-accidentally
> > > -deleted-configuration-nix-file 
> > > 
> > > 
> > >  '''
> > >  system.copySystemConfiguration
> > > 
> > >  If enabled, copies the NixOS configuration file $NIXOS_CONFIG
> > > (usually
> > >  /etc/nixos/configuration.nix) to the system store path.
> > > 
> > >  Type:"boolean"
> > > 
> > >  Default:false
> > > 
> > >  Declared by:   > > level.nix>
> > >  '''
> > > 
> > > Do you happen to have this option set to true?
> > > 
> > > /me goes and sets it to true on his system
> > > 
> > > -- 
> > > Sergiu
> > 
> > 
> > 
> > ___
> > nix-dev mailing list
> > nix-dev@lists.science.uu.nl
> > http://lists.science.uu.nl/mailman/listinfo/nix-dev
> 
> 
> ___
> nix-dev mailing list
> nix-dev@lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
> 
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-commits] [NixOS/nixpkgs] 6cc50b: obconf: add libSM to fix build

2017-02-26 Thread Benjamin Herr
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 6cc50b29763a6afdbd4e375256a08be1d40765be
  
https://github.com/NixOS/nixpkgs/commit/6cc50b29763a6afdbd4e375256a08be1d40765be
  Author: Benjamin Herr 
  Date:   2017-02-26 (Sun, 26 Feb 2017)

  Changed paths:
M pkgs/tools/X11/obconf/default.nix

  Log Message:
  ---
  obconf: add libSM to fix build


___
nix-commits mailing list
nix-comm...@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-commits


[Nix-commits] [NixOS/nixpkgs] 240ca8: evolution: improve out-of-gnome use

2016-09-08 Thread Benjamin Herr
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 240ca8bebed5b25d57a6992b27423a98e83c0777
  
https://github.com/NixOS/nixpkgs/commit/240ca8bebed5b25d57a6992b27423a98e83c0777
  Author: Benjamin Herr 
  Date:   2016-09-08 (Thu, 08 Sep 2016)

  Changed paths:
M pkgs/desktops/gnome-3/3.20/apps/evolution/default.nix

  Log Message:
  ---
  evolution: improve out-of-gnome use

Add `evolution_data_server` to `propagatedUserEnvPkgs`. Evolution needs
`${gnome3.evolution_data_server}/libexec/evolution-source-registry` to
be running to be able to find or create any account settings at all, and
it apparently doesn't know to start it if it's not in the user env.

Use `makeGAppsWrapper` instead of a custom `wrapProgram` invocation.

Add `glib_networking`, `libgnome_keyring` and `dconf` to `buildInputs`.
`libgnome_keyring` appears to be necessary for evolution to remember a
password even for a single session, even if it doesn't get added to the
keyring permanently. `dconf` is necessary to persist preferences.
`glib_networking` is necessary to connect to mail servers.


___
nix-commits mailing list
nix-comm...@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-commits


[Nix-commits] [NixOS/nixpkgs] dbae71: gitg: use wrapGAppsHook, pull in dconf (#18040)

2016-08-28 Thread Benjamin Herr
  Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: dbae71570f12fe6d63976921b5a61aa3a6b0bda1
  
https://github.com/NixOS/nixpkgs/commit/dbae71570f12fe6d63976921b5a61aa3a6b0bda1
  Author: Benjamin Herr 
  Date:   2016-08-28 (Sun, 28 Aug 2016)

  Changed paths:
M pkgs/desktops/gnome-3/3.20/misc/gitg/default.nix

  Log Message:
  ---
  gitg: use wrapGAppsHook, pull in dconf (#18040)

Without dconf, gitg doesn't remember preferences such as window size.


___
nix-commits mailing list
nix-comm...@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-commits