linuxware/flake.nix

55 lines
1.2 KiB
Nix
Raw Normal View History

2023-11-05 04:53:31 -03:00
{
description = "NixOS System Flake";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
2023-11-05 04:53:31 -03:00
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
2024-07-16 00:43:51 -03:00
spicetify-nix = {
url = "github:Gerg-L/spicetify-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
catppuccin.url = "github:catppuccin/nix";
2023-11-05 04:53:31 -03:00
};
outputs =
{
home-manager,
nixpkgs,
catppuccin,
...
}@inputs:
let
system = "x86_64-linux";
2024-07-11 04:53:41 -03:00
pkgs = nixpkgs.legacyPackages.${system};
in
{
nixosConfigurations."wizdesk" =
2024-04-11 20:02:59 -03:00
let
specialArgs = inputs;
modules = [
./nixos.nix
catppuccin.nixosModules.catppuccin
];
2024-04-11 20:02:59 -03:00
in
nixpkgs.lib.nixosSystem { inherit system specialArgs modules; };
2024-07-11 04:53:41 -03:00
homeConfigurations.wizardlink = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
extraSpecialArgs = inputs;
modules = [
./home-manager.nix
catppuccin.homeManagerModules.catppuccin
];
2024-07-11 04:53:41 -03:00
};
formatter."${system}" = pkgs.nixfmt-rfc-style;
};
2023-11-05 04:53:31 -03:00
}