mirror of
https://github.com/RGBCube/ncc
synced 2025-07-30 19:47:47 +00:00
Apply fixes
This commit is contained in:
parent
7e281a3470
commit
9920928a74
3 changed files with 13 additions and 12 deletions
14
flake.nix
14
flake.nix
|
@ -37,7 +37,7 @@
|
||||||
|
|
||||||
importConfiguration = configurationDirectory: let
|
importConfiguration = configurationDirectory: let
|
||||||
hostName = builtins.baseNameOf configurationDirectory;
|
hostName = builtins.baseNameOf configurationDirectory;
|
||||||
hostPlatform = import configurationDirectory + "/platform.nix";
|
hostPlatform = import (configurationDirectory + "/platform.nix");
|
||||||
in {
|
in {
|
||||||
nixosConfigurations.${hostName} = nixosSystem {
|
nixosConfigurations.${hostName} = nixosSystem {
|
||||||
lib = nixpkgs.lib;
|
lib = nixpkgs.lib;
|
||||||
|
@ -54,24 +54,24 @@
|
||||||
# Helper functions for readability & DRY.
|
# Helper functions for readability & DRY.
|
||||||
systemConfiguration = attributes: attributes;
|
systemConfiguration = attributes: attributes;
|
||||||
|
|
||||||
homeConfiguration = userName: attributes: systemConfiguration {
|
homeConfiguration = userName: attributes: {
|
||||||
home-manager.users.${userName} = attributes;
|
home-manager.users.${userName} = attributes;
|
||||||
};
|
};
|
||||||
|
|
||||||
imports = importPaths: systemConfiguration {
|
imports = importPaths: {
|
||||||
imports = importPaths;
|
imports = importPaths;
|
||||||
};
|
};
|
||||||
|
|
||||||
packages = packages: systemConfiguration {
|
packages = packages: {
|
||||||
environment.systemPackages = packages;
|
environment.systemPackages = packages;
|
||||||
};
|
};
|
||||||
|
|
||||||
fonts = fonts: systemConfiguration {
|
fonts = fonts: {
|
||||||
fonts.fonts = packages;
|
fonts.fonts = fonts;
|
||||||
};
|
};
|
||||||
|
|
||||||
enabled = attributes: attributes // {
|
enabled = attributes: attributes // {
|
||||||
enabled = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
normalUser = attributes: attributes // {
|
normalUser = attributes: attributes // {
|
||||||
|
|
1
machines/asus/platform.nix
Normal file
1
machines/asus/platform.nix
Normal file
|
@ -0,0 +1 @@
|
||||||
|
"x86_64-linux"
|
10
rebuild.sh
10
rebuild.sh
|
@ -3,13 +3,13 @@
|
||||||
if [[ $1 == "-h" || $1 == "--help" ]]; then
|
if [[ $1 == "-h" || $1 == "--help" ]]; then
|
||||||
echo "Usage: $0 [-h | --help] [-c | --clean-garbage] [machine]"
|
echo "Usage: $0 [-h | --help] [-c | --clean-garbage] [machine]"
|
||||||
exit
|
exit
|
||||||
fi<
|
fi
|
||||||
|
|
||||||
if [[ -n $1 ]]; then
|
if [[ $1 != "" ]]; then
|
||||||
if [[ $1 != "-c" && $1 != "--clean-garbage" ]]; then
|
if [[ $1 != "-c" && $1 != "--clean-garbage" ]]; then
|
||||||
machine = $1
|
machine=$1
|
||||||
elif [[ -n $2 ]]; then
|
elif [[ $2 != "" ]]; then
|
||||||
machine = $1
|
machine=$2
|
||||||
else
|
else
|
||||||
read -p "What machine would you want to build? [$(ls --format=commas machines)]: " machine
|
read -p "What machine would you want to build? [$(ls --format=commas machines)]: " machine
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue