nixfiles/hosts/teidesu-osx/configuration.nix

56 lines
980 B
Nix
Raw Normal View History

2024-03-03 06:32:03 +03:00
{ pkgs
2024-04-16 04:17:24 +03:00
, lib
2024-03-03 06:32:03 +03:00
, abs
, inputs
, ...
}:
{
nix = {
settings.experimental-features = [ "nix-command" "flakes" ];
settings.trusted-users = [ "@admin" ];
useDaemon = true;
2024-04-16 04:17:24 +03:00
registry = {
nixpkgs.to = {
type = "github";
owner = "NixOS";
repo = "nixpkgs";
rev = inputs.nixpkgs.rev;
};
};
settings.nix-path = [ "nixpkgs=flake:nixpkgs" ];
2024-03-03 06:32:03 +03:00
};
2024-04-16 04:17:24 +03:00
# nixpkgs.flake.source = lib.mkForce null;
2024-03-03 06:32:03 +03:00
nixpkgs.hostPlatform = "aarch64-darwin";
services.nix-daemon.enable = true;
age.identityPaths = [
"/Users/teidesu/.ssh/agenix-key"
"/Users/Shared/agenix-key-unsafe"
2024-03-03 06:32:03 +03:00
];
security.pam.enableSudoTouchIdAuth = true;
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
programs.zsh.enable = true;
2024-03-03 21:39:15 +03:00
imports = [
(import (abs "users/teidesu/darwin.nix") {
home = {
imports = [
./arc-setup.nix
];
};
})
];
2024-03-03 06:32:03 +03:00
system.stateVersion = 4;
}