add yadunut-mbp configuration
This commit is contained in:
12
clan.nix
12
clan.nix
@@ -13,17 +13,5 @@
|
||||
# machines/jon/configuration.nix will be automatically imported.
|
||||
# See: https://docs.clan.lol/guides/more-machines/#automatic-registration
|
||||
machines = {
|
||||
"yadunut-mbp" = {
|
||||
nixpkgs.hostPlatform = "aarch64-darwin";
|
||||
clan.core.networking.targetHost = "root@localhost";
|
||||
system.stateVersion = 6;
|
||||
nix.enable = false;
|
||||
users.users."yadunut".openssh.authorizedKeys.keys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJXOpmWsAnl2RtOuJJMRUx+iJTwf2RWJ1iS3FqXJFzFG"
|
||||
];
|
||||
users.users."root".openssh.authorizedKeys.keys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJXOpmWsAnl2RtOuJJMRUx+iJTwf2RWJ1iS3FqXJFzFG"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
23
machines/yadunut-mbp/configuration.nix
Normal file
23
machines/yadunut-mbp/configuration.nix
Normal file
@@ -0,0 +1,23 @@
|
||||
{ ... }@args:
|
||||
{
|
||||
imports = [
|
||||
../../modules/darwin/sane-defaults
|
||||
];
|
||||
system.primaryUser = "yadunut";
|
||||
users.users."yadunut" = {
|
||||
openssh.authorizedKeys.keys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJXOpmWsAnl2RtOuJJMRUx+iJTwf2RWJ1iS3FqXJFzFG"
|
||||
];
|
||||
};
|
||||
users.users."root" = {
|
||||
openssh.authorizedKeys.keys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJXOpmWsAnl2RtOuJJMRUx+iJTwf2RWJ1iS3FqXJFzFG"
|
||||
];
|
||||
};
|
||||
|
||||
security.pam.services.sudo_local.touchIdAuth = true;
|
||||
nixpkgs.hostPlatform = "aarch64-darwin";
|
||||
clan.core.networking.targetHost = "root@localhost";
|
||||
nix.enable = false; # since we're using nix darwin
|
||||
system.stateVersion = 6;
|
||||
}
|
||||
29
modules/darwin/sane-defaults/default.nix
Normal file
29
modules/darwin/sane-defaults/default.nix
Normal file
@@ -0,0 +1,29 @@
|
||||
{
|
||||
self,
|
||||
lib,
|
||||
inputs,
|
||||
clan-core,
|
||||
specialArgs,
|
||||
config,
|
||||
options,
|
||||
_class,
|
||||
modulesPath,
|
||||
_prefix,
|
||||
}@args:
|
||||
let
|
||||
_ = builtins.trace "MODULE ARGS:\n${lib.generators.toPretty { } (builtins.attrNames args)}" null;
|
||||
in
|
||||
{
|
||||
system.defaults = {
|
||||
NSGlobalDomain = {
|
||||
InitialKeyRepeat = 10;
|
||||
KeyRepeat = 1;
|
||||
AppleShowAllExtensions = true;
|
||||
ApplePressAndHoldEnabled = false;
|
||||
};
|
||||
dock.autohide = true;
|
||||
dock.autohide-delay = 0.0;
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user