Files

48 lines
1.3 KiB
Nix

{
description = "chexit NixOS configuration";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
helium-browser = {
url = "github:schembriaiden/helium-browser-nix-flake";
inputs.nixpkgs.follows = "nixpkgs";
};
codex-cli-nix.url = "github:sadjow/codex-cli-nix";
};
outputs = { nixpkgs, home-manager, helium-browser, codex-cli-nix, ... }:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
in
{
nixosConfigurations.chexit = nixpkgs.lib.nixosSystem {
inherit system;
specialArgs = {
helium = helium-browser.packages.${system}.helium;
codex = codex-cli-nix.packages.${system}.default;
};
modules = [
./configuration.nix
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.backupFileExtension = "hm-bak";
home-manager.users.chexit = import ./home.nix;
}
];
};
devShells.${system}.default = pkgs.mkShell {
buildInputs = [
codex-cli-nix.packages.${system}.default
];
};
};
}