1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-29 19:17:45 +00:00

Packages: Add go, fix formatting, make packages.nix and fonts.nix take attrsets as args

This commit is contained in:
RGBCube 2023-05-06 15:11:16 +03:00
parent 9a0e849632
commit 469c42c165
5 changed files with 24 additions and 20 deletions

View file

@ -13,7 +13,7 @@
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
home-manager = {
homeManager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
@ -21,20 +21,20 @@
outputs = {
nixpkgs,
home-manager,
homeManager,
...
}:
let
importConfiguration = directory:
let
hostPlatform = import (directory + "/platform.nix");
# The folder name is the host name of the machine.
hostName = builtins.baseNameOf directory;
userName = import (directory + "/username.nix");
in
let
hostPlatform = import (directory + "/platform.nix");
# The folder name is the host name of the machine.
hostName = builtins.baseNameOf directory;
userName = import (directory + "/username.nix");
in
{
{
nixosConfigurations.${hostName} = nixpkgs.lib.nixosSystem {
specialArgs = {
lib = nixpkgs.lib;
@ -52,7 +52,7 @@
modules = [
directory
home-manager.nixosModules.home-manager
homeManager.nixosModules.home-manager
# Extra configuration derived from the metadata.
{