modules: system: move 'nix'
This commit is contained in:
parent
43ef533ae1
commit
130e04a152
3 changed files with 1 additions and 1 deletions
|
|
@ -6,6 +6,7 @@
|
|||
./documentation.nix
|
||||
./language.nix
|
||||
./media.nix
|
||||
./nix.nix
|
||||
./users.nix
|
||||
];
|
||||
}
|
||||
|
|
|
|||
19
modules/system/nix.nix
Normal file
19
modules/system/nix.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
# Nix related settings
|
||||
{ inputs, pkgs, ... }:
|
||||
|
||||
{
|
||||
nix = {
|
||||
package = pkgs.nixFlakes;
|
||||
registry = {
|
||||
# Allow me to use my custom package using `nix run self#pkg`
|
||||
self.flake = inputs.self;
|
||||
# Use pinned nixpkgs when using `nix run pkgs#<whatever>`
|
||||
pkgs.flake = inputs.nixpkgs;
|
||||
# Add NUR to run some packages that are only present there
|
||||
nur.flake = inputs.nur;
|
||||
};
|
||||
extraOptions = ''
|
||||
experimental-features = nix-command flakes
|
||||
'';
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue