mirror of
https://github.com/RGBCube/ncc
synced 2025-07-29 19:17:45 +00:00
Packages: Add rust, attempt 2
This commit is contained in:
parent
541767ff37
commit
4644c20b2f
4 changed files with 9 additions and 13 deletions
12
flake.nix
12
flake.nix
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ pkgs, ... }: with pkgs; []
|
pkgs: with pkgs; []
|
||||||
|
|
||||||
++ [ (nerdfonts.override { fonts = [ # NERD FONTS
|
++ [ (nerdfonts.override { fonts = [ # NERD FONTS
|
||||||
"JetBrainsMono"
|
"JetBrainsMono"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ pkgs, fenix, ... }: with pkgs; []
|
pkgs: with pkgs; []
|
||||||
|
|
||||||
++ [ # APPLICATIONS
|
++ [ # APPLICATIONS
|
||||||
firefox
|
firefox
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue