This one should work on nix v2.18.x since v2.19.x is reported to have regressions
64 lines
1.9 KiB
Nix
64 lines
1.9 KiB
Nix
{
|
|
description = "null2264's Nix Setup";
|
|
|
|
outputs = inputs@{ self, nix-darwin, brew-api, nixpkgs-stable, nixpkgs-unstable, home-manager, system-manager, ... }:
|
|
let
|
|
vars = {
|
|
floorp = {
|
|
verticalTabHoverWidthInEm = 18;
|
|
};
|
|
rev = self.rev or self.dirtyRev or null;
|
|
};
|
|
in
|
|
{
|
|
darwinConfigurations = (
|
|
import ./systems/darwin {
|
|
inherit (nixpkgs-unstable) lib;
|
|
inherit inputs nixpkgs-stable nixpkgs-unstable nix-darwin brew-api home-manager vars;
|
|
}
|
|
);
|
|
|
|
systemConfigs = ( # sudo is required, sadly
|
|
import ./systems/nix {
|
|
inherit (nixpkgs-unstable) lib;
|
|
inherit inputs nixpkgs-stable nixpkgs-unstable system-manager home-manager vars;
|
|
}
|
|
);
|
|
|
|
homeConfigurations = (
|
|
import ./users {
|
|
inherit (nixpkgs-unstable) lib;
|
|
inherit inputs nixpkgs-stable nixpkgs-unstable home-manager vars;
|
|
}
|
|
);
|
|
};
|
|
|
|
inputs = {
|
|
nixpkgs-stable.url = "github:NixOS/nixpkgs/release-24.05";
|
|
nixpkgs-unstable.url = "github:NixOS/nixpkgs/2d2a9ddbe3f2c00747398f3dc9b05f7f2ebb0f53";
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
|
|
nix-darwin = {
|
|
url = "github:LnL7/nix-darwin/470f87c1827b51169ed4f91cdbdfd48417bfff3d";
|
|
inputs.nixpkgs.follows = "nixpkgs-stable";
|
|
};
|
|
firefox-darwin = {
|
|
url = "github:bandithedoge/nixpkgs-firefox-darwin";
|
|
inputs.nixpkgs.follows = "nixpkgs-stable";
|
|
};
|
|
brew-api = {
|
|
url = "github:BatteredBunny/brew-api";
|
|
flake = false;
|
|
};
|
|
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager/64c6325b28ebd708653dd41d88f306023f296184";
|
|
inputs.nixpkgs.follows = "nixpkgs-unstable"; # we need unstable (24.11) for programs.floorp. FIXME: switch to stable once 24.11 become stable
|
|
};
|
|
|
|
system-manager = {
|
|
url = "github:numtide/system-manager/c93e62f2e962b54fd961798731d25eaa5778dbe2";
|
|
inputs.nixpkgs.follows = "nixpkgs-stable";
|
|
};
|
|
};
|
|
}
|