hibernate & waybar & maybe some other things
This commit is contained in:
@@ -36,6 +36,18 @@ fileSystems."mnt/win" = {
|
||||
options = ["rw" "uid=1000"];
|
||||
};
|
||||
|
||||
# hibernation
|
||||
swapDevices = [
|
||||
{
|
||||
device = "/var/lib/swapfile";
|
||||
size = 16 * 1024;
|
||||
}
|
||||
];
|
||||
|
||||
boot.resumeDevice = "/dev/disk/by-uuid/a4bfe07b-a6b5-47d9-80c7-f74b44f84f31";
|
||||
|
||||
powerManagement.enable = true;
|
||||
|
||||
# Flakes
|
||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||
|
||||
@@ -46,7 +58,7 @@ fileSystems."mnt/win" = {
|
||||
# "127.0.0.1,localhost,internal.domain";
|
||||
|
||||
# Enable networking
|
||||
boot.kernelParams = [ "ipv6.disable=1" ];
|
||||
boot.kernelParams = [ "ipv6.disable=1" "resume_offset=94015488"];
|
||||
networking.networkmanager.enable = true;
|
||||
networking.hostName = "nixos"; # Define your hostname.
|
||||
networking.enableIPv6 = false;
|
||||
@@ -144,6 +156,7 @@ services.mullvad-vpn.enable = true;
|
||||
"wheel" "adbusers" "docker" "input" "dialout"]; packages = with pkgs; [
|
||||
];
|
||||
};
|
||||
|
||||
users.defaultUserShell = pkgs.zsh;
|
||||
environment.shells = with pkgs; [ zsh nushell ];
|
||||
programs.zsh.enable = true;
|
||||
|
||||
Reference in New Issue
Block a user