1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-29 11:07: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 {
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;

View file

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

View file

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

View file

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