diff options
author | sefidel <contact@sefidel.net> | 2021-12-28 01:11:25 +0900 |
---|---|---|
committer | sefidel <contact@sefidel.net> | 2021-12-28 01:12:48 +0900 |
commit | 56992b8c945d497a623fe693847c91235be1ae02 (patch) | |
tree | 102ff8c8872d7e14ce3e3dba69bf16685374504e /nixos/modules/flake.nix | |
download | nixrc-56992b8c945d497a623fe693847c91235be1ae02.tar.gz nixrc-56992b8c945d497a623fe693847c91235be1ae02.zip |
initial commit
Diffstat (limited to 'nixos/modules/flake.nix')
-rw-r--r-- | nixos/modules/flake.nix | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/nixos/modules/flake.nix b/nixos/modules/flake.nix new file mode 100644 index 0000000..a88f9d0 --- /dev/null +++ b/nixos/modules/flake.nix @@ -0,0 +1,12 @@ +{ config, pkgs, lib, ... }: + +{ + options.nix.flakes.enable = lib.mkEnableOption "nix flakes"; + + config = lib.mkIf config.nix.flakes.enable { + nix = { + package = pkgs.nixUnstable; + experimentalFeatures = "nix-command flakes"; + }; + }; +} |