tweak: core package set
This commit is contained in:
parent
93f595d57f
commit
739d1d264f
2 changed files with 30 additions and 43 deletions
65
modules/hosts/live-usb/default.nix
Normal file
65
modules/hosts/live-usb/default.nix
Normal file
|
|
@ -0,0 +1,65 @@
|
|||
{ self, inputs, ... }:
|
||||
|
||||
{
|
||||
|
||||
# defines the installer specific configuration
|
||||
flake.nixosConfigurations.usb = inputs.nixpkgs.lib.nixosSystem {
|
||||
|
||||
# modules that comprise the installer specific configuration
|
||||
modules = with self.nixosModules; [
|
||||
|
||||
# shared system modules
|
||||
core
|
||||
#user-options
|
||||
|
||||
# host-specific options
|
||||
installer-configuration
|
||||
|
||||
# extra modules to include on host
|
||||
terminal
|
||||
zfs-support
|
||||
network-proxy
|
||||
|
||||
# users to include on host
|
||||
serenity
|
||||
|
||||
];
|
||||
|
||||
};
|
||||
|
||||
# host module declaration
|
||||
flake.nixosModules.usb-configuration =
|
||||
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
|
||||
# other modules to import
|
||||
imports = [ ];
|
||||
|
||||
# set hostname
|
||||
networking.hostName = "serenityos";
|
||||
|
||||
# bootloader settings
|
||||
boot.loader = {
|
||||
systemd-boot.enable = true;
|
||||
efi.canTouchEfiVariables = true;
|
||||
};
|
||||
|
||||
# supported filesystems at boot
|
||||
boot.supportedFilesystems = [
|
||||
"vfat"
|
||||
"ext4"
|
||||
"ntfs"
|
||||
];
|
||||
|
||||
# specifies x64 uArch
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue