Kieran's opinionated (and probably slightly dumb) nix config

feat: move to newer nixpkgs.hostPlatform and fix inherit (self) outputs

dunkirk.sh 3cec15ef 430ce776

verified
Changed files
+8 -13
+8 -13
flake.nix
···
...
}@inputs:
let
-
inherit (self) outputs;
-
system = "x86_64-linux";
+
outputs = inputs.self.outputs;
unstable-overlays = {
nixpkgs.overlays = [
(final: prev: {
unstable = import nixpkgs-unstable {
-
inherit system;
config.allowUnfree = true;
};
···
# Available through 'nixos-rebuild --flake .#your-hostname'
nixosConfigurations = {
moonlark = nixpkgs.lib.nixosSystem {
-
system = "x86_64-linux";
-
specialArgs = { inherit inputs outputs; };
# > Our main nixos configuration file <
···
inputs.disko.nixosModules.disko
{ disko.devices.disk.disk1.device = "/dev/vda"; }
agenix.nixosModules.default
+
unstable-overlays
+
{ nixpkgs.hostPlatform = "x86_64-linux"; }
./nixos/machines/moonlark/configuration.nix
-
unstable-overlays
];
};
};
···
homeConfigurations = {
"tacyon" = home-manager.lib.homeManagerConfiguration {
pkgs = import nixpkgs {
-
system = "aarch64-linux";
config.allowUnfree = true;
};
extraSpecialArgs = {
inherit inputs outputs;
nixpkgs-unstable = nixpkgs-unstable;
-
system = "aarch64-linux";
};
modules = [
./home-manager/machines/tacyon
unstable-overlays
+
{ nixpgs.hostPlatform = "aarch64-linux"; }
];
};
"nest" = home-manager.lib.homeManagerConfiguration {
pkgs = import nixpkgs {
-
system = "x86_64-linux";
config.allowUnfree = true;
};
extraSpecialArgs = {
inherit inputs outputs;
nixpkgs-unstable = nixpkgs-unstable;
-
system = "x86_64-linux";
};
modules = [
./home-manager/machines/nest
unstable-overlays
+
{ nixpkgs.hostPlatform = "x86_64-linux"; }
];
};
"ember" = home-manager.lib.homeManagerConfiguration {
pkgs = import nixpkgs {
-
system = "x86_64-linux";
config.allowUnfree = true;
};
extraSpecialArgs = {
inherit inputs outputs;
nixpkgs-unstable = nixpkgs-unstable;
-
system = "x86_64-linux";
};
modules = [
./home-manager/machines/ember
unstable-overlays
+
{ nixpkgs.hostPlatform = "x86_64-linux"; }
];
};
};
-
formatter.x86_64-linux = nixpkgs.legacyPackages.${system}.nixfmt-tree;
+
+
formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.nixfmt-tree;
};
}