2022-09-26 20:28:35 +00:00
|
|
|
{
|
2023-07-30 22:01:46 +00:00
|
|
|
inputs = {
|
|
|
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
2023-08-03 21:59:10 +00:00
|
|
|
home-manager.url = "github:nix-community/home-manager/release-23.05";
|
|
|
|
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.05";
|
2023-07-30 22:01:46 +00:00
|
|
|
};
|
2022-09-26 20:28:35 +00:00
|
|
|
|
2023-05-03 23:04:02 +00:00
|
|
|
outputs =
|
2023-08-03 21:59:10 +00:00
|
|
|
inputs@{ flake-parts, home-manager, nixpkgs, nixpkgs-unstable, self, ... }:
|
2023-05-03 23:04:02 +00:00
|
|
|
flake-parts.lib.mkFlake { inherit inputs; } {
|
|
|
|
systems = [ "x86_64-linux" ];
|
2022-10-02 22:42:33 +00:00
|
|
|
|
2023-05-03 23:04:02 +00:00
|
|
|
perSystem = { pkgs, self', nixpkgs, ... }: {
|
|
|
|
packages.default = self'.packages.activate;
|
2023-03-30 18:15:51 +00:00
|
|
|
|
2023-05-03 23:04:02 +00:00
|
|
|
formatter = pkgs.nixpkgs-fmt;
|
|
|
|
};
|
2023-03-30 18:15:51 +00:00
|
|
|
|
2023-05-03 23:04:02 +00:00
|
|
|
flake = {
|
|
|
|
nixosConfigurations = {
|
|
|
|
nixedo = nixpkgs.lib.nixosSystem {
|
|
|
|
modules = [
|
|
|
|
./system/nixos/nixedo/configuration.nix
|
|
|
|
|
|
|
|
home-manager.nixosModules.home-manager
|
|
|
|
{
|
2023-08-03 21:59:10 +00:00
|
|
|
home-manager = {
|
2023-08-05 00:21:31 +00:00
|
|
|
extraSpecialArgs = { inherit inputs; };
|
2023-08-03 21:59:10 +00:00
|
|
|
useGlobalPkgs = true;
|
|
|
|
useUserPackages = true;
|
|
|
|
users.opdavies = import ./home-manager/nixedo.nix;
|
|
|
|
};
|
2023-05-03 23:04:02 +00:00
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
2023-03-30 18:15:51 +00:00
|
|
|
};
|
2022-09-27 06:37:57 +00:00
|
|
|
|
2023-05-03 23:04:02 +00:00
|
|
|
homeConfigurations = {
|
|
|
|
wsl2 = home-manager.lib.homeManagerConfiguration {
|
2023-07-22 07:45:01 +00:00
|
|
|
modules = [ ./system/wsl2.nix ];
|
2023-05-03 23:04:02 +00:00
|
|
|
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
|
|
|
};
|
2023-03-30 18:15:51 +00:00
|
|
|
};
|
2022-09-27 06:37:57 +00:00
|
|
|
};
|
2022-09-26 20:28:35 +00:00
|
|
|
};
|
|
|
|
}
|