nixLap re-enable hibrnation

This commit is contained in:
Kyattsukuro 2026-05-19 12:12:24 +02:00
parent b11daf3dd9
commit 1845c7a2f5
10 changed files with 49 additions and 107 deletions

View File

@ -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)

View File

@ -1,2 +0,0 @@
[UserFeedback]
ApplicationStartCount=2

View File

@ -130,9 +130,6 @@ Allow Expansion=false
Automatically select filename extension=true Automatically select filename extension=true
Breadcrumb Navigation=false Breadcrumb Navigation=false
Decoration position=2 Decoration position=2
LocationCombo Completionmode=5
PathCombo Completionmode=5
Show Bookmarks=false
Show Full Path=false Show Full Path=false
Show Inline Previews=true Show Inline Previews=true
Show Preview=false Show Preview=false

View File

@ -8,8 +8,8 @@ Gtk/PrimaryButtonWarpsSlider 1
Gtk/ToolbarStyle 3 Gtk/ToolbarStyle 3
Gtk/MenuImages 1 Gtk/MenuImages 1
Gtk/ButtonImages 1 Gtk/ButtonImages 1
Gtk/CursorThemeSize 30 Gtk/CursorThemeSize 22
Gtk/CursorThemeName "catppuccin-frappe-mauve-cursors" Gtk/CursorThemeName "catppuccin-frappe-blue-cursors"
Net/SoundThemeName "ocean" Net/SoundThemeName "ocean"
Net/IconThemeName "breeze-dark" Net/IconThemeName "breeze-dark"
Gtk/FontName "Noto Sans, 10" Gtk/FontName "Noto Sans, 10"

View File

@ -1,6 +1,6 @@
{ {
"$fdo_created": "1748649994", "$fdo_created": "1748649994",
"$fdo_modified": "1779069606", "$fdo_modified": "1779184521",
"Chromium Keys/Chromium Safe Storage": { "Chromium Keys/Chromium Safe Storage": {
"$fdo_created": "1748704742", "$fdo_created": "1748704742",
"$fdo_mime_type": "text/plain", "$fdo_mime_type": "text/plain",
@ -233,9 +233,9 @@
} }
}, },
"Nextcloud/someone:https://nextcloud.urmel.de/:0": { "Nextcloud/someone:https://nextcloud.urmel.de/:0": {
"$fdo_created": "1769591673", "$fdo_created": "1779184467",
"$fdo_mime_type": "text/plain", "$fdo_mime_type": "text/plain",
"$fdo_modified": "1769591673", "$fdo_modified": "1779184467",
"attributes": { "attributes": {
"server": "Nextcloud", "server": "Nextcloud",
"type": "plaintext", "type": "plaintext",
@ -255,9 +255,9 @@
} }
}, },
"Nextcloud/someone_app-password:https://nextcloud.urmel.de/:0": { "Nextcloud/someone_app-password:https://nextcloud.urmel.de/:0": {
"$fdo_created": "1779069179", "$fdo_created": "1779184521",
"$fdo_mime_type": "text/plain", "$fdo_mime_type": "text/plain",
"$fdo_modified": "1779069179", "$fdo_modified": "1779184521",
"attributes": { "attributes": {
"server": "Nextcloud", "server": "Nextcloud",
"type": "base64", "type": "base64",

View File

@ -3,8 +3,8 @@ gtk-application-prefer-dark-theme=true
gtk-button-images=true gtk-button-images=true
gtk-cursor-blink=true gtk-cursor-blink=true
gtk-cursor-blink-time=1000 gtk-cursor-blink-time=1000
gtk-cursor-theme-name=catppuccin-frappe-mauve-cursors gtk-cursor-theme-name=catppuccin-frappe-blue-cursors
gtk-cursor-theme-size=24 gtk-cursor-theme-size=18
gtk-decoration-layout=icon:minimize,maximize,close gtk-decoration-layout=icon:minimize,maximize,close
gtk-enable-animations=true gtk-enable-animations=true
gtk-enable-event-sounds=1 gtk-enable-event-sounds=1

View File

@ -2,8 +2,8 @@
gtk-application-prefer-dark-theme=true gtk-application-prefer-dark-theme=true
gtk-cursor-blink=true gtk-cursor-blink=true
gtk-cursor-blink-time=1000 gtk-cursor-blink-time=1000
gtk-cursor-theme-name=catppuccin-frappe-mauve-cursors gtk-cursor-theme-name=catppuccin-frappe-blue-cursors
gtk-cursor-theme-size=24 gtk-cursor-theme-size=18
gtk-decoration-layout=icon:minimize,maximize,close gtk-decoration-layout=icon:minimize,maximize,close
gtk-enable-animations=true gtk-enable-animations=true
gtk-font-name=Noto Sans, 10 gtk-font-name=Noto Sans, 10

View File

@ -17,20 +17,13 @@ in
# Bootloader. # Bootloader.
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = 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; powerManagement.enable = true;
services.power-profiles-daemon.enable = true; services.power-profiles-daemon.enable = true;
# Suspend first then hibernate when closing the lid # Suspend first then hibernate when closing the lid
@ -39,17 +32,18 @@ in
services.logind.settings.Login.powerKey = "hibernate"; services.logind.settings.Login.powerKey = "hibernate";
services.logind.settings.Login.powerKeyLongPress = "poweroff"; services.logind.settings.Login.powerKeyLongPress = "poweroff";
# Suspend first # 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" ]; boot.kernelParams = ["mem_sleep_default=freeze" "resume_offset=0" ];
# Define time delay for hibernation # Define time delay for hibernation
systemd.sleep.extraConfig = '' systemd.sleep.extraConfig = ''
HibernateDelaySec=30m HibernateDelaySec=30m
SuspendState=mem SuspendState=mem
''; '';
# Start the driver at boot # Start the driver at boot
systemd.services.fprintd = { systemd.services.fprintd = {
wantedBy = [ "multi-user.target" ]; wantedBy = [ "multi-user.target" ];
@ -68,6 +62,7 @@ in
programs.steam.enable = true; programs.steam.enable = true;
virtualisation.containers.enable = true; virtualisation.containers.enable = true;
services.flatpak.enable = true;
virtualisation = { virtualisation = {
podman = { podman = {
enable = true; enable = true;
@ -85,30 +80,23 @@ in
services.xserver.enable = true; services.xserver.enable = true;
# Enable the KDE Plasma Desktop Environment. # Enable the KDE Plasma Desktop Environment.
services.displayManager.sddm = { # https://wiki.nixos.org/wiki/KDE#Unlock_KDE_Wallet_with_LUKS_password
services.displayManager = {
autoLogin = {
enable = true;
user = "someone";
};
sddm = {
enable = true; enable = true;
theme = "catppuccin-frappe-mauve"; theme = "catppuccin-frappe-mauve";
wayland = { wayland = {
enable = true; enable = true;
compositor = "kwin"; compositor = "kwin";
}; };
};
};
};
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.desktopManager.plasma6.enable = true; services.desktopManager.plasma6.enable = true;
# Configure keymap in X11 # Configure keymap in X11
@ -171,25 +159,6 @@ in
imagemagick imagemagick
docker-compose docker-compose
] ++ optionalPkgs; ] ++ 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 # This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions # settings for stateful data, like file locations and database versions
# on your system were taken. It‘s perfectly fine and recommended to leave # on your system were taken. It‘s perfectly fine and recommended to leave

View File

@ -8,7 +8,7 @@
[ (modulesPath + "/installer/scan/not-detected.nix") [ (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.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ]; boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ ];
@ -26,7 +26,16 @@
options = [ "fmask=0022" "dmask=0022" ]; 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"; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
#hardware.cpu.intel.npu.enable = true; #hardware.cpu.intel.npu.enable = true;