mirror of
https://github.com/genebean/dots.git
synced 2026-03-27 01:17:42 -04:00
Stop redefining nixpkgs on NixOS
This commit is contained in:
parent
ba91e6b0ca
commit
087a6fe757
1 changed files with 13 additions and 10 deletions
23
flake.nix
23
flake.nix
|
|
@ -119,17 +119,20 @@
|
|||
|
||||
# creates a nixos system config
|
||||
nixosHostConfig = { system, hostname, username, additionalModules, additionalSpecialArgs }: nixpkgs.lib.nixosSystem {
|
||||
specialArgs = { inherit inputs compose2nix hostname username;
|
||||
pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
config = {
|
||||
allowUnfree = true;
|
||||
permittedInsecurePackages = [ "olm-3.2.16" "electron-27.3.11" ];
|
||||
};
|
||||
overlays = [ nixpkgs-terraform.overlays.default ];
|
||||
};
|
||||
} // additionalSpecialArgs;
|
||||
inherit system;
|
||||
specialArgs = { inherit inputs compose2nix hostname username; } // additionalSpecialArgs;
|
||||
modules = [
|
||||
# move this to a common file later
|
||||
({
|
||||
nixpkgs = {
|
||||
config = {
|
||||
allowUnfree = true;
|
||||
permittedInsecurePackages = [ "olm-3.2.16" "electron-27.3.11" ];
|
||||
};
|
||||
overlays = [ nixpkgs-terraform.overlays.default ];
|
||||
};
|
||||
})
|
||||
|
||||
disko.nixosModules.disko
|
||||
|
||||
home-manager.nixosModules.home-manager {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue