54 lines
1.4 KiB
Nix
54 lines
1.4 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";
|
|
};
|
|
};
|
|
|
|
outputs = { nixpkgs, home-manager, helium-browser, ... }: {
|
|
nixosConfigurations.chexit = nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
specialArgs = {
|
|
helium = helium-browser.packages.x86_64-linux.helium;
|
|
};
|
|
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;
|
|
}
|
|
];
|
|
};
|
|
};
|
|
},
|
|
{
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
codex-cli-nix.url = "github:sadjow/codex-cli-nix";
|
|
};
|
|
|
|
outputs = { self, nixpkgs, codex-cli-nix }:
|
|
let
|
|
system = "x86_64-linux"; # or your system
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
in
|
|
{
|
|
devShells.${system}.default = pkgs.mkShell {
|
|
buildInputs = [
|
|
codex-cli-nix.packages.${system}.default
|
|
];
|
|
};
|
|
};
|
|
}
|