Overlay to get access to unstable branch, added Ghostty as dep
This commit is contained in:
13
flake.nix
13
flake.nix
@ -16,6 +16,7 @@
|
||||
|
||||
outputs =
|
||||
inputs@{
|
||||
self, # Get a ref to outputs
|
||||
nixpkgs,
|
||||
home-manager,
|
||||
stylix,
|
||||
@ -23,12 +24,15 @@
|
||||
}:
|
||||
let
|
||||
system = "x86_64-linux";
|
||||
inherit (self) outputs;
|
||||
in
|
||||
{
|
||||
# Adds the nix fmt command to format nix files
|
||||
formatter."${system}" = nixpkgs.legacyPackages."${system}".nixfmt-rfc-style;
|
||||
|
||||
nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
|
||||
system = system;
|
||||
specialArgs = { inherit outputs; }; # Pass args to modules
|
||||
modules = [
|
||||
./configuration.nix
|
||||
home-manager.nixosModules.home-manager
|
||||
@ -46,5 +50,14 @@
|
||||
stylix.nixosModules.stylix
|
||||
];
|
||||
};
|
||||
|
||||
overlays = {
|
||||
unstable-packages = final: _prev: {
|
||||
unstable = import inputs.nixpkgs {
|
||||
system = final.system;
|
||||
config.allowUnfree = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user