nixos-config/hosts/bootstrap/default.nix

29 lines
629 B
Nix
Raw Normal View History

2022-02-04 15:59:57 +00:00
{ self, lib, config, pkgs, inputs, modulesPath, ... }:
{
imports = [
(lib.getUser "nixos" "nixos")
2022-02-04 15:59:57 +00:00
];
isoImage = {
2022-11-25 06:01:25 +00:00
isoBaseName = "bootstrap";
2022-02-04 15:59:57 +00:00
contents = [{
source = self;
target = "/bootstrap/";
}];
storeContents = [
2022-07-08 01:46:56 +00:00
self.devShells.${config.nixpkgs.system}.default
2022-02-04 15:59:57 +00:00
] ++ builtins.attrValues inputs;
};
2022-11-29 02:38:33 +00:00
boot = {
kernelPackages = pkgs.linuxPackages_latest;
loader.systemd-boot.enable = true;
supportedFilesystems = lib.mkForce [ "btrfs" "reiserfs" "vfat" "f2fs" "xfs" "ntfs" "cifs" ];
};
2022-02-04 15:59:57 +00:00
networking.hostName = "bootstrap";
users.users.root.password = "";
2022-02-04 15:59:57 +00:00
}