mirror of
https://github.com/RGBCube/ncc
synced 2025-07-29 19:17:45 +00:00
Rename packages to systemPackages and add homePackages for better handling of packages
This commit is contained in:
parent
397570c99d
commit
6f0bf969a8
6 changed files with 27 additions and 21 deletions
28
flake.nix
28
flake.nix
|
@ -51,25 +51,31 @@
|
|||
];
|
||||
};
|
||||
|
||||
# Helper functions for readability & DRY.
|
||||
# SYSTEM
|
||||
systemConfiguration = attributes: attributes;
|
||||
|
||||
homeConfiguration = userName: attributes: {
|
||||
home-manager.users.${userName} = attributes;
|
||||
};
|
||||
|
||||
imports = importPaths: {
|
||||
imports = importPaths;
|
||||
};
|
||||
|
||||
packages = packages: {
|
||||
systemPackages = packages: systemConfiguration {
|
||||
environment.systemPackages = packages;
|
||||
};
|
||||
|
||||
fonts = fonts: {
|
||||
systemFonts = fonts: systemConfiguration {
|
||||
fonts.fonts = fonts;
|
||||
};
|
||||
|
||||
# HOME
|
||||
homeConfiguration = userName: attributes: systemConfiguration {
|
||||
home-manager.users.${userName} = attributes;
|
||||
};
|
||||
|
||||
homePackages = userName: packages: homeConfiguration userName {
|
||||
home.packages = packages;
|
||||
};
|
||||
|
||||
# GENERAL
|
||||
imports = importPaths: {
|
||||
imports = importPaths;
|
||||
};
|
||||
|
||||
enabled = attributes: attributes // {
|
||||
enable = true;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue