2024-09-13 14:55:27 -07:00
|
|
|
{
|
|
|
|
description = "Joey's Flake";
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.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";
|
2024-09-15 21:46:24 -07:00
|
|
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
2024-09-14 12:43:44 -07:00
|
|
|
nix-flatpak.url = "github:gmodena/nix-flatpak";
|
2024-09-15 21:46:24 -07:00
|
|
|
stylix.url = "github:danth/stylix";
|
|
|
|
stylix.inputs.nixpkgs.follows = "nixpkgs";
|
2024-09-16 12:49:55 -07:00
|
|
|
nixos-conf-editor.url = "github:snowfallorg/nixos-conf-editor";
|
|
|
|
nixos-conf-editor.inputs.nixpkgs.follows = "nixpkgs";
|
2024-09-13 14:55:27 -07:00
|
|
|
};
|
2024-09-15 21:46:24 -07:00
|
|
|
outputs = inputs@{
|
2024-09-13 14:55:27 -07:00
|
|
|
nixpkgs,
|
|
|
|
nixpkgs-unstable,
|
2024-09-15 21:46:24 -07:00
|
|
|
hyprland,
|
2024-09-13 14:55:27 -07:00
|
|
|
home-manager,
|
2024-09-14 12:43:44 -07:00
|
|
|
nix-flatpak,
|
2024-09-15 21:46:24 -07:00
|
|
|
stylix,
|
2024-09-13 14:55:27 -07:00
|
|
|
...
|
2024-09-15 21:46:24 -07:00
|
|
|
}:
|
|
|
|
let
|
|
|
|
system = "x86_64-linux";
|
|
|
|
lib = nixpkgs.lib;
|
|
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
|
|
pkgs-unstable = nixpkgs-unstable.legacyPackages.${system};
|
|
|
|
in {
|
2024-09-13 14:55:27 -07:00
|
|
|
nixosConfigurations = {
|
|
|
|
joey-laptop = lib.nixosSystem {
|
2024-09-15 21:46:24 -07:00
|
|
|
inherit system;
|
2024-09-16 12:49:55 -07:00
|
|
|
specialArgs = { inherit pkgs-unstable; inherit inputs; };
|
2024-09-13 14:55:27 -07:00
|
|
|
modules = [
|
|
|
|
./nixos/configuration.nix
|
|
|
|
inputs.hyprland.nixosModules.default
|
2024-09-15 21:46:24 -07:00
|
|
|
inputs.stylix.nixosModules.stylix
|
|
|
|
inputs.nix-flatpak.nixosModules.nix-flatpak
|
2024-09-13 14:55:27 -07:00
|
|
|
];
|
|
|
|
};
|
2024-09-16 13:45:18 -07:00
|
|
|
homeConfigurations = {
|
|
|
|
joey = home-manager.lib.homeManagerConfiguration {
|
|
|
|
inherit pkgs, pkgs-unstable;
|
|
|
|
modules = [ ./home-manager/joey.nix ];
|
|
|
|
};
|
|
|
|
};
|
2024-09-13 14:55:27 -07:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|