universe/flake.nix
2025-03-02 16:53:58 +05:00

105 lines
2.8 KiB
Nix

{
description = ''
$$\
\__|
$$\ $$\ $$$$$$$\ $$\ $$\ $$\ $$$$$$\ $$$$$$\ $$$$$$$\ $$$$$$\
$$ | $$ |$$ __$$\ $$ |\$$\ $$ |$$ __$$\ $$ __$$\ $$ _____|$$ __$$\
$$ | $$ |$$ | $$ |$$ | \$$\$$ / $$$$$$$$ |$$ | \__|\$$$$$$\ $$$$$$$$ |
$$ | $$ |$$ | $$ |$$ | \$$$ / $$ ____|$$ | \____$$\ $$ ____|
\$$$$$$ |$$ | $$ |$$ | \$ / \$$$$$$$\ $$ | $$$$$$$ |\$$$$$$$\
\______/ \__| \__|\__| \_/ \_______|\__| \_______/ \_______|
'';
outputs = {
self,
stylix,
nixpkgs,
nixpkgs-master,
nix-index-database,
flake-parts,
nypkgs,
home-manager,
nvf,
lix-module,
...
} @ inputs:
flake-parts.lib.mkFlake {inherit inputs;} {
flake = let
system = "x86_64-linux";
in {
nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
specialArgs = {inherit inputs;};
modules = [
stylix.nixosModules.stylix
lix-module.nixosModules.default
./hosts/nixos
];
};
homeConfigurations.tx0 = home-manager.lib.homeManagerConfiguration {
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
overlays = [];
};
extraSpecialArgs = {inherit inputs;};
modules = [
stylix.homeManagerModules.stylix
nix-index-database.hmModules.nix-index
nvf.homeManagerModules.default
./home
];
};
};
systems = ["x86_64-linux"];
};
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
nixpkgs-stable.url = "github:nixos/nixpkgs/release-24.11";
nixpkgs-master.url = "github:nixos/nixpkgs/master";
nur.url = "github:nix-community/NUR";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
flake-parts.url = "github:hercules-ci/flake-parts";
stylix.url = "github:danth/stylix";
zen-browser.url = "github:0xc000022070/zen-browser-flake";
nix-index-database = {
url = "github:nix-community/nix-index-database";
inputs.nixpkgs.follows = "nixpkgs";
};
programsdb = {
url = "github:wamserma/flake-programs-sqlite";
inputs.nixpkgs.follows = "nixpkgs";
};
nypkgs = {
url = "github:yunfachi/nypkgs";
inputs.nixpkgs.follows = "nixpkgs";
};
anyrun = {
url = "github:anyrun-org/anyrun";
inputs.nixpkgs.follows = "nixpkgs";
};
nvf.url = "github:notashelf/nvf";
hyprland = {
url = "github:hyprwm/Hyprland/v0.46.2";
};
lix-module = {
url = "https://git.lix.systems/lix-project/nixos-module/archive/2.92.0.tar.gz";
inputs.nixpkgs.follows = "nixpkgs";
};
};
}