64 lines
1.7 KiB
Nix
64 lines
1.7 KiB
Nix
{
|
|
description = "A very basic flake";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
|
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
hyprland = {
|
|
type = "git";
|
|
url = "https://github.com/hyprwm/Hyprland";
|
|
submodules = true;
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
hy3 = {
|
|
url = "github:outfoxxed/hy3";
|
|
inputs.hyprland.follows = "hyprland";
|
|
};
|
|
};
|
|
|
|
outputs = { self, nixpkgs, ... } @ inputs: {
|
|
nixosConfigurations.z790prors-nix = nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
specialArgs = { inherit inputs; };
|
|
modules = [ ./machines/z790prors/configuration.nix ];
|
|
};
|
|
|
|
nixosConfigurations.nix-book = nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
specialArgs = { inherit inputs; };
|
|
modules = [ ./machines/nix-book/configuration.nix ];
|
|
};
|
|
|
|
homeConfigurations = let
|
|
system = "x86_64-linux";
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
in {
|
|
"johno@nix-book" = inputs.home-manager.lib.homeManagerConfiguration {
|
|
inherit pkgs;
|
|
|
|
extraSpecialArgs = { inherit inputs; };
|
|
modules = [
|
|
inputs.hyprland.homeManagerModules.default
|
|
/home/johno/.config/home-manager/home-nix-book.nix
|
|
];
|
|
};
|
|
|
|
"johno@z790prors-nix" = inputs.home-manager.lib.homeManagerConfiguration {
|
|
inherit pkgs;
|
|
|
|
extraSpecialArgs = { inherit inputs; };
|
|
modules = [
|
|
inputs.hyprland.homeManagerModules.default
|
|
/home/johno/.config/home-manager/home-z790prors.nix
|
|
];
|
|
};
|
|
|
|
};
|
|
};
|
|
}
|