chore: nix fmt
This commit is contained in:
parent
a80bd4ed3b
commit
7266fff06e
128 changed files with 3402 additions and 2013 deletions
|
@ -1,9 +1,14 @@
|
|||
{ pkgs
|
||||
, lib
|
||||
, config
|
||||
, ... }: with lib; let
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.global.lowmem;
|
||||
in {
|
||||
in
|
||||
{
|
||||
options.global.lowmem = {
|
||||
enable = mkEnableOption "low memory optimisations";
|
||||
swapsize = mkOption {
|
||||
|
@ -17,9 +22,11 @@ in {
|
|||
# enables remote nixos-rebuild
|
||||
nix.settings.trusted-users = [ "koishi" ];
|
||||
|
||||
swapDevices = [ {
|
||||
device = "/nix/persist/secret/swap";
|
||||
size = cfg.swapsize;
|
||||
} ];
|
||||
swapDevices = [
|
||||
{
|
||||
device = "/nix/persist/secret/swap";
|
||||
size = cfg.swapsize;
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue