53 lines
1.3 KiB
Nix
53 lines
1.3 KiB
Nix
{ config, lib, pkgs, inputs, ... }:
|
|
|
|
{
|
|
imports = [
|
|
inputs.home-manager-darwin.darwinModules.home-manager
|
|
];
|
|
|
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
|
|
|
nix.buildMachines = [{
|
|
hostName = "192.168.2.22";
|
|
systems = [ "x86_64-linux" ];
|
|
sshUser = "origami";
|
|
sshKey = "/Users/origami/.config/sops-nix/secrets/ssh-private";
|
|
protocol = "ssh-ng";
|
|
maxJobs = 4;
|
|
supportedFeatures = [ "nixos-test" "big-parallel" "kvm" ];
|
|
}];
|
|
nix.distributedBuilds = true;
|
|
|
|
networking.hostName = "hypnos";
|
|
time.timeZone = "Asia/Shanghai";
|
|
|
|
programs.zsh.enable = true;
|
|
programs.zsh.enableGlobalCompInit = false;
|
|
|
|
users.users.origami = {
|
|
home = "/Users/origami";
|
|
};
|
|
|
|
home-manager = {
|
|
useGlobalPkgs = true;
|
|
useUserPackages = true;
|
|
backupFileExtension = "bak";
|
|
sharedModules = [
|
|
inputs.sops-nix.homeManagerModules.sops
|
|
];
|
|
extraSpecialArgs = {
|
|
lib = import ../../home/lib/origami404.nix {
|
|
hmSource = inputs.home-manager-darwin;
|
|
npLib = inputs.nixpkgs-darwin.lib;
|
|
};
|
|
};
|
|
users.origami = import ../../home/hosts/hypnos.nix;
|
|
};
|
|
|
|
environment.systemPackages = with pkgs; [ home-manager ];
|
|
|
|
nixpkgs.config.allowUnfreePredicate = _: true;
|
|
|
|
system.stateVersion = 5;
|
|
}
|