nixLap re-enable hibrnation
This commit is contained in:
parent
b11daf3dd9
commit
1845c7a2f5
@ -1,31 +0,0 @@
|
||||
[Source-applicationSourceName]
|
||||
dataSourceCommonSettings\activeState=true
|
||||
|
||||
[Source-applicationVersion]
|
||||
dataSourceCommonSettings\activeState=true
|
||||
|
||||
[Source-locale]
|
||||
dataSourceCommonSettings\activeState=true
|
||||
|
||||
[Source-opengl]
|
||||
dataSourceCommonSettings\activeState=true
|
||||
|
||||
[Source-platform]
|
||||
dataSourceCommonSettings\activeState=true
|
||||
|
||||
[Source-qtVersion]
|
||||
dataSourceCommonSettings\activeState=true
|
||||
|
||||
[Source-screens]
|
||||
dataSourceCommonSettings\activeState=true
|
||||
|
||||
[Source-startCount]
|
||||
dataSourceCommonSettings\activeState=true
|
||||
|
||||
[Source-usageTime]
|
||||
dataSourceCommonSettings\activeState=true
|
||||
|
||||
[UserFeedback]
|
||||
ApplicationStartCount=63
|
||||
ApplicationTime=53391
|
||||
LastEncouragement=@DateTime(\0\0\0\x10\0\0\0\0\0\0%\x8c\x93\x4\xe2\b\xba\0)
|
||||
@ -1,2 +0,0 @@
|
||||
[UserFeedback]
|
||||
ApplicationStartCount=2
|
||||
@ -130,9 +130,6 @@ Allow Expansion=false
|
||||
Automatically select filename extension=true
|
||||
Breadcrumb Navigation=false
|
||||
Decoration position=2
|
||||
LocationCombo Completionmode=5
|
||||
PathCombo Completionmode=5
|
||||
Show Bookmarks=false
|
||||
Show Full Path=false
|
||||
Show Inline Previews=true
|
||||
Show Preview=false
|
||||
|
||||
@ -8,8 +8,8 @@ Gtk/PrimaryButtonWarpsSlider 1
|
||||
Gtk/ToolbarStyle 3
|
||||
Gtk/MenuImages 1
|
||||
Gtk/ButtonImages 1
|
||||
Gtk/CursorThemeSize 30
|
||||
Gtk/CursorThemeName "catppuccin-frappe-mauve-cursors"
|
||||
Gtk/CursorThemeSize 22
|
||||
Gtk/CursorThemeName "catppuccin-frappe-blue-cursors"
|
||||
Net/SoundThemeName "ocean"
|
||||
Net/IconThemeName "breeze-dark"
|
||||
Gtk/FontName "Noto Sans, 10"
|
||||
|
||||
Binary file not shown.
@ -1,6 +1,6 @@
|
||||
{
|
||||
"$fdo_created": "1748649994",
|
||||
"$fdo_modified": "1779069606",
|
||||
"$fdo_modified": "1779184521",
|
||||
"Chromium Keys/Chromium Safe Storage": {
|
||||
"$fdo_created": "1748704742",
|
||||
"$fdo_mime_type": "text/plain",
|
||||
@ -233,9 +233,9 @@
|
||||
}
|
||||
},
|
||||
"Nextcloud/someone:https://nextcloud.urmel.de/:0": {
|
||||
"$fdo_created": "1769591673",
|
||||
"$fdo_created": "1779184467",
|
||||
"$fdo_mime_type": "text/plain",
|
||||
"$fdo_modified": "1769591673",
|
||||
"$fdo_modified": "1779184467",
|
||||
"attributes": {
|
||||
"server": "Nextcloud",
|
||||
"type": "plaintext",
|
||||
@ -255,9 +255,9 @@
|
||||
}
|
||||
},
|
||||
"Nextcloud/someone_app-password:https://nextcloud.urmel.de/:0": {
|
||||
"$fdo_created": "1779069179",
|
||||
"$fdo_created": "1779184521",
|
||||
"$fdo_mime_type": "text/plain",
|
||||
"$fdo_modified": "1779069179",
|
||||
"$fdo_modified": "1779184521",
|
||||
"attributes": {
|
||||
"server": "Nextcloud",
|
||||
"type": "base64",
|
||||
|
||||
@ -3,8 +3,8 @@ gtk-application-prefer-dark-theme=true
|
||||
gtk-button-images=true
|
||||
gtk-cursor-blink=true
|
||||
gtk-cursor-blink-time=1000
|
||||
gtk-cursor-theme-name=catppuccin-frappe-mauve-cursors
|
||||
gtk-cursor-theme-size=24
|
||||
gtk-cursor-theme-name=catppuccin-frappe-blue-cursors
|
||||
gtk-cursor-theme-size=18
|
||||
gtk-decoration-layout=icon:minimize,maximize,close
|
||||
gtk-enable-animations=true
|
||||
gtk-enable-event-sounds=1
|
||||
|
||||
@ -2,8 +2,8 @@
|
||||
gtk-application-prefer-dark-theme=true
|
||||
gtk-cursor-blink=true
|
||||
gtk-cursor-blink-time=1000
|
||||
gtk-cursor-theme-name=catppuccin-frappe-mauve-cursors
|
||||
gtk-cursor-theme-size=24
|
||||
gtk-cursor-theme-name=catppuccin-frappe-blue-cursors
|
||||
gtk-cursor-theme-size=18
|
||||
gtk-decoration-layout=icon:minimize,maximize,close
|
||||
gtk-enable-animations=true
|
||||
gtk-font-name=Noto Sans, 10
|
||||
|
||||
@ -17,20 +17,13 @@ in
|
||||
# Bootloader.
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
boot.initrd.availableKernelModules = [
|
||||
"aesni_intel"
|
||||
"cryptd"
|
||||
];
|
||||
|
||||
services.flatpak.enable = true;
|
||||
networking.hostName = "nixLap";
|
||||
|
||||
networking.hostName = "nixLap"; # Define your hostname.
|
||||
|
||||
|
||||
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
||||
|
||||
# Configure network proxy if necessary
|
||||
# networking.proxy.default = "http://user:password@proxy:port/";
|
||||
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
|
||||
|
||||
|
||||
boot.resumeDevice = "/dev/disk/by-uuid/3cdc496b-6116-4f3a-a73e-3afd3cf742ff";
|
||||
powerManagement.enable = true;
|
||||
services.power-profiles-daemon.enable = true;
|
||||
# Suspend first then hibernate when closing the lid
|
||||
@ -39,8 +32,11 @@ in
|
||||
services.logind.settings.Login.powerKey = "hibernate";
|
||||
services.logind.settings.Login.powerKeyLongPress = "poweroff";
|
||||
|
||||
# Suspend first
|
||||
boot.kernelParams = ["mem_sleep_default=freeze" "resume_offset=0"];
|
||||
# Hibernation
|
||||
boot.resumeDevice = "/dev/disk/by-label/swap";
|
||||
# resume offset from: filefrag -v /swapfile # under 0. physical offset
|
||||
boot.kernelParams = ["mem_sleep_default=freeze" "resume_offset=0" ];
|
||||
|
||||
|
||||
# Define time delay for hibernation
|
||||
systemd.sleep.extraConfig = ''
|
||||
@ -48,8 +44,6 @@ in
|
||||
SuspendState=mem
|
||||
'';
|
||||
|
||||
|
||||
|
||||
# Start the driver at boot
|
||||
systemd.services.fprintd = {
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
@ -68,6 +62,7 @@ in
|
||||
programs.steam.enable = true;
|
||||
|
||||
virtualisation.containers.enable = true;
|
||||
services.flatpak.enable = true;
|
||||
virtualisation = {
|
||||
podman = {
|
||||
enable = true;
|
||||
@ -85,30 +80,23 @@ in
|
||||
services.xserver.enable = true;
|
||||
|
||||
# Enable the KDE Plasma Desktop Environment.
|
||||
services.displayManager.sddm = {
|
||||
enable = true;
|
||||
theme = "catppuccin-frappe-mauve";
|
||||
wayland = {
|
||||
enable = true;
|
||||
compositor = "kwin";
|
||||
};
|
||||
# https://wiki.nixos.org/wiki/KDE#Unlock_KDE_Wallet_with_LUKS_password
|
||||
|
||||
};
|
||||
security = {
|
||||
# If enabled, pam_wallet will attempt to automatically unlock the user’s default KDE wallet upon login.
|
||||
# If the user has no wallet named “kdewallet”, or the login password does not match their wallet password,
|
||||
# KDE will prompt separately after login.
|
||||
pam = {
|
||||
services = {
|
||||
someone = {
|
||||
kwallet = {
|
||||
enable = true;
|
||||
package = pkgs.kdePackages.kwallet-pam;
|
||||
};
|
||||
services.displayManager = {
|
||||
autoLogin = {
|
||||
enable = true;
|
||||
user = "someone";
|
||||
};
|
||||
sddm = {
|
||||
enable = true;
|
||||
theme = "catppuccin-frappe-mauve";
|
||||
wayland = {
|
||||
enable = true;
|
||||
compositor = "kwin";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
services.desktopManager.plasma6.enable = true;
|
||||
|
||||
# Configure keymap in X11
|
||||
@ -171,25 +159,6 @@ in
|
||||
imagemagick
|
||||
docker-compose
|
||||
] ++ optionalPkgs;
|
||||
# Some programs need SUID wrappers, can be configured further or are
|
||||
# started in user sessions.
|
||||
# programs.mtr.enable = true;
|
||||
# programs.gnupg.agent = {
|
||||
# enable = true;
|
||||
# enableSSHSupport = true;
|
||||
# };
|
||||
|
||||
# List services that you want to enable:
|
||||
|
||||
# Enable the OpenSSH daemon.
|
||||
# services.openssh.enable = true;
|
||||
|
||||
# Open ports in the firewall.
|
||||
# networking.firewall.allowedTCPPorts = [ ... ];
|
||||
# networking.firewall.allowedUDPPorts = [ ... ];
|
||||
# Or disable the firewall altogether.
|
||||
# networking.firewall.enable = false;
|
||||
|
||||
# This value determines the NixOS release from which the default
|
||||
# settings for stateful data, like file locations and database versions
|
||||
# on your system were taken. It‘s perfectly fine and recommended to leave
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "xhci_pci" "thunderbolt" "vmd" "nvme" "usb_storage" "sd_mod" ];
|
||||
boot.initrd.availableKernelModules = [ "xhci_pci" "thunderbolt" "vmd" "nvme" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-intel" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
@ -26,7 +26,16 @@
|
||||
options = [ "fmask=0022" "dmask=0022" ];
|
||||
};
|
||||
|
||||
swapDevices = [ ];
|
||||
|
||||
swapDevices = [{
|
||||
device = "/dev/disk/by-label/swap";
|
||||
encrypted = {
|
||||
enable = true;
|
||||
label = "swap";
|
||||
blkDev = "/dev/disk/by-label/cryptoswap";
|
||||
};
|
||||
}];
|
||||
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
#hardware.cpu.intel.npu.enable = true;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user