2024-09-13 14:55:27 -07:00
|
|
|
{
|
|
|
|
description = "Joey's Flake";
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
|
|
|
|
nixpkgs-stable.url = "github:NixOS/nixpkgs/nixos-24.05";
|
|
|
|
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
|
|
hyprland.url = "github:hyprwm/Hyprland";
|
|
|
|
hyprland.inputs.nixpkgs.follows = "nixpkgs-unstable";
|
|
|
|
home-manager.url = "github:nix-community/home-manager/release-24.05";
|
|
|
|
home-manager.inputs.nixpkgs.follows = "nixpkgs-stable";
|
2024-09-14 12:43:44 -07:00
|
|
|
nix-flatpak.url = "github:gmodena/nix-flatpak";
|
2024-09-13 14:55:27 -07:00
|
|
|
};
|
|
|
|
outputs = {
|
|
|
|
self,
|
|
|
|
nixpkgs,
|
|
|
|
nixpkgs-stable,
|
|
|
|
nixpkgs-unstable,
|
|
|
|
home-manager,
|
|
|
|
hyprland,
|
2024-09-14 12:43:44 -07:00
|
|
|
nix-flatpak,
|
2024-09-13 14:55:27 -07:00
|
|
|
...
|
|
|
|
}@inputs:
|
|
|
|
let
|
|
|
|
lib = nixpkgs.lib;
|
|
|
|
system = "x86_64-linux";
|
2024-09-14 16:51:41 -07:00
|
|
|
pkgs = import inputs.nixpkgs {
|
|
|
|
system = system;
|
|
|
|
config = { allowUnfree = true; };
|
|
|
|
};
|
2024-09-14 15:07:15 -07:00
|
|
|
pkgs-stable = nixpkgs-stable.legacyPackages.${system};
|
|
|
|
pkgs-unstable = nixpkgs-unstable.legacyPackages.${system};
|
2024-09-13 14:55:27 -07:00
|
|
|
in {
|
|
|
|
nixosConfigurations = {
|
|
|
|
joey-laptop = lib.nixosSystem {
|
|
|
|
specialArgs = { inherit inputs; };
|
|
|
|
system = system;
|
|
|
|
modules = [
|
|
|
|
./nixos/configuration.nix
|
|
|
|
inputs.home-manager.nixosModules.default
|
|
|
|
inputs.hyprland.nixosModules.default
|
2024-09-14 12:43:44 -07:00
|
|
|
nix-flatpak.nixosModules.nix-flatpak
|
2024-09-13 14:55:27 -07:00
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
homeConfigurations = {
|
|
|
|
joey = home-manager.lib.homeManagerConfiguration {
|
|
|
|
pkgs = pkgs;
|
2024-09-14 15:07:15 -07:00
|
|
|
extraSpecialArgs = {
|
|
|
|
pkgs-unstable = pkgs-unstable;
|
|
|
|
};
|
2024-09-13 14:55:27 -07:00
|
|
|
modules = [ ./home-manager/home.nix ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|