Refactoring
This commit is contained in:
@@ -1,5 +1,14 @@
|
||||
{ pkgs, hostname, ... }:
|
||||
|
||||
let
|
||||
# Found by running sudo btrfs inspect-internal map-swapfile -r /.swapvol/swapfile
|
||||
hibernateBootOffsets = {
|
||||
stationette = "533760";
|
||||
station = "533760";
|
||||
};
|
||||
|
||||
resumeOffset = hibernateBootOffsets."${hostname}" or "0";
|
||||
in
|
||||
{
|
||||
boot = {
|
||||
loader = {
|
||||
@@ -26,22 +35,22 @@
|
||||
'';
|
||||
};
|
||||
efi.canTouchEfiVariables = true;
|
||||
# timeout = 0;
|
||||
# timeout = 0; # Skips the menu and uses default entry
|
||||
};
|
||||
# Creates a cool animation for booting
|
||||
plymouth = {
|
||||
enable = true;
|
||||
theme = "black_hud";
|
||||
themePackages = with pkgs; [
|
||||
(adi1090x-plymouth-themes.override {
|
||||
selected_themes = [ "black_hud" ];
|
||||
})
|
||||
selected_themes = [ "black_hud" ];
|
||||
})
|
||||
];
|
||||
};
|
||||
initrd.verbose = false;
|
||||
|
||||
# Found by running sudo btrfs inspect-internal map-swapfile -r /.swapvol/swapfile
|
||||
kernelParams = [
|
||||
"resume_offset=533760"
|
||||
"resume_offset=${hibernateBootOffset}"
|
||||
"quiet"
|
||||
"udev.log_level=3"
|
||||
"systemd.show_status=auto"
|
||||
|
||||
Reference in New Issue
Block a user