forked from Drift/pvv-nixos-config
lock nix-path and local flake registry to sytem nixpkgs
This commit is contained in:
parent
3720b9d20d
commit
6fad2c7854
13
base.nix
13
base.nix
|
@ -1,4 +1,4 @@
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, inputs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
@ -29,6 +29,17 @@
|
||||||
|
|
||||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||||
|
|
||||||
|
/* This makes commandline tools like
|
||||||
|
** nix run nixpkgs#hello
|
||||||
|
** and nix-shell -p hello
|
||||||
|
** use the same channel the system
|
||||||
|
** was built with
|
||||||
|
*/
|
||||||
|
nix.registry = {
|
||||||
|
nixpkgs.flake = inputs.nixpkgs;
|
||||||
|
};
|
||||||
|
nix.nixPath = [ "nixpkgs=${inputs.nixpkgs}" ];
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
file
|
file
|
||||||
git
|
git
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
jokum = nixpkgs.lib.nixosSystem {
|
jokum = nixpkgs.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
specialArgs = { inherit unstable; };
|
specialArgs = { inherit unstable inputs; };
|
||||||
modules = [
|
modules = [
|
||||||
./hosts/jokum/configuration.nix
|
./hosts/jokum/configuration.nix
|
||||||
sops-nix.nixosModules.sops
|
sops-nix.nixosModules.sops
|
||||||
|
|
Loading…
Reference in New Issue