fix: asahi notch
This commit is contained in:
4
flake.lock
generated
4
flake.lock
generated
@@ -10,13 +10,13 @@
|
||||
"locked": {
|
||||
"lastModified": 1768564560,
|
||||
"narHash": "sha256-YyIzhZoFVE4C5P9e0wZGjx4P9IT/OTUMFF3r6iKd3UY=",
|
||||
"owner": "tpwrules",
|
||||
"owner": "nix-community",
|
||||
"repo": "nixos-apple-silicon",
|
||||
"rev": "83a2bb509972148aa6d3f75c65103b6bfb7898af",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "tpwrules",
|
||||
"owner": "nix-community",
|
||||
"repo": "nixos-apple-silicon",
|
||||
"type": "github"
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
apple-silicon = {
|
||||
url = "github:tpwrules/nixos-apple-silicon";
|
||||
url = "github:nix-community/nixos-apple-silicon";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
nixos-generators = {
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
{ config, lib, namespace, ... }:
|
||||
{ config
|
||||
, lib
|
||||
, namespace
|
||||
, ...
|
||||
}:
|
||||
let
|
||||
inherit (lib) mkIf mkDefault;
|
||||
inherit (lib.${namespace}) mkBoolOpt;
|
||||
@@ -27,7 +31,8 @@ in
|
||||
services.xe-guest-utilities.enable = mkIf cfg.xenGuest true;
|
||||
|
||||
boot = {
|
||||
kernelParams = lib.optionals cfg.silentBoot [
|
||||
kernelParams =
|
||||
lib.optionals cfg.silentBoot [
|
||||
"quiet"
|
||||
"loglevel=3"
|
||||
"udev.log_level=3"
|
||||
@@ -35,8 +40,9 @@ in
|
||||
"systemd.show_status=auto"
|
||||
"rd.systemd.show_status=auto"
|
||||
"vt.global_cursor_default=0"
|
||||
] ++ lib.optionals cfg.showNotch [
|
||||
"apple_dcp.show_notch=1"
|
||||
]
|
||||
++ lib.optionals cfg.showNotch [
|
||||
"appledrm.show_notch=1"
|
||||
];
|
||||
|
||||
loader = {
|
||||
@@ -60,10 +66,17 @@ in
|
||||
};
|
||||
|
||||
initrd = mkIf cfg.xenGuest {
|
||||
kernelModules = [ "xen_netfront" "xen_blkfront" ];
|
||||
kernelModules = [
|
||||
"xen_netfront"
|
||||
"xen_blkfront"
|
||||
];
|
||||
supportedFilesystems = [ "xenfs" ];
|
||||
};
|
||||
kernelModules = mkIf cfg.xenGuest [ "xen_netfront" "xen_blkfront" "xenfs" ];
|
||||
kernelModules = mkIf cfg.xenGuest [
|
||||
"xen_netfront"
|
||||
"xen_blkfront"
|
||||
"xenfs"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user