2023-06-10 11:57:11 +00:00
|
|
|
|
|
|
|
{ config, pkgs, inputs, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
nvidia-offload = pkgs.writeShellScriptBin "nvidia-offload" ''
|
|
|
|
export __NV_PRIME_RENDER_OFFLOAD=1
|
|
|
|
export __NV_PRIME_RENDER_OFFLOAD_PROVIDER=NVIDIA-G0
|
|
|
|
export __GLX_VENDOR_LIBRARY_NAME=nvidia
|
|
|
|
export __VK_LAYER_NV_optimus=NVIDIA_only
|
|
|
|
exec "$@"
|
|
|
|
'';
|
|
|
|
in
|
|
|
|
{
|
|
|
|
imports =
|
|
|
|
[
|
2023-07-07 06:57:08 +00:00
|
|
|
../shared/shared-configuration.nix
|
|
|
|
../shared/desktop-configuration.nix
|
|
|
|
../shared/desktop.nix
|
2023-06-10 11:57:11 +00:00
|
|
|
./ritchie-hardware.nix
|
2023-07-07 06:57:08 +00:00
|
|
|
../shared/filesystem.nix
|
2023-06-10 11:57:11 +00:00
|
|
|
];
|
|
|
|
|
2023-07-07 18:42:18 +00:00
|
|
|
networking = {
|
|
|
|
hostName = "ritchie";
|
|
|
|
firewall = {
|
2023-09-14 06:40:30 +00:00
|
|
|
enable = false;
|
2023-07-07 18:42:18 +00:00
|
|
|
};
|
|
|
|
};
|
2023-06-10 11:57:11 +00:00
|
|
|
users.users.foxsoft = {
|
|
|
|
isNormalUser = true;
|
|
|
|
extraGroups = [
|
|
|
|
"tmux"
|
|
|
|
];
|
|
|
|
openssh.authorizedKeys.keyFiles = [
|
2023-07-07 06:57:08 +00:00
|
|
|
../../users/foxsoft/authorized_keys
|
2023-06-10 11:57:11 +00:00
|
|
|
];
|
|
|
|
};
|
2023-06-13 09:42:46 +00:00
|
|
|
|
|
|
|
# Enable the 1Password CLI, this also enables a SGUID wrapper so the CLI can authorize against the GUI app
|
|
|
|
programs._1password = {
|
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
# Enable the 1Passsword GUI with myself as an authorized user for polkit
|
|
|
|
programs._1password-gui = {
|
|
|
|
enable = true;
|
|
|
|
};
|
2023-09-04 06:49:43 +00:00
|
|
|
|
|
|
|
boot.binfmt.emulatedSystems = [
|
|
|
|
"aarch64-linux"
|
|
|
|
];
|
2023-06-10 11:57:11 +00:00
|
|
|
}
|