1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-29 19:17:45 +00:00

Packages: Add rust, attempt 2

This commit is contained in:
RGBCube 2023-05-06 15:39:55 +03:00
parent 541767ff37
commit 4644c20b2f
4 changed files with 9 additions and 13 deletions

View file

@ -43,19 +43,19 @@
{
nixosConfigurations.${hostName} = nixpkgs.lib.nixosSystem {
specialArgs = {
lib = nixpkgs.lib;
pkgs = import nixpkgs {
system = hostPlatform;
config.allowUnfree = true;
overlays = [
fenix.overlays.default
];
};
# Helper function for DRY.
homeManagerConfiguration = attrs: {
home-manager.users.${userName} = attrs;
};
inherit fenix;
};
modules = [
@ -64,11 +64,7 @@
{
networking.hostName = builtins.baseNameOf directory;
nixpkgs.hostPlatform = hostPlatform;
nixpkgs.overlays = [
fenix.overlays.default
];
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;