mirror of
https://github.com/divnix/digga.git
synced 2024-12-23 16:11:51 +03:00
shell.nix: init minimal
This commit is contained in:
parent
11000f56e2
commit
92f78f3d93
1
.envrc
1
.envrc
@ -1 +1,2 @@
|
||||
export ISO=".#nixosConfigurations.niximg.config.system.build.isoImage"
|
||||
use nix
|
||||
|
17
shell.nix
Normal file
17
shell.nix
Normal file
@ -0,0 +1,17 @@
|
||||
{ pkgs ? import <nixpkgs> {} }:
|
||||
pkgs.mkShell {
|
||||
nativeBuildInputs = with pkgs; [
|
||||
nixFlakes
|
||||
];
|
||||
|
||||
NIX_CONF_DIR = let
|
||||
current = pkgs.lib.optionalString (builtins.pathExists /etc/nix/nix.conf)
|
||||
(builtins.readFile /etc/nix/nix.conf);
|
||||
|
||||
nixConf = pkgs.writeTextDir "opt/nix.conf" ''
|
||||
${current}
|
||||
experimental-features = nix-command flakes ca-references
|
||||
'';
|
||||
in
|
||||
"${nixConf}/opt";
|
||||
}
|
Loading…
Reference in New Issue
Block a user