This commit is contained in:
parent
cedc64ab9b
commit
e3bc048e42
2 changed files with 13 additions and 32 deletions
19
flake.nix
19
flake.nix
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -1,19 +1,5 @@
|
|||
{
|
||||
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
|
||||
#omnisearch.nix
|
||||
{ ... }:
|
||||
{
|
||||
services.omnisearch.enable = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue