Compare commits

..

24 Commits

Author SHA1 Message Date
773b4309e3 remove module args again 2025-01-01 20:05:19 -05:00
2dc1cf664e try try try again 2025-01-01 20:04:34 -05:00
f6accc8faf adjust import inherits 2025-01-01 20:00:27 -05:00
4ee3d68148 remove args again 2025-01-01 19:52:17 -05:00
88bc80b663 more attempts at custom package 2025-01-01 19:51:36 -05:00
d2e13171a1 move options out of config 2025-01-01 19:39:15 -05:00
235ac07b77 move imports out of config 2025-01-01 19:38:29 -05:00
e533abc120 comment out module args 2025-01-01 19:36:56 -05:00
eed3a30d33 remove redundanct import 2025-01-01 19:35:17 -05:00
77a5b731b5 move module args 2025-01-01 19:34:34 -05:00
4ca8a524fe move options 2025-01-01 19:34:02 -05:00
8e41455ed4 remove _ again 2025-01-01 19:33:03 -05:00
832f3f348a try again 2025-01-01 19:32:33 -05:00
f1d705392e remove _ 2025-01-01 19:31:10 -05:00
6c9ba6ce29 adjust mod args again 2025-01-01 19:30:34 -05:00
06a2630a1c comment out moduleArgs 2025-01-01 19:13:50 -05:00
d287793cf0 more adjustments 2025-01-01 19:09:30 -05:00
b4eac9aadd adjust modulargs position again 2025-01-01 18:59:10 -05:00
fa0ef879d6 adjust custompkg definition 2025-01-01 18:56:03 -05:00
cf7389fc48 move option outside config 2025-01-01 18:48:08 -05:00
efeca3eca6 adjust moduleArgs again 2025-01-01 18:47:08 -05:00
bc9206355f adjust config scope 2025-01-01 18:45:25 -05:00
1f20d9d1d6 adjust moduleArgs again 2025-01-01 18:43:17 -05:00
96540b0a26 adjust moduleArgs 2025-01-01 18:39:47 -05:00
2 changed files with 19 additions and 11 deletions

View File

@@ -1,19 +1,27 @@
{ config, pkgs ? import <nixpkgs>, lib, ... }: { config, pkgs ? import <nixpkgs>, lib, ... }:
#let
# installFiles = pkgs.runCommand "installFiles" {} ''
# mkdir -p $out
# cp -rv ${./initrd-include}/* $out/
# chmod +x -R $out/bin/
# '';
#in
{ {
imports = [
../quickly.nix
#(../installer/installer.nix { inherit customPkgs; inherit config; inherit pkgs; inherit lib; })
../installer/installer.nix
];
# _module.args = {
# installFiles = config.customPkgs.installFiles;
# };
options.customPkgs.installFiles = lib.mkOption { options.customPkgs.installFiles = lib.mkOption {
type = lib.types.package; type = lib.types.package;
}; };
_module.args = {
installFiles = config.customPkgs.installFiles;
};
imports = [
../quickly.nix
## installer.nix is a system service to run a script on boot
../installer/installer.nix
];
##uncomment to pass installFiles to modules
config = { config = {
customPkgs.installFiles = pkgs.runCommand "installFiles" {} '' customPkgs.installFiles = pkgs.runCommand "installFiles" {} ''
mkdir -p $out mkdir -p $out
cp -rv ${./initrd-include}/* $out/ cp -rv ${./initrd-include}/* $out/

View File

@@ -1,4 +1,4 @@
{ pkgs, config, lib, installFiles, ... }: { pkgs, config, lib, ... }:
{ {
config = { config = {
systemd.services.custom-install = { systemd.services.custom-install = {
@@ -17,7 +17,7 @@
script = '' script = ''
mkdir /home/nixos/installer mkdir /home/nixos/installer
cp -R ${config.myPackages.installFiles}/ /home/nixos/installer cp -R ${config.customPkgs.installFiles}/ /home/nixos/installer
ln -s /home/nixos/installer/bin/installer.sh /home/nixos/installer.sh ln -s /home/nixos/installer/bin/installer.sh /home/nixos/installer.sh
echo "Installer files are available in /home/nixos/installer" echo "Installer files are available in /home/nixos/installer"
echo "The installer.sh script is available in directly in /home/nixos/installer.sh" echo "The installer.sh script is available in directly in /home/nixos/installer.sh"