2022-05-23 12:35:37 +02:00
|
|
|
# Holds common settings for *all* systems, including both servers and
|
|
|
|
# clients.
|
2022-05-15 17:31:45 +02:00
|
|
|
|
2022-05-27 15:59:00 +02:00
|
|
|
{ pkgs, oxalica, ... }: {
|
2022-05-15 17:31:45 +02:00
|
|
|
|
|
|
|
nix = {
|
2022-05-27 13:38:34 +02:00
|
|
|
trustedUsers = [ "riley" ];
|
2022-05-23 10:50:43 +02:00
|
|
|
optimise.automatic = true;
|
|
|
|
extraOptions = ''
|
|
|
|
experimental-features = nix-command flakes
|
|
|
|
'';
|
2022-05-15 17:31:45 +02:00
|
|
|
};
|
|
|
|
|
2022-05-23 10:50:43 +02:00
|
|
|
nixpkgs = {
|
|
|
|
config = { allowUnfree = true; };
|
2022-05-23 12:35:37 +02:00
|
|
|
overlays = [
|
|
|
|
|
|
|
|
# Import overlays defined under the `overlays/` directory.
|
|
|
|
(import ./overlays)
|
|
|
|
|
|
|
|
# Clients need Rust for development, servers need Rust for
|
|
|
|
# deployment.
|
|
|
|
oxalica.overlay
|
|
|
|
|
|
|
|
];
|
2022-05-23 10:50:43 +02:00
|
|
|
};
|
2022-05-15 17:31:45 +02:00
|
|
|
|
2022-05-23 10:50:43 +02:00
|
|
|
boot.cleanTmpDir = true;
|
2022-05-15 17:31:45 +02:00
|
|
|
|
2022-05-23 12:35:37 +02:00
|
|
|
environment.systemPackages = [
|
|
|
|
|
|
|
|
# Include common packages I use everywhere, like `rg`
|
|
|
|
# and `exa`
|
|
|
|
(import ./env.nix { inherit pkgs; })
|
|
|
|
|
|
|
|
];
|
|
|
|
|
2022-05-15 17:31:45 +02:00
|
|
|
}
|