nixos-config/hosts/graphical-installer/default.nix
2023-06-23 15:44:19 +08:00

54 lines
1.0 KiB
Nix

{ lib, config, pkgs, inputs, ... }:
{
imports = [
(lib.getUser "nixos" "nixos")
];
isoImage = {
isoBaseName = config.networking.hostName;
contents = [{
source = inputs.self;
target = "/bootstrap/";
}];
storeContents = [
inputs.self.devShells.${config.nixpkgs.system}.default
] ++ builtins.attrValues inputs;
};
networking.wireless.enable = false;
profiles = {
desktop = {
enable = true;
fonts.enable = true;
};
dev = {
enable = true;
shell.enable = true;
neovim.enable = true;
};
};
workflows.workflows.a-happy-gnome.enable = true;
services.xserver.displayManager = {
gdm = {
enable = true;
autoSuspend = false;
};
autoLogin = {
enable = true;
user = "nixos";
};
};
boot = {
kernelPackages = pkgs.linuxPackages_latest;
loader.systemd-boot.enable = true;
supportedFilesystems = lib.mkForce [ "btrfs" "reiserfs" "vfat" "f2fs" "xfs" "ntfs" "cifs" ];
};
users.users.root.password = "";
}