WIP - overlay in flake
This commit is contained in:
parent
28d295b574
commit
8249e20585
3 changed files with 19 additions and 29 deletions
|
@ -1,10 +1,5 @@
|
|||
{config, pkgs, lib, ...}:
|
||||
{
|
||||
nixpkgs.config = {
|
||||
packageOverrides = pkgs: {
|
||||
inherit mergedPkgs;
|
||||
};
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
ddev
|
||||
|
|
|
@ -1,13 +0,0 @@
|
|||
# overlays.nix
|
||||
|
||||
{ self, nixpkgs, myNixpkgs }:
|
||||
|
||||
let
|
||||
myOverlay = final: prev: {
|
||||
# Replace 'examplePackage' with the package you want to override
|
||||
jetbrains.phpstorm = myNixpkgs.jetbrains.phpstorm;
|
||||
};
|
||||
in
|
||||
{
|
||||
overlays = [ myOverlay ];
|
||||
}
|
30
flake.nix
30
flake.nix
|
@ -1,20 +1,28 @@
|
|||
# /etc/nixos/flake.nix
|
||||
{
|
||||
inputs = {
|
||||
# NOTE: Replace "nixos-23.11" with that which is in system.stateVersion of
|
||||
# configuration.nix. You can also use latter versions if you wish to
|
||||
# upgrade.
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
# nixos-needsreboot.url = "https://flakehub.com/f/thefossguy/nixos-needsreboot/*.tar.gz";
|
||||
};
|
||||
outputs = inputs@{ self, nixpkgs, ... }: {
|
||||
# NOTE: 'nixos' is the default hostname set by the installer
|
||||
nixosConfigurations.valhalla = nixpkgs.lib.nixosSystem {
|
||||
# NOTE: Change this to aarch64-linux if you are on ARM
|
||||
system = "x86_64-linux";
|
||||
modules = [ ./hosts/desktop/valhalla/configuration.nix ];
|
||||
outputs = { nixpkgs, ... }:
|
||||
let
|
||||
pkgs = import nixpkgs { system = "x86_64-linux";
|
||||
overlays = [
|
||||
( final: prev: {
|
||||
jetbrains.phpstorm = prev.jetbrains.phpstorm.overrideAttrs (old: {
|
||||
src = prev.fetchFromGithub {
|
||||
owner = "freelock";
|
||||
repo = "nixpkgs";
|
||||
rev = "b324cfea863d9191518b96774e1317a6d933075f";
|
||||
hash ="";
|
||||
};
|
||||
});
|
||||
} )
|
||||
];
|
||||
};
|
||||
in {
|
||||
nixosConfigurations.valhalla = pkgs.nixos {
|
||||
imports = [ ./hosts/desktop/valhalla/configuration.nix ];
|
||||
};
|
||||
# environment.systemPackages = [nixos-needsreboot.packages.${nixpkgs.system}.default];
|
||||
nixosConfigurations.katmai = nixpkgs.lib.nixosSystem {
|
||||
# NOTE: Change this to aarch64-linux if you are on ARM
|
||||
system = "x86_64-linux";
|
||||
|
|
Loading…
Reference in a new issue