nixos/flake.nix

31 lines
895 B
Nix
Raw Normal View History

2024-07-24 19:51:43 -04:00
{
description = "Luxzi's NixOS system configuration";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
2024-08-02 16:51:16 -04:00
catppuccin.url = "github:catppuccin/nix";
2024-07-24 19:51:43 -04:00
};
2024-08-02 16:51:16 -04:00
outputs = { self, nixpkgs, home-manager, catppuccin, ... }:
2024-07-24 19:51:43 -04:00
let
lib = nixpkgs.lib;
pkgs = nixpkgs.legacyPackages."x86_64-linux";
in {
nixosConfigurations = {
nixos = lib.nixosSystem {
specialArgs = { inherit self; };
2024-08-02 16:51:16 -04:00
modules = [ ./nixos/configuration.nix catppuccin.nixosModules.catppuccin ];
2024-07-24 19:51:43 -04:00
};
};
homeConfigurations = {
luxzi = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
2024-08-02 16:51:16 -04:00
modules = [ ./home-manager/home.nix catppuccin.homeManagerModules.catppuccin ];
2024-07-24 19:51:43 -04:00
};
};
};
}