universe/flake.nix

112 lines
2.9 KiB
Nix
Raw Normal View History

2025-03-02 11:53:58 +00:00
{
2025-03-02 19:00:20 +00:00
description = '' .
$$\
\__|
$$\ $$\ $$$$$$$\ $$\ $$\ $$\ $$$$$$\ $$$$$$\ $$$$$$$\ $$$$$$\
$$ | $$ |$$ __$$\ $$ |\$$\ $$ |$$ __$$\ $$ __$$\ $$ _____|$$ __$$\
$$ | $$ |$$ | $$ |$$ | \$$\$$ / $$$$$$$$ |$$ | \__|\$$$$$$\ $$$$$$$$ |
$$ | $$ |$$ | $$ |$$ | \$$$ / $$ ____|$$ | \____$$\ $$ ____|
\$$$$$$ |$$ | $$ |$$ | \$ / \$$$$$$$\ $$ | $$$$$$$ |\$$$$$$$\
\______/ \__| \__|\__| \_/ \_______|\__| \_______/ \_______|
A nixos/hm flake
2025-03-02 11:53:58 +00:00
'';
2025-03-02 19:00:20 +00:00
outputs = {self, ...} @ inputs: let
system = "x86_64-linux";
in
inputs.flake-parts.lib.mkFlake {inherit inputs;} {
2025-03-02 11:53:58 +00:00
flake = let
2025-03-02 19:00:20 +00:00
u = import ./ulib {inherit inputs system;};
2025-03-02 11:53:58 +00:00
in {
2025-03-02 19:00:20 +00:00
nixosConfigurations."earth" = inputs.nixpkgs.lib.nixosSystem {
specialArgs = {inherit system inputs u;};
2025-03-02 11:53:58 +00:00
modules = [
2025-03-02 19:00:20 +00:00
./hosts/common
./hosts/earth
2025-03-02 19:00:36 +00:00
# universe
2025-03-02 11:53:58 +00:00
];
};
2025-03-02 19:00:20 +00:00
homeConfigurations.tx0 = inputs.home-manager.lib.homeManagerConfiguration {
pkgs = import inputs.nixpkgs {
2025-03-02 11:53:58 +00:00
inherit system;
};
2025-03-02 19:00:20 +00:00
extraSpecialArgs = {inherit system inputs u;};
2025-03-02 11:53:58 +00:00
modules = [
./home
2025-03-02 19:00:36 +00:00
./universe.nix
2025-03-02 11:53:58 +00:00
];
};
};
2025-03-08 05:28:08 +00:00
systems = [
"x86_64-linux"
"aarch64-linux"
];
2025-03-02 11:53:58 +00:00
};
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
nixpkgs-stable.url = "github:nixos/nixpkgs/release-24.11";
nixpkgs-master.url = "github:nixos/nixpkgs/master";
2025-03-02 19:00:20 +00:00
nur = {
url = "github:nix-community/NUR";
inputs.nixpkgs.follows = "nixpkgs";
};
2025-03-02 11:53:58 +00:00
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
flake-parts.url = "github:hercules-ci/flake-parts";
2025-03-02 19:00:20 +00:00
stylix = {
url = "github:danth/stylix";
inputs.nixpkgs.follows = "nixpkgs";
};
zen-browser = {
url = "github:0xc000022070/zen-browser-flake";
inputs.nixpkgs.follows = "nixpkgs";
};
2025-03-02 11:53:58 +00:00
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";
};
2025-03-02 19:00:20 +00:00
nvf = {
url = "github:notashelf/nvf";
inputs.nixpkgs.follows = "nixpkgs";
};
2025-03-02 11:53:58 +00:00
hyprland = {
url = "github:hyprwm/Hyprland/v0.46.2";
2025-03-02 19:00:20 +00:00
inputs.nixpkgs.follows = "nixpkgs";
2025-03-02 11:53:58 +00:00
};
2025-03-02 19:00:20 +00:00
sops-nix = {
url = "github:Mic92/sops-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
2025-03-02 11:53:58 +00:00
};
}