feat!(flake): convert to fs-defined configurations
Place all configurations in `machines/${manager}/${system}/${hostname}/...`: - `${manager}` - One of `nixos`, `nix-on-droid`, `nix-darwin` or `home-manager` - `${system}` - A system's architecture (can be many) - `${hostname}` - A system's hostname (can be many) The flake now automatically generates the needed configurations based on the above structure. It only generates configurations for valid directory structures: - It wouldn't generate a NixOS config if there isn't a `configuration.nix` file - ...
This commit is contained in:
parent
b0110b3e64
commit
dd2391d905
9 changed files with 176 additions and 66 deletions
62
machines/nix-darwin/x86_64-darwin/apavel-a01/home/apavel.nix
Normal file
62
machines/nix-darwin/x86_64-darwin/apavel-a01/home/apavel.nix
Normal file
|
@ -0,0 +1,62 @@
|
|||
{ inputs, lib, config, pkgs, ... }:
|
||||
|
||||
{
|
||||
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
|
||||
rnix-lsp
|
||||
nil
|
||||
|
||||
# Zig
|
||||
zigpkgs.master
|
||||
inputs.zls-overlay.packages.x86_64-darwin.default
|
||||
];
|
||||
|
||||
nixpkgs = {
|
||||
overlays = [
|
||||
inputs.zig-overlay.overlays.default
|
||||
];
|
||||
|
||||
config.allowUnfree = true;
|
||||
};
|
||||
|
||||
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