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

@ -7,17 +7,18 @@
url = github:nix-community/home-manager;
inputs.nixpkgs.follows = "nixpkgs";
};
rust-overlay.url = "github:oxalica/rust-overlay";
kmonad.url = "github:kmonad/kmonad?dir=nix";
};
outputs = inputs@{ self, nixpkgs, home-manager, kmonad }:
outputs = inputs@{ self, nixpkgs, home-manager, kmonad, rust-overlay }:
let
user = "nixolas";
in {
nixosConfigurations = import ./hosts {
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
system = "x86_64-linux";
@ -19,6 +19,10 @@ in {
{
networking.hostName = "NicksNixLaptop";
}
({ pkgs, ... }: {
nixpkgs.overlays = [ rust-overlay.overlays.default ];
environment.systemPackages = [ pkgs.rust-bin.stable.latest.default ];
})
kmonad.nixosModules.default
home-manager.nixosModules.home-manager {
home-manager = {