diff --git a/flake.nix b/flake.nix index 6b9b99d..72dc9a4 100644 --- a/flake.nix +++ b/flake.nix @@ -24,19 +24,7 @@ nix-flatpak, #gnucashpkgs, ... - }: { - - myFlake = home-manager.lib. EachUser.extend (user: { - home.packages = [ - (nixpkgs.overlays = [ - (self: super: { - gnucash = super.gnucash.override { - version = "5.4"; - }; - }) - ]) - ]; - }); + }: { nixosConfigurations = { diff --git a/hosts/local/weda/default.nix b/hosts/local/weda/default.nix index b10743c..8ccb882 100644 --- a/hosts/local/weda/default.nix +++ b/hosts/local/weda/default.nix @@ -1,5 +1,22 @@ { config, pkgs, ... }: +let + # Fetch the specific version of GnuCash + gnucashVersion = "5.4"; + gnucashPackage = pkgs.nixpkgs-unstable.gnucash.overrideAttrs (oldAttrs: { + version = gnucashVersion; + }); +in +{ + # Other configuration settings... + + # Install GnuCash + programs.gnucash = { + enable = true; + package = gnucashPackage; + }; +} + { imports = [ ];