2022-02-15 15:44:40 +01:00
|
|
|
{
|
|
|
|
inputs = {
|
|
|
|
home-manager = {
|
2023-06-23 14:09:45 +02:00
|
|
|
url = "github:nix-community/home-manager/release-23.05";
|
2022-02-15 15:44:40 +01:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
nixpkgs = {
|
2023-06-23 14:09:45 +02:00
|
|
|
url = "github:nixos/nixpkgs/nixos-23.05";
|
2022-02-15 15:44:40 +01:00
|
|
|
};
|
|
|
|
flake-utils = {
|
|
|
|
url = "github:numtide/flake-utils";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
outputs = inputs: {
|
|
|
|
nixosConfigurations = {
|
|
|
|
w1n5t0n = import ./machines/w1n5t0n.nix inputs;
|
2022-11-09 19:59:49 +01:00
|
|
|
morpheus = import ./machines/morpheus.nix inputs;
|
2022-02-15 15:44:40 +01:00
|
|
|
};
|
|
|
|
homeConfigurations = {
|
|
|
|
me = inputs.home-manager.lib.homeManagerConfiguration {
|
|
|
|
system = "x86_64-linux";
|
|
|
|
username = "me";
|
|
|
|
homeDirectory = "/home/me";
|
|
|
|
extraSpecialArgs = {
|
|
|
|
inherit inputs;
|
|
|
|
system = "x86_64-linux";
|
|
|
|
hostname = "w1n5t0n";
|
|
|
|
};
|
|
|
|
configuration.imports = [ ./users/me.nix ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
//
|
|
|
|
inputs.flake-utils.lib.eachDefaultSystem (system:
|
|
|
|
let pkgs = import inputs.nixpkgs {
|
|
|
|
inherit system;
|
|
|
|
};
|
|
|
|
in
|
|
|
|
{
|
|
|
|
devShell = pkgs.mkShell {
|
|
|
|
packages = with pkgs; [
|
2022-02-18 12:13:34 +01:00
|
|
|
inputs.home-manager.defaultPackage.${system}
|
2022-02-15 15:44:40 +01:00
|
|
|
];
|
2022-02-18 12:13:34 +01:00
|
|
|
};
|
2022-02-15 15:44:40 +01:00
|
|
|
}
|
|
|
|
);
|
|
|
|
}
|