mirror of
https://github.com/Nickiel12/nicks-nix-config.git
synced 2024-11-22 12:49:32 -08:00
feat: Added cargo and rustc to default commands
This commit is contained in:
parent
1adc61588a
commit
cbce86bee5
2 changed files with 9 additions and 4 deletions
|
@ -8,16 +8,17 @@
|
|||
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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue