updates & crypto

This commit is contained in:
Julian Sutter 2025-04-26 20:07:24 -07:00
parent 256b163931
commit be4255e26f
4 changed files with 29 additions and 10 deletions

View file

@ -5,6 +5,6 @@
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
feather feather
electrum electrum
kleopatra kdePackages.kleopatra
]; ];
} }

18
flake.lock generated
View file

@ -7,11 +7,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1745439012, "lastModified": 1745627989,
"narHash": "sha256-TwbdiH28QK7Da2JQTqFHdb+UCJq6QbF2mtf+RxHVzEA=", "narHash": "sha256-mOCdFmxocBPae7wg7RYWOtJzWMJk34u9493ItY0dVqw=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "d31710fb2cd536b1966fee2af74e99a0816a61a8", "rev": "4d2d32231797bfa7213ae5e8ac89d25f8caaae82",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -22,11 +22,11 @@
}, },
"nixos-hardware": { "nixos-hardware": {
"locked": { "locked": {
"lastModified": 1745392233, "lastModified": 1745503349,
"narHash": "sha256-xmqG4MZArM1JNxPJ33s0MtuBzgnaCO9laARoU3AfP8E=", "narHash": "sha256-bUGjvaPVsOfQeTz9/rLTNLDyqbzhl0CQtJJlhFPhIYw=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixos-hardware", "repo": "nixos-hardware",
"rev": "8bf8a2a0822365bd8f44fd1a19d7ed0a1d629d64", "rev": "f7bee55a5e551bd8e7b5b82c9bc559bc50d868d1",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -38,11 +38,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1745234285, "lastModified": 1745526057,
"narHash": "sha256-GfpyMzxwkfgRVN0cTGQSkTC0OHhEkv3Jf6Tcjm//qZ0=", "narHash": "sha256-ITSpPDwvLBZBnPRS2bUcHY3gZSwis/uTe255QgMtTLA=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "c11863f1e964833214b767f4a369c6e6a7aba141", "rev": "f771eb401a46846c1aebd20552521b233dd7e18b",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -30,6 +30,7 @@
./desktop/office.nix ./desktop/office.nix
./desktop/gaming.nix ./desktop/gaming.nix
./desktop/virtualization.nix ./desktop/virtualization.nix
./desktop/crypto.nix
]; ];
}; };
aurora = nixpkgs.lib.nixosSystem { aurora = nixpkgs.lib.nixosSystem {

View file

@ -30,6 +30,23 @@
}; };
}; };
# Swap
swapDevices = [
{
device = "/swapfile";
size = 102400;
# optional: set up file with correct permissions at activation
priority = 0;
}
];
systemd.tmpfiles.rules = [
"f /swapfile 0600 root root - -"
];
# Disable power-profiles-daemon to resolve conflict # Disable power-profiles-daemon to resolve conflict
services.power-profiles-daemon.enable = false; services.power-profiles-daemon.enable = false;
@ -49,6 +66,7 @@
services.logind = { services.logind = {
lidSwitch = "suspend"; lidSwitch = "suspend";
lidSwitchDocked = "ignore"; # Prevent suspend when connected to a dock lidSwitchDocked = "ignore"; # Prevent suspend when connected to a dock
lidSwitchExternalPower = "ignore";
powerKey = "poweroff"; # Optional: configure behavior for the power key powerKey = "poweroff"; # Optional: configure behavior for the power key
suspendKey = "suspend"; # Optional: configure behavior for the suspend key suspendKey = "suspend"; # Optional: configure behavior for the suspend key
}; };