Fixup flake.nix syntax

This commit is contained in:
Gene Liverman 2024-03-04 21:50:56 -05:00
parent bfde05861e
commit 3c26121de1

View file

@ -47,6 +47,7 @@
# creates a macOS system config # creates a macOS system config
darwinHostConfig = system: hostname: username: nix-darwin.lib.darwinSystem { darwinHostConfig = system: hostname: username: nix-darwin.lib.darwinSystem {
specialArgs = { inherit inputs username hostname;
pkgs = import nixpkgs { pkgs = import nixpkgs {
inherit system; inherit system;
config = { config = {
@ -54,7 +55,14 @@
permittedInsecurePackages = [ "python-2.7.18.7" ]; permittedInsecurePackages = [ "python-2.7.18.7" ];
}; };
}; };
specialArgs = { inherit inputs username hostname; }; pkgs-unstable = import nixpkgs-unstable {
inherit system;
config = {
allowUnfree = true;
permittedInsecurePackages = [ "python-2.7.18.7" ];
};
};
};
modules = [ modules = [
nix-homebrew.darwinModules.nix-homebrew { nix-homebrew.darwinModules.nix-homebrew {
nix-homebrew = { nix-homebrew = {
@ -83,6 +91,7 @@
# creates a nixos system config # creates a nixos system config
nixosHostConfig = system: hostname: username: nixpkgs.lib.nixosSystem { nixosHostConfig = system: hostname: username: nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs username hostname;
pkgs = import nixpkgs { pkgs = import nixpkgs {
inherit system; inherit system;
config = { config = {
@ -90,7 +99,14 @@
permittedInsecurePackages = [ "electron-21.4.4" ]; permittedInsecurePackages = [ "electron-21.4.4" ];
}; };
}; };
specialArgs = { inherit inputs username hostname; }; pkgs-unstable = import nixpkgs-unstable {
inherit system;
config = {
allowUnfree = true;
permittedInsecurePackages = [ "electron-21.4.4" ];
};
};
};
modules = [ modules = [
disko.nixosModules.disko disko.nixosModules.disko
@ -114,6 +130,7 @@
}; # end nixosSystem }; # end nixosSystem
linuxHomeConfig = system: hostname: username: home-manager.lib.homeManagerConfiguration { linuxHomeConfig = system: hostname: username: home-manager.lib.homeManagerConfiguration {
extraSpecialArgs = { inherit genebean-omp-themes hostname username;
pkgs = import nixpkgs { pkgs = import nixpkgs {
inherit system; inherit system;
config = { config = {
@ -121,7 +138,14 @@
permittedInsecurePackages = [ "electron-21.4.4" ]; permittedInsecurePackages = [ "electron-21.4.4" ];
}; };
}; };
extraSpecialArgs = { inherit genebean-omp-themes hostname username; }; pkgs-unstable = import nixpkgs-unstable {
inherit system;
config = {
allowUnfree = true;
permittedInsecurePackages = [ "electron-21.4.4" ];
};
};
};
modules = [ modules = [
./modules/home-manager/hosts/${hostname}/${username}.nix ./modules/home-manager/hosts/${hostname}/${username}.nix
{ {