⚡️ (neodymium) pin nixpkgs registry to system
This commit is contained in:
parent
68dbf045cb
commit
b4d07e7b6c
|
@ -43,7 +43,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { nixpkgs, flake-utils, lanzaboote, agenix, home-manager
|
outputs = { nixpkgs, flake-utils, lanzaboote, agenix, home-manager
|
||||||
, nixos-hardware, ... }@attrs:
|
, nixos-hardware, ... }@inputs:
|
||||||
|
|
||||||
(flake-utils.lib.eachDefaultSystem (system:
|
(flake-utils.lib.eachDefaultSystem (system:
|
||||||
let pkgs = nixpkgs.legacyPackages.${system};
|
let pkgs = nixpkgs.legacyPackages.${system};
|
||||||
|
@ -62,7 +62,7 @@
|
||||||
# neodymium laptop
|
# neodymium laptop
|
||||||
nixosConfigurations.neodymium = nixpkgs.lib.nixosSystem {
|
nixosConfigurations.neodymium = nixpkgs.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
specialArgs = attrs;
|
specialArgs = inputs;
|
||||||
modules = [
|
modules = [
|
||||||
./hosts/neodymium
|
./hosts/neodymium
|
||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ lib, pkgs, ... }: {
|
{ lib, pkgs, nixpkgs, ... }: {
|
||||||
# restrict nix command to sudoers
|
# restrict nix command to sudoers
|
||||||
nix.settings.allowed-users = [ "@wheel" ];
|
nix.settings.allowed-users = [ "@wheel" ];
|
||||||
|
|
||||||
|
@ -25,6 +25,9 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# pin nixpkgs registry
|
||||||
|
nix.registry.nixpkgs.flake = nixpkgs;
|
||||||
|
|
||||||
# list of allowed unfree packages
|
# list of allowed unfree packages
|
||||||
nixpkgs.config.allowUnfreePredicate = pkg:
|
nixpkgs.config.allowUnfreePredicate = pkg:
|
||||||
builtins.elem (lib.getName pkg) [
|
builtins.elem (lib.getName pkg) [
|
||||||
|
|
Loading…
Reference in a new issue