feat: migrate to nix flake

This commit is contained in:
Felix Schröter 2020-09-23 10:36:46 +02:00
parent d466f7e800
commit 80d4bb746e
No known key found for this signature in database
GPG key ID: 910ACB9F6BD26F58
12 changed files with 214 additions and 56 deletions

View file

@ -5,7 +5,6 @@
./hardened.nix
./i18n.nix
./nix.nix
./nur.nix
./vpn.nix
];

View file

@ -1,6 +1,12 @@
{ config, pkgs, ... }:
{
# for flakes support
nix.package = pkgs.nixUnstable;
nix.extraOptions = ''
experimental-features = nix-command flakes
'';
nix.autoOptimiseStore = true;
nix.gc = {
automatic = true;

View file

@ -1,9 +0,0 @@
{ config, pkgs, ... }:
{
nixpkgs.config.packageOverrides = pkgs: {
nur = import (builtins.fetchTarball "https://github.com/nix-community/NUR/archive/master.tar.gz") {
inherit pkgs;
};
};
}