2024-07-11 03:56:19 -07:00
|
|
|
{
|
|
|
|
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";
|
2024-07-11 17:25:22 -07:00
|
|
|
catppuccin.url = "github:catppuccin/nix";
|
2024-07-11 23:09:25 -07:00
|
|
|
zimfw.url = "github:joedevivo/zimfw.nix";
|
2024-07-11 03:56:19 -07:00
|
|
|
};
|
|
|
|
|
2024-07-11 23:09:25 -07:00
|
|
|
outputs = { self, nixpkgs, home-manager, catppuccin, zimfw, ... }@inputs: {
|
2024-07-11 03:56:19 -07:00
|
|
|
nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
|
|
|
|
specialArgs = { inherit inputs; };
|
|
|
|
system = "x86_64-linux";
|
|
|
|
modules = [
|
|
|
|
./configuration.nix
|
2024-07-11 23:09:25 -07:00
|
|
|
|
2024-07-11 17:25:22 -07:00
|
|
|
catppuccin.nixosModules.catppuccin
|
|
|
|
|
2024-07-11 03:56:19 -07:00
|
|
|
home-manager.nixosModules.home-manager
|
|
|
|
{
|
|
|
|
home-manager.useGlobalPkgs = true;
|
|
|
|
home-manager.useUserPackages = true;
|
2024-07-11 20:01:04 -07:00
|
|
|
home-manager.backupFileExtension = "backup";
|
2024-07-11 23:09:25 -07:00
|
|
|
home-manager.sharedModules = [ zimfw.homeManagerModules.zimfw ];
|
2024-07-11 17:25:22 -07:00
|
|
|
home-manager.users.youwen = {
|
|
|
|
imports = [
|
|
|
|
./home.nix
|
|
|
|
catppuccin.homeManagerModules.catppuccin
|
|
|
|
];
|
|
|
|
};
|
2024-07-11 03:56:19 -07:00
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|