Allow unfree packages

This commit is contained in:
Joshua Yuen 2026-06-20 23:23:35 -04:00
parent f329f8b501
commit f5e578c184
Signed by: josh
GPG Key ID: 530DA0331EFE99F5
4 changed files with 11 additions and 14 deletions

View File

@ -46,6 +46,11 @@
}@inputs: }@inputs:
let let
system = "x86_64-linux"; system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
overlays = [ nix-vscode-extensions.overlays.default ];
};
in in
{ {
nixosConfigurations = { nixosConfigurations = {
@ -63,6 +68,7 @@
inherit username; inherit username;
inherit gpgSigningKey; inherit gpgSigningKey;
}; };
pkgs = pkgs;
modules = [ modules = [
./hosts/${host} ./hosts/${host}
]; ];
@ -80,6 +86,7 @@
inherit profile; inherit profile;
inherit username; inherit username;
}; };
pkgs = pkgs;
modules = [ modules = [
./hosts/${host} ./hosts/${host}
]; ];
@ -96,7 +103,9 @@
inherit host; inherit host;
inherit profile; inherit profile;
inherit username; inherit username;
}; };
pkgs = pkgs;
modules = [ modules = [
(nixpkgs + "/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix") (nixpkgs + "/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix")
{ environment.systemPackages = [ install-system.packages.${system}.default ]; } { environment.systemPackages = [ install-system.packages.${system}.default ]; }
@ -114,7 +123,7 @@
inherit profile; inherit profile;
inherit username; inherit username;
}; };
pkgs = nixpkgs.legacyPackages.${system}; pkgs = pkgs;
modules = [ modules = [
./homes/josh/home.nix ./homes/josh/home.nix
stylix.homeModules.stylix stylix.homeModules.stylix

View File

@ -15,7 +15,7 @@ in
imports = [ inputs.home-manager.nixosModules.home-manager ]; imports = [ inputs.home-manager.nixosModules.home-manager ];
home-manager = { home-manager = {
useUserPackages = true; useUserPackages = true;
useGlobalPkgs = false; useGlobalPkgs = true;
backupFileExtension = "backup"; backupFileExtension = "backup";
extraSpecialArgs = { extraSpecialArgs = {
inherit inherit

View File

@ -8,7 +8,6 @@
./fzf.nix ./fzf.nix
./hyprland ./hyprland
./kitty.nix ./kitty.nix
./overlays.nix
./stylix.nix ./stylix.nix
./vscodium.nix ./vscodium.nix
./walker.nix ./walker.nix

View File

@ -1,11 +0,0 @@
{
inputs,
...
}:
{
nixpkgs = {
overlays = [
inputs.nix-vscode-extensions.overlays.default
];
};
}