This commit is contained in:
caandt 2024-10-17 22:01:00 -05:00
parent 0ab3bf5dd0
commit aad8bcdfd5
2 changed files with 10 additions and 20 deletions

View file

@ -14,33 +14,23 @@
let let
system = "x86_64-linux"; system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system}; pkgs = nixpkgs.legacyPackages.${system};
overlays = { pkgs-stable = nixpkgs-stable.legacyPackages.${system};
nixpkgs.overlays = [
(final: prev: {
stable = import nixpkgs-stable {
system = prev.system;
};
})
];
};
in { in {
nixosConfigurations.nixos = nixpkgs.lib.nixosSystem { nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
inherit system; inherit system;
modules = [ specialArgs = {
system/configuration.nix inherit pkgs-stable;
overlays };
]; modules = [ system/configuration.nix ];
}; };
homeConfigurations.ahnwuoa = home-manager.lib.homeManagerConfiguration { homeConfigurations.ahnwuoa = home-manager.lib.homeManagerConfiguration {
inherit pkgs; inherit pkgs;
extraSpecialArgs = rec { extraSpecialArgs = rec {
inherit pkgs-stable;
username = "ahnwuoa"; username = "ahnwuoa";
homeDirectory = "/home/${username}"; homeDirectory = "/home/${username}";
}; };
modules = [ modules = [ user/home.nix ];
user/home.nix
overlays
];
}; };
}; };
} }

View file

@ -1,4 +1,4 @@
{ config, pkgs, username, homeDirectory, ... }: { config, pkgs, pkgs-stable, username, homeDirectory, ... }:
{ {
imports = [ imports = [
@ -12,7 +12,7 @@
home.packages = with pkgs; [ home.packages = with pkgs; [
(pkgs.symlinkJoin { (pkgs.symlinkJoin {
name = "firefox"; name = "firefox";
paths = [ pkgs.stable.firefox ]; paths = [ pkgs-stable.firefox ];
buildInputs = [ pkgs.makeWrapper ]; buildInputs = [ pkgs.makeWrapper ];
postBuild = '' postBuild = ''
wrapProgram $out/bin/firefox \ wrapProgram $out/bin/firefox \
@ -30,7 +30,7 @@
picom picom
obs-studio obs-studio
screenkey screenkey
pkgs.stable.safeeyes pkgs-stable.safeeyes
libsForQt5.kcalc libsForQt5.kcalc
libsForQt5.kolourpaint libsForQt5.kolourpaint
libsForQt5.filelight libsForQt5.filelight