refactor(flake)!: machines
-> hosts
This commit is contained in:
parent
703cd0264b
commit
a881c5d7e1
33 changed files with 52 additions and 45 deletions
32
hosts/nix-darwin/x86_64-darwin/apavel-a01/configuration.nix
Normal file
32
hosts/nix-darwin/x86_64-darwin/apavel-a01/configuration.nix
Normal file
|
@ -0,0 +1,32 @@
|
|||
{ inputs, outputs, lib, pkgs, config, ... }:
|
||||
|
||||
{
|
||||
environment.systemPackages = with pkgs; [ ];
|
||||
|
||||
# environment.darwinConfig = builtins.toString ./configuration.nix;
|
||||
|
||||
# Auto upgrade nix package and the daemon service.
|
||||
services.nix-daemon.enable = true;
|
||||
|
||||
nix.package = pkgs.nix;
|
||||
|
||||
# Create /etc/zshrc that loads the nix-darwin environment.
|
||||
programs.zsh.enable = true; # default shell on catalina
|
||||
|
||||
# Fonts
|
||||
fonts.fontDir.enable = true;
|
||||
fonts.fonts = with pkgs; [
|
||||
(nerdfonts.override { fonts = [ "FiraCode" ]; })
|
||||
];
|
||||
|
||||
# Keyboard
|
||||
system.keyboard.enableKeyMapping = true;
|
||||
system.keyboard.remapCapsLockToEscape = true;
|
||||
|
||||
# Add ability to used TouchID for sudo authentication
|
||||
security.pam.enableSudoTouchIdAuth = true;
|
||||
|
||||
# Used for backwards compatibility, please read the changelog before changing.
|
||||
# > darwin-rebuild changelog
|
||||
system.stateVersion = 4;
|
||||
}
|
53
hosts/nix-darwin/x86_64-darwin/apavel-a01/home/apavel.nix
Normal file
53
hosts/nix-darwin/x86_64-darwin/apavel-a01/home/apavel.nix
Normal file
|
@ -0,0 +1,53 @@
|
|||
{ inputs, outputs, lib, pkgs, config, ... }:
|
||||
|
||||
{
|
||||
home = {
|
||||
# username = "apavel";
|
||||
# homeDirectory = "/Users/apavel";
|
||||
stateVersion = "22.05";
|
||||
};
|
||||
|
||||
# Let Home Manager install and manage itself.
|
||||
programs.home-manager.enable = true;
|
||||
|
||||
home.packages = with pkgs; [
|
||||
# Dhall
|
||||
dhall
|
||||
# dhall-lsp-server
|
||||
|
||||
# Nix
|
||||
nil
|
||||
|
||||
# Zig
|
||||
zigpkgs.master
|
||||
inputs.zls-overlay.packages.x86_64-darwin.default
|
||||
];
|
||||
|
||||
programs.git = {
|
||||
enable = true;
|
||||
userName = "apavel";
|
||||
userEmail = "apavel@vmware.com";
|
||||
signing = {
|
||||
signByDefault = true;
|
||||
key = "0x52F3E1D376F692C0";
|
||||
};
|
||||
};
|
||||
|
||||
# services.gpg-agent = {
|
||||
# enable = true;
|
||||
# defaultCacheTtl = 1800;
|
||||
# enableSshSupport = true;
|
||||
# };
|
||||
|
||||
# home.file.".stack/config.yaml".text = lib.generators.toYAML {} {
|
||||
# templates = {
|
||||
# scm-init = "git";
|
||||
# params = with config.programs.git; {
|
||||
# author-name = userName;
|
||||
# author-email = userEmail;
|
||||
# github-username = userName;
|
||||
# };
|
||||
# };
|
||||
# nix.enable = true;
|
||||
# };
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue