adjust custom package
This commit is contained in:
parent
b77600c855
commit
09817ded71
@ -1,31 +1,25 @@
|
|||||||
{ config, pkgs ? import <nixpkgs>, lib, ... }:
|
{ config, pkgs ? import <nixpkgs>, lib, ... }:
|
||||||
#let
|
|
||||||
# installFiles = pkgs.runCommand "install-files" {
|
|
||||||
# #inherit (pkgs) coreutils;
|
|
||||||
# } ''
|
|
||||||
# mkdir -p $out
|
|
||||||
# cp -rv ${./initrd-include}/* $out/
|
|
||||||
# '';
|
|
||||||
#in
|
|
||||||
## above is the olde installFiles Declaration.
|
|
||||||
{
|
{
|
||||||
options.myPackages.installFiles = lib.mkOption {
|
options.customPkgs.installFiles = lib.mkOption {
|
||||||
type = lib.types.package;
|
type = lib.types.package;
|
||||||
};
|
};
|
||||||
|
_module.args = {
|
||||||
|
installFiles = config.customPkgs.installFiles;
|
||||||
|
};
|
||||||
imports = [
|
imports = [
|
||||||
../quickly.nix
|
../quickly.nix
|
||||||
## installer.nix is a system service to run a script on boot
|
## installer.nix is a system service to run a script on boot
|
||||||
../installer/installer.nix
|
../installer/installer.nix
|
||||||
];
|
];
|
||||||
#_module.args = { inherit installFiles; }; ##uncomment to pass installFiles to modules
|
##uncomment to pass installFiles to modules
|
||||||
config = {
|
config = {
|
||||||
myPackages.installFiles = pkgs.runCommand "install-files" {
|
customPkgs.installFiles = pkgs.runCommand "installFiles" {} ''
|
||||||
#inherit (pkgs) coreutils;
|
|
||||||
} ''
|
|
||||||
mkdir -p $out
|
mkdir -p $out
|
||||||
cp -rv ${./initrd-include}/* $out/
|
cp -rv ${./initrd-include}/* $out/
|
||||||
chmod +x -R $out/bin/
|
chmod +x -R $out/bin/
|
||||||
'';
|
'';
|
||||||
|
|
||||||
services.getty.autologinUser = "nixos";
|
services.getty.autologinUser = "nixos";
|
||||||
security.sudo.wheelNeedsPassword = false;
|
security.sudo.wheelNeedsPassword = false;
|
||||||
users.users.nixos = {
|
users.users.nixos = {
|
||||||
@ -38,8 +32,10 @@
|
|||||||
tree
|
tree
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||||
|
|
||||||
environment.systemPackages = [
|
environment.systemPackages = [
|
||||||
pkgs.vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
|
pkgs.vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
|
||||||
pkgs.wget
|
pkgs.wget
|
||||||
@ -50,9 +46,10 @@
|
|||||||
pkgs.util-linux
|
pkgs.util-linux
|
||||||
pkgs.nettools
|
pkgs.nettools
|
||||||
pkgs.nixos-facter
|
pkgs.nixos-facter
|
||||||
config.myPackages.installFiles
|
config.customPkgs.installFiles
|
||||||
];
|
];
|
||||||
system.autoUpgrade.channel = "https://nixos.org/channels/nixos-24.11/";
|
|
||||||
|
system.autoUpgrade.channel = "https://nixos.org/channels/nixos-24.11/";
|
||||||
system.stateVersion = "24.11";
|
system.stateVersion = "24.11";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue
Block a user