mirror of
https://github.com/youwen5/nixos.git
synced 2024-11-28 11:43:51 -08:00
Compare commits
5 commits
efbcaad706
...
ce8d4815f7
Author | SHA1 | Date | |
---|---|---|---|
ce8d4815f7 | |||
968cddce52 | |||
9bd724612e | |||
8edcef708b | |||
e2518fdd9c |
3 changed files with 66 additions and 18 deletions
|
@ -15,18 +15,49 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
# Bootloader.
|
# Bootloader.
|
||||||
boot.loader = {
|
|
||||||
|
boot = {
|
||||||
|
plymouth = {
|
||||||
|
enable = true;
|
||||||
|
# theme = "rings";
|
||||||
|
# themePackages = with pkgs; [
|
||||||
|
# # By default we would install all themes
|
||||||
|
# (adi1090x-plymouth-themes.override {
|
||||||
|
# selected_themes = [ "rings" ];
|
||||||
|
# })
|
||||||
|
# ];
|
||||||
|
font = "${config.stylix.fonts.monospace.package}/share/fonts/truetype/NerdFonts/CaskaydiaCoveNerdFontMono-Regular.ttf";
|
||||||
|
};
|
||||||
|
|
||||||
|
# Enable "Silent Boot"
|
||||||
|
consoleLogLevel = 3;
|
||||||
|
initrd.verbose = false;
|
||||||
|
kernelParams = [
|
||||||
|
"quiet"
|
||||||
|
"splash"
|
||||||
|
"boot.shell_on_fail"
|
||||||
|
"rd.systemd.show_status=false"
|
||||||
|
"rd.udev.log_level=3"
|
||||||
|
"udev.log_priority=3"
|
||||||
|
];
|
||||||
|
# Hide the OS choice for bootloaders.
|
||||||
|
# It's still possible to open the bootloader list by pressing any key
|
||||||
|
# It will just not appear on screen unless a key is pressed
|
||||||
|
loader = {
|
||||||
efi.canTouchEfiVariables = true;
|
efi.canTouchEfiVariables = true;
|
||||||
timeout = 15;
|
# timeout = 15;
|
||||||
# Lanzaboote currently replaces the systemd-boot module.
|
# Lanzaboote currently replaces the systemd-boot module.
|
||||||
# This setting is usually set to true in configuration.nix
|
# This setting is usually set to true in configuration.nix
|
||||||
# generated at installation time. So we force it to false
|
# generated at installation time. So we force it to false
|
||||||
# for now.
|
# for now.
|
||||||
|
# timeout = 0;
|
||||||
systemd-boot = {
|
systemd-boot = {
|
||||||
enable = true;
|
enable = true;
|
||||||
consoleMode = "auto";
|
consoleMode = "auto";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
initrd.systemd.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
# boot.lanzaboote = {
|
# boot.lanzaboote = {
|
||||||
# enable = false;
|
# enable = false;
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
{
|
{
|
||||||
inputs,
|
inputs,
|
||||||
pkgs,
|
pkgs,
|
||||||
|
config,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
|
@ -24,8 +25,29 @@
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
boot.loader.systemd-boot.enable = true;
|
boot = {
|
||||||
boot.loader.efi.canTouchEfiVariables = false;
|
loader.systemd-boot.enable = true;
|
||||||
|
loader.efi.canTouchEfiVariables = false;
|
||||||
|
plymouth = {
|
||||||
|
enable = true;
|
||||||
|
font = "${config.stylix.fonts.monospace.package}/share/fonts/truetype/NerdFonts/CaskaydiaCoveNerdFontMono-Regular.ttf";
|
||||||
|
};
|
||||||
|
consoleLogLevel = 3;
|
||||||
|
initrd.verbose = false;
|
||||||
|
kernelParams = [
|
||||||
|
"quiet"
|
||||||
|
"splash"
|
||||||
|
"boot.shell_on_fail"
|
||||||
|
"rd.systemd.show_status=false"
|
||||||
|
"rd.udev.log_level=3"
|
||||||
|
"udev.log_priority=3"
|
||||||
|
"apple_dcp.show_notch=1"
|
||||||
|
];
|
||||||
|
extraModprobeConfig = ''
|
||||||
|
options hid_apple iso_layout=0
|
||||||
|
'';
|
||||||
|
initrd.systemd.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
hardware.asahi = {
|
hardware.asahi = {
|
||||||
peripheralFirmwareDirectory = "${inputs.apple-firmware}/firmware";
|
peripheralFirmwareDirectory = "${inputs.apple-firmware}/firmware";
|
||||||
|
@ -33,12 +55,6 @@
|
||||||
experimentalGPUInstallMode = "overlay";
|
experimentalGPUInstallMode = "overlay";
|
||||||
};
|
};
|
||||||
|
|
||||||
boot.extraModprobeConfig = ''
|
|
||||||
options hid_apple iso_layout=0
|
|
||||||
'';
|
|
||||||
|
|
||||||
boot.kernelParams = [ "apple_dcp.show_notch=1" ];
|
|
||||||
|
|
||||||
networking.hostName = "callisto"; # Define your hostname.
|
networking.hostName = "callisto"; # Define your hostname.
|
||||||
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
||||||
|
|
||||||
|
|
|
@ -75,6 +75,7 @@
|
||||||
background: transparent;
|
background: transparent;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin: 0px;
|
margin: 0px;
|
||||||
|
opacity: 0.75;
|
||||||
}
|
}
|
||||||
.notification-content {
|
.notification-content {
|
||||||
background: #${config.lib.stylix.colors.base00};
|
background: #${config.lib.stylix.colors.base00};
|
||||||
|
@ -185,7 +186,7 @@
|
||||||
background: #${config.lib.stylix.colors.base00};
|
background: #${config.lib.stylix.colors.base00};
|
||||||
border: 2px solid #${config.lib.stylix.colors.base0C};
|
border: 2px solid #${config.lib.stylix.colors.base0C};
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
opacity: 0.75;
|
opacity: 0.85;
|
||||||
}
|
}
|
||||||
.control-center-list {
|
.control-center-list {
|
||||||
background: transparent
|
background: transparent
|
||||||
|
|
Loading…
Reference in a new issue