1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-30 11:37:44 +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 { nixosConfigurations.${hostName} = nixpkgs.lib.nixosSystem {
specialArgs = { specialArgs = {
lib = nixpkgs.lib;
pkgs = import nixpkgs { pkgs = import nixpkgs {
system = hostPlatform; system = hostPlatform;
config.allowUnfree = true; config.allowUnfree = true;
overlays = [
fenix.overlays.default
];
}; };
# Helper function for DRY. # Helper function for DRY.
homeManagerConfiguration = attrs: { homeManagerConfiguration = attrs: {
home-manager.users.${userName} = attrs; home-manager.users.${userName} = attrs;
}; };
inherit fenix;
}; };
modules = [ modules = [
@ -64,11 +64,7 @@
{ {
networking.hostName = builtins.baseNameOf directory; networking.hostName = builtins.baseNameOf directory;
nixpkgs.hostPlatform = hostPlatform; nixpkgs.hostPlatform = hostPlatform;
nixpkgs.overlays = [
fenix.overlays.default
];
home-manager.useGlobalPkgs = true; home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true; home-manager.useUserPackages = true;

View file

@ -1,6 +1,6 @@
{ pkgs, fenix, ... } @ args: { pkgs, ... }:
{ {
environment.systemPackages = import ./packages.nix args; environment.systemPackages = import ./packages.nix pkgs;
fonts.fonts = import ./fonts.nix args; fonts.fonts = import ./fonts.nix pkgs;
} }

View file

@ -1,4 +1,4 @@
{ pkgs, ... }: with pkgs; [] pkgs: with pkgs; []
++ [ (nerdfonts.override { fonts = [ # NERD FONTS ++ [ (nerdfonts.override { fonts = [ # NERD FONTS
"JetBrainsMono" "JetBrainsMono"

View file

@ -1,4 +1,4 @@
{ pkgs, fenix, ... }: with pkgs; [] pkgs: with pkgs; []
++ [ # APPLICATIONS ++ [ # APPLICATIONS
firefox firefox