universe/flake.nix

102 lines
2.7 KiB
Nix
Raw Normal View History

2025-03-02 11:53:58 +00:00
{
2025-03-02 19:00:20 +00:00
description = '' .
$$\
\__|
$$\ $$\ $$$$$$$\ $$\ $$\ $$\ $$$$$$\ $$$$$$\ $$$$$$$\ $$$$$$\
$$ | $$ |$$ __$$\ $$ |\$$\ $$ |$$ __$$\ $$ __$$\ $$ _____|$$ __$$\
$$ | $$ |$$ | $$ |$$ | \$$\$$ / $$$$$$$$ |$$ | \__|\$$$$$$\ $$$$$$$$ |
$$ | $$ |$$ | $$ |$$ | \$$$ / $$ ____|$$ | \____$$\ $$ ____|
\$$$$$$ |$$ | $$ |$$ | \$ / \$$$$$$$\ $$ | $$$$$$$ |\$$$$$$$\
\______/ \__| \__|\__| \_/ \_______|\__| \_______/ \_______|
2025-03-14 16:40:36 +00:00
A nixos/hm flake
2025-03-02 11:53:58 +00:00
'';
2025-03-14 16:40:36 +00:00
outputs = {self, ...} @ inputs:
2025-03-02 19:00:20 +00:00
inputs.flake-parts.lib.mkFlake {inherit inputs;} {
2025-03-02 11:53:58 +00:00
flake = let
2025-03-14 16:40:36 +00:00
machineConf = import ./machines/earth/earth.nix {inherit self;};
system = machineConf.universe.system.arch;
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-14 16:40:36 +00:00
machineConf
./modules
./home
./host
2025-03-12 16:24:24 +00:00
inputs.home-manager.nixosModules.home-manager
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";
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
};
}