This commit is contained in:
ediblerope 2026-03-28 12:09:08 +00:00 committed by GitHub
parent cedc64ab9b
commit e3bc048e42
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 13 additions and 32 deletions

View file

@ -1,4 +1,3 @@
# flake.nix — place this in the root of your nixos-config repo
{
description = "FredOS NixOS configuration";
@ -7,11 +6,11 @@
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs"; # shares your nixpkgs, no double download
inputs.nixpkgs.follows = "nixpkgs";
};
omnisearch = {
url = "git+https://git.bwaaa.monster/omnisearch/omnisearch";
url = "git+https://git.bwaaa.monster/omnisearch";
inputs.nixpkgs.follows = "nixpkgs";
};
@ -20,25 +19,21 @@
inputs.nixpkgs.follows = "nixpkgs";
};
nix-flatpak = {
url = "github:gmodena/nix-flatpak";
inputs.nixpkgs.follows = "nixpkgs";
};
nix-flatpak.url = "github:gmodena/nix-flatpak";
};
outputs = { self, nixpkgs, home-manager, omnisearch, zen-browser, nix-flatpak, ... } @ inputs:
let
system = "x86_64-linux";
# Helper so each host doesn't have to repeat the boilerplate
mkHost = hostname: nixpkgs.lib.nixosSystem {
inherit system;
specialArgs = { inherit inputs; }; # makes 'inputs' available in all your .nix files
specialArgs = { inherit inputs; };
modules = [
./hosts/${hostname}.nix # your existing per-host file
./common.nix # your existing shared config
./hosts/${hostname}.nix
./common.nix
home-manager.nixosModules.homeManager
nix-flatpak.nixosModules.nix-flatpak
omnisearch.nixosModules.default
];
};
in {

View file

@ -1,19 +1,5 @@
#omnisearch.nix
{ ... }:
{
inputs = {
omnisearch = {
url = "git+https://git.bwaaa.monster/omnisearch";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs, omnisearch, ... }: {
nixosConfigurations.mySystem = nixpkgs.lib.nixosSystem {
modules = [
omnisearch.nixosModules.default
{
services.omnisearch.enable = true;
}
];
};
};
}