[Nix] Attempts to allow unfree packages
This commit is contained in:
@@ -2,7 +2,9 @@
|
||||
description = "System Configuration";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
||||
nixpkgs = {
|
||||
url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
||||
};
|
||||
home-manager = {
|
||||
url = "github:nix-community/home-manager/master";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
@@ -25,7 +27,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, ... }@inputs: {
|
||||
outputs = { self, nixpkgs, ... }@inputs:
|
||||
nixosConfigurations = {
|
||||
drew-desktop = (import ./system/hosts/drew-desktop) {
|
||||
inherit inputs;
|
||||
|
||||
@@ -7,4 +7,9 @@
|
||||
|
||||
# Enable flakes and nix-commnands.
|
||||
nix.settings.experimental-features = ["flakes" "nix-command"];
|
||||
|
||||
# Allow unfree code
|
||||
nixpkgs.config = {
|
||||
allowUnfree = true;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,6 +1,13 @@
|
||||
{ self, nixpkgs, inputs, ... }:
|
||||
nixpkgs.lib.nixosSystem {
|
||||
let
|
||||
system = "x86_64-linux";
|
||||
# TODO: Fix this so it doesn't warn about wanting readOnlyPkgs
|
||||
pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
config.allowUnfree = true;
|
||||
};
|
||||
in nixpkgs.lib.nixosSystem {
|
||||
inherit system;
|
||||
modules = [
|
||||
./configuration.nix
|
||||
./hardware-configuration.nix
|
||||
@@ -13,8 +20,14 @@ nixpkgs.lib.nixosSystem {
|
||||
];
|
||||
};
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.extraSpecialArgs = { inherit inputs; };
|
||||
home-manager.extraSpecialArgs = {
|
||||
inherit inputs;
|
||||
inherit pkgs;
|
||||
};
|
||||
}
|
||||
];
|
||||
specialArgs = { inherit inputs; };
|
||||
specialArgs = {
|
||||
inherit inputs;
|
||||
inherit pkgs;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -10,8 +10,6 @@
|
||||
home.username = "drew";
|
||||
home.homeDirectory = "/Users/drew";
|
||||
|
||||
nix.settings.experimental-features = ["flakes" "nix-command"];
|
||||
|
||||
home.packages = with pkgs; [
|
||||
nodejs_22
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user