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:
parent
541767ff37
commit
4644c20b2f
4 changed files with 9 additions and 13 deletions
12
flake.nix
12
flake.nix
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue