liminalOS/flake.nix

40 lines
1.2 KiB
Nix
Executable file

{
description = "System configuration flake.";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
home-manager = {
url = "github:nix-community/home-manager/release-24.05";
inputs.nixpkgs.follows = "nixpkgs";
};
hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1";
catppuccin.url = "github:catppuccin/nix";
zimfw.url = "github:joedevivo/zimfw.nix";
};
outputs = { self, nixpkgs, home-manager, catppuccin, zimfw, ... }@inputs: {
nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs; };
system = "x86_64-linux";
modules = [
./configuration.nix
catppuccin.nixosModules.catppuccin
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.backupFileExtension = "backup";
home-manager.sharedModules = [ zimfw.homeManagerModules.zimfw ];
home-manager.users.youwen = {
imports = [
./home.nix
catppuccin.homeManagerModules.catppuccin
];
};
}
];
};
};
}