mirror of
https://github.com/henrysipp/omarchy-nix.git
synced 2026-06-05 18:29:26 -05:00
56 lines
1.2 KiB
Nix
56 lines
1.2 KiB
Nix
{
|
|
description = "Omarchy - Base configuration flake";
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
hyprland.url = "github:hyprwm/Hyprland";
|
|
nix-colors.url = "github:misterio77/nix-colors";
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
};
|
|
outputs = inputs @ {
|
|
self,
|
|
nixpkgs,
|
|
hyprland,
|
|
nix-colors,
|
|
home-manager,
|
|
}: {
|
|
nixosModules = {
|
|
default = {
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}: {
|
|
imports = [
|
|
(import ./modules/nixos/default.nix inputs)
|
|
];
|
|
options.omarchy = (import ./config.nix lib).omarchyOptions;
|
|
config = {
|
|
nixpkgs.config.allowUnfree = true;
|
|
};
|
|
};
|
|
};
|
|
|
|
homeManagerModules = {
|
|
default = {
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
osConfig ? {},
|
|
...
|
|
}: {
|
|
imports = [
|
|
nix-colors.homeManagerModules.default
|
|
(import ./modules/home-manager/default.nix inputs)
|
|
];
|
|
options.omarchy = (import ./config.nix lib).omarchyOptions;
|
|
config = lib.mkIf (osConfig ? omarchy) {
|
|
omarchy = osConfig.omarchy;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|