replace unstable stuff with overlay
This commit is contained in:
@@ -71,26 +71,35 @@
|
||||
...
|
||||
} @ inputs: let
|
||||
systems = {
|
||||
x86_64 = "x86_64-linux";
|
||||
arm64 = "aarch64-linux";
|
||||
darwin = "aarch64-darwin";
|
||||
x86_64-linux = "x86_64-linux";
|
||||
aarch64-linux = "aarch64-linux";
|
||||
aarch64-darwin = "aarch64-darwin";
|
||||
};
|
||||
unstableOverlay = final: prev: {
|
||||
unstable = import nixpkgs-unstable {
|
||||
system = prev.system;
|
||||
config.allowUnfree = true;
|
||||
};
|
||||
};
|
||||
# legacy
|
||||
stable_pkgs = builtins.mapAttrs (k: v: import nixpkgs {system = v;}) systems;
|
||||
unstable_pkgs = builtins.mapAttrs (k: v: import nixpkgs-unstable {system = v;}) systems;
|
||||
in {
|
||||
nixosConfigurations = {
|
||||
snowbelle = nixpkgs.lib.nixosSystem {
|
||||
system = systems.x86_64;
|
||||
system = systems.x86_64-linux;
|
||||
specialArgs = {inherit inputs stable_pkgs unstable_pkgs;};
|
||||
modules = [
|
||||
{ nixpkgs.overlays = [ unstableOverlay ]; }
|
||||
./hosts/nixos/snowbelle/configuration.nix
|
||||
inputs.home-manager.nixosModules.default
|
||||
];
|
||||
};
|
||||
yveltal = nixpkgs-unstable.lib.nixosSystem {
|
||||
system = systems.x86_64;
|
||||
system = systems.x86_64-linux;
|
||||
specialArgs = {inherit inputs stable_pkgs unstable_pkgs;};
|
||||
modules = [
|
||||
{ nixpkgs.overlays = [ unstableOverlay ]; }
|
||||
./hosts/nixos/yveltal/configuration.nix
|
||||
./hosts/nixos/yveltal/disko.nix
|
||||
inputs.home-manager-unstable.nixosModules.default
|
||||
@@ -98,9 +107,10 @@
|
||||
];
|
||||
};
|
||||
mew = nixpkgs-unstable.lib.nixosSystem {
|
||||
system = systems.x86_64;
|
||||
system = systems.x86_64-linux;
|
||||
specialArgs = {inherit inputs stable_pkgs unstable_pkgs;};
|
||||
modules = [
|
||||
{ nixpkgs.overlays = [ unstableOverlay ]; }
|
||||
./hosts/nixos/mew/configuration.nix
|
||||
./hosts/nixos/mew/disko.nix
|
||||
inputs.home-manager-unstable.nixosModules.default
|
||||
@@ -108,26 +118,29 @@
|
||||
];
|
||||
};
|
||||
vaniville = nixpkgs.lib.nixosSystem {
|
||||
system = systems.x86_64;
|
||||
system = systems.x86_64-linux;
|
||||
specialArgs = {inherit inputs stable_pkgs unstable_pkgs;};
|
||||
modules = [
|
||||
{ nixpkgs.overlays = [ unstableOverlay ]; }
|
||||
./hosts/nixos/vaniville/configuration.nix
|
||||
inputs.home-manager.nixosModules.default
|
||||
];
|
||||
};
|
||||
lumiose = nixpkgs.lib.nixosSystem {
|
||||
system = systems.x86_64;
|
||||
system = systems.x86_64-linux;
|
||||
specialArgs = {inherit inputs stable_pkgs unstable_pkgs;};
|
||||
modules = [
|
||||
{ nixpkgs.overlays = [ unstableOverlay ]; }
|
||||
./hosts/nixos/lumiose/configuration.nix
|
||||
inputs.home-manager.nixosModules.default
|
||||
inputs.disko.nixosModules.disko
|
||||
];
|
||||
};
|
||||
wsl = nixpkgs.lib.nixosSystem {
|
||||
system = systems.x86_64;
|
||||
system = systems.x86_64-linux;
|
||||
specialArgs = {inherit inputs stable_pkgs unstable_pkgs;};
|
||||
modules = [
|
||||
{ nixpkgs.overlays = [ unstableOverlay ]; }
|
||||
./hosts/nixos/wsl/configuration.nix
|
||||
nixos-wsl.nixosModules.default
|
||||
inputs.home-manager.nixosModules.default
|
||||
@@ -136,9 +149,10 @@
|
||||
};
|
||||
darwinConfigurations = {
|
||||
cen-it-07 = nix-darwin.lib.darwinSystem {
|
||||
system = systems.darwin;
|
||||
system = systems.aarch64-darwin;
|
||||
specialArgs = {inherit inputs stable_pkgs unstable_pkgs nix-homebrew;};
|
||||
modules = [
|
||||
{ nixpkgs.overlays = [ unstableOverlay ]; }
|
||||
./hosts/darwin/cen-it-07/configuration.nix
|
||||
inputs.home-manager.darwinModules.default
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user