Switch to switchng & enable tmpdir tmpfs

This commit is contained in:
Tristan D. 2024-08-26 09:20:31 +02:00
parent e6f7f957eb
commit d4add91cbd
Signed by: tristan
SSH key fingerprint: SHA256:9oFM1J63hYWJjCnLG6C0fxBS15rwNcWwdQNMOHYKJ/4

View file

@ -13,6 +13,10 @@ let
else "dirty"; else "dirty";
in in
{ {
system.switch = {
enable = false;
enableNg = true;
};
system.image = { system.image = {
id = "tristnix"; id = "tristnix";
version = commitid; version = commitid;
@ -20,6 +24,11 @@ in
# system.nixos.tags = [ "tristnix_${commitid}" ]; # system.nixos.tags = [ "tristnix_${commitid}" ];
nixpkgs.hostPlatform = lib.mkDefault system; nixpkgs.hostPlatform = lib.mkDefault system;
boot.tmp.useTmpfs = true;
systemd.services.nix-daemon = {
environment.TMPDIR = "/var/tmp";
};
nix = { nix = {
settings = { settings = {
auto-optimise-store = true; auto-optimise-store = true;
@ -105,7 +114,7 @@ in
flake = "/home/tristand/nix"; flake = "/home/tristand/nix";
}; };
rust-motd = { rust-motd = {
enable = true; # enable = true; # broken atm
enableMotdInSSHD = true; enableMotdInSSHD = true;
settings = { settings = {
banner = { banner = {