2024-02-02 22:25:54 +00:00
|
|
|
|
{
|
|
|
|
|
config,
|
|
|
|
|
lib,
|
|
|
|
|
pkgs,
|
|
|
|
|
...
|
|
|
|
|
}:
|
|
|
|
|
{
|
|
|
|
|
config = {
|
|
|
|
|
pub-solar.core.disk-encryption-active = false;
|
|
|
|
|
|
|
|
|
|
fileSystems = {
|
|
|
|
|
"/" = {
|
|
|
|
|
device = "/dev/disk/by-label/NIXOS_SD";
|
|
|
|
|
fsType = "ext4";
|
|
|
|
|
options = [ "noatime" ];
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
2024-04-13 00:05:59 +00:00
|
|
|
|
networking.hostName = "paperless";
|
2024-02-02 22:25:54 +00:00
|
|
|
|
|
|
|
|
|
services.openssh = {
|
|
|
|
|
enable = true;
|
|
|
|
|
openFirewall = true;
|
2024-04-15 11:20:34 +00:00
|
|
|
|
allowSFTP = true;
|
2024-02-02 22:25:54 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
boot.kernelParams = [ "boot.shell_on_fail=1" ];
|
|
|
|
|
|
2024-04-13 00:05:59 +00:00
|
|
|
|
# Would decrease closure size, but currenly broken (cairo)
|
|
|
|
|
#environment.noXlibs = true;
|
2024-02-02 22:25:54 +00:00
|
|
|
|
|
|
|
|
|
nix = {
|
|
|
|
|
gc.automatic = true;
|
|
|
|
|
|
|
|
|
|
optimise.automatic = true;
|
|
|
|
|
|
|
|
|
|
settings = {
|
|
|
|
|
auto-optimise-store = true;
|
|
|
|
|
sandbox = true;
|
|
|
|
|
allowed-users = [ "@wheel" ];
|
|
|
|
|
trusted-users = [
|
|
|
|
|
"root"
|
|
|
|
|
"@wheel"
|
|
|
|
|
];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
extraOptions = ''
|
|
|
|
|
min-free = 536870912
|
|
|
|
|
keep-outputs = true
|
|
|
|
|
keep-derivations = true
|
|
|
|
|
fallback = true
|
|
|
|
|
'';
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
# custom raspi boot loader is already present
|
|
|
|
|
boot.loader.systemd-boot.enable = false;
|
|
|
|
|
boot.loader.grub.enable = false;
|
|
|
|
|
boot.loader.generic-extlinux-compatible.enable = true;
|
|
|
|
|
boot.kernelPackages = pkgs.linuxPackages_6_6;
|
|
|
|
|
|
|
|
|
|
nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux";
|
|
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
# this value at the release version of the first install of this system.
|
|
|
|
|
# Before changing this value read the documentation for this option
|
|
|
|
|
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
|
|
|
|
system.stateVersion = "23.11"; # Did you read the comment?
|
|
|
|
|
};
|
|
|
|
|
}
|