77 lines
1.8 KiB
Nix
77 lines
1.8 KiB
Nix
{
|
|
inputs,
|
|
config,
|
|
...
|
|
}:
|
|
let
|
|
nixosModules = config.flake.modules.nixos;
|
|
homeModules = config.flake.modules.homeManager;
|
|
accounts = config.repo.accounts;
|
|
in
|
|
{
|
|
repo.machines.zenith = {
|
|
buildFunction = config.repo.helpers.mkWorkstationHost;
|
|
module = nixosModules.zenith;
|
|
|
|
users = {
|
|
kiri.account = accounts.kiri;
|
|
ergon = {
|
|
account = accounts.ergon;
|
|
sourceControl = {
|
|
personal.publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPdR3KP2U84i7f7MlRqcML/3YyMw8JL3hdm637SkMUwO ergon@zenith#personal";
|
|
work.publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIHJz5uHKm0/TiMNh/cmzrODHNZ8NgEEZe+47XnJwQGk ergon@zenith#work";
|
|
};
|
|
};
|
|
};
|
|
|
|
displays = {
|
|
"California Institute of Technology 0x1410 Unknown" = {
|
|
primary = true;
|
|
scale = 1.5;
|
|
width = 3072;
|
|
height = 1920;
|
|
refresh = 120.002;
|
|
};
|
|
};
|
|
|
|
stateVersion = "24.05";
|
|
hmStateVersion = "24.05";
|
|
};
|
|
|
|
flake.modules.nixos.zenith =
|
|
{ ... }:
|
|
{
|
|
imports = [
|
|
nixosModules.qbittorrent-client
|
|
nixosModules.laptop-power
|
|
{
|
|
hardware.enableRedistributableFirmware = true;
|
|
services.fwupd.enable = true;
|
|
}
|
|
./_hardware.nix
|
|
inputs.nixos-hardware.nixosModules.lenovo-yoga-7-14ARH7-amdgpu
|
|
];
|
|
|
|
home-manager.users = {
|
|
kiri.imports = [ homeModules.noctalia-portable ];
|
|
ergon.imports = [
|
|
homeModules.noctalia-portable
|
|
(
|
|
{ pkgs, ... }:
|
|
{
|
|
home.packages = [ pkgs.usql ];
|
|
|
|
programs.git.ignores = [
|
|
"devenv.*"
|
|
".devenv*"
|
|
".direnv"
|
|
"pre-commit-config.yaml"
|
|
".envrc"
|
|
];
|
|
}
|
|
)
|
|
];
|
|
};
|
|
};
|
|
}
|