feat: Added cargo and rustc to default commands

This commit is contained in:
Nickiel12 2023-01-28 14:15:45 -08:00
parent 1adc61588a
commit cbce86bee5
2 changed files with 9 additions and 4 deletions

View file

@ -8,16 +8,17 @@
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
rust-overlay.url = "github:oxalica/rust-overlay";
kmonad.url = "github:kmonad/kmonad?dir=nix"; kmonad.url = "github:kmonad/kmonad?dir=nix";
}; };
outputs = inputs@{ self, nixpkgs, home-manager, kmonad }: outputs = inputs@{ self, nixpkgs, home-manager, kmonad, rust-overlay }:
let let
user = "nixolas"; user = "nixolas";
in { in {
nixosConfigurations = import ./hosts { nixosConfigurations = import ./hosts {
inherit (nixpkgs) lib; inherit (nixpkgs) lib;
inherit inputs nixpkgs home-manager user kmonad; inherit inputs nixpkgs home-manager user kmonad rust-overlay;
}; };
}; };
} }

View file

@ -1,4 +1,4 @@
{ lib, inputs, nixpkgs, home-manager, user, kmonad, ... }: { lib, inputs, nixpkgs, home-manager, user, kmonad, rust-overlay, ... }:
let let
system = "x86_64-linux"; system = "x86_64-linux";
@ -19,6 +19,10 @@ in {
{ {
networking.hostName = "NicksNixLaptop"; networking.hostName = "NicksNixLaptop";
} }
({ pkgs, ... }: {
nixpkgs.overlays = [ rust-overlay.overlays.default ];
environment.systemPackages = [ pkgs.rust-bin.stable.latest.default ];
})
kmonad.nixosModules.default kmonad.nixosModules.default
home-manager.nixosModules.home-manager { home-manager.nixosModules.home-manager {
home-manager = { home-manager = {