nixos builder
This commit is contained in:
parent
35d27b7607
commit
6f049807e6
@ -8,6 +8,13 @@ Utilizing [Home Manager](https://nix-community.github.io/home-manager/)
|
||||
|
||||
## NixOS
|
||||
|
||||
### Image Build
|
||||
|
||||
```bash
|
||||
# Remote Build
|
||||
nix build .#packages.x86_64-linux.rke2-image -j0
|
||||
```
|
||||
|
||||
### Copy Config
|
||||
|
||||
```bash
|
||||
|
@ -46,6 +46,7 @@
|
||||
|
||||
# Nix Builder
|
||||
lin-va-nix-builder = mkSystem {
|
||||
systemConfig = ./hosts/builder.nix;
|
||||
moduleConfig = {
|
||||
hostName = "lin-va-nix-builder";
|
||||
mainDiskID = "/dev/xvda";
|
||||
|
@ -75,7 +75,9 @@ in
|
||||
# Enable Flakes & Commands
|
||||
nix = {
|
||||
package = pkgs.nix;
|
||||
extraOptions = ''experimental-features = nix-command flakes'';
|
||||
settings = {
|
||||
experimental-features = "nix-command flakes";
|
||||
};
|
||||
};
|
||||
|
||||
# SQLite Configuration
|
||||
@ -84,30 +86,6 @@ in
|
||||
.mode column
|
||||
'';
|
||||
|
||||
# Darwin Spotlight Indexing Hack
|
||||
# home.activation = mkIf isDarwin {
|
||||
# copyApplications =
|
||||
# let
|
||||
# apps = pkgs.buildEnv {
|
||||
# name = "home-manager-applications";
|
||||
# paths = config.home.packages;
|
||||
# pathsToLink = "/Applications";
|
||||
# };
|
||||
# in
|
||||
# lib.hm.dag.entryAfter [ "writeBoundary" ] ''
|
||||
# baseDir="$HOME/Applications/Home Manager Apps"
|
||||
# if [ -d "$baseDir" ]; then
|
||||
# rm -rf "$baseDir"
|
||||
# fi
|
||||
# mkdir -p "$baseDir"
|
||||
# for appFile in ${apps}/Applications/*; do
|
||||
# target="$baseDir/$(basename "$appFile")"
|
||||
# $DRY_RUN_CMD cp ''${VERBOSE_ARG:+-v} -fHRL "$appFile" "$baseDir"
|
||||
# $DRY_RUN_CMD chmod ''${VERBOSE_ARG:+-v} -R +w "$target"
|
||||
# done
|
||||
# '';
|
||||
# };
|
||||
|
||||
# Darwin Spotlight Indexing Hack
|
||||
disabledModules = [ "targets/darwin/linkapps.nix" ];
|
||||
}
|
||||
|
19
hosts/builder.nix
Normal file
19
hosts/builder.nix
Normal file
@ -0,0 +1,19 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
# User Authorized Keys
|
||||
users.users.root = {
|
||||
openssh.authorizedKeys.keys = [
|
||||
"ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAQEA8P84lWL/p13ZBFNwITm/dLWWL8s9pVmdOImM5gaJAiTLY+DheUvG6YsveB2/5STseiJ34g7Na9TW1mtTLL8zDqPvj3NbprQiYlLJKMbCk6dtfdD4nLMHl8B48e1h699XiZDp2/c+jJb0MkLOFrps+FbPqt7pFt1Pj29tFy8BCg0LGndu6KO+HqYS+aM5tp5hZESo1RReiJ8aHsu5X7wW46brN4gfyyu+8X4etSZAB9raWqlln9NKK7G6as6X+uPypvSjYGSTC8TSePV1iTPwOxPk2+1xBsK7EBLg3jNrrYaiXLnZvBOOhm11JmHzqEJ6386FfQO+0r4iDVxmvi+ojw== rsa-key-20141114"
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEGGGpRpDQRstoqnCAQioSnh6PZRzNQL7lGJHksIkcoF evanreichard@Evans-MacBook-Pro.local"
|
||||
];
|
||||
hashedPassword = null;
|
||||
};
|
||||
|
||||
# System Packages
|
||||
environment.systemPackages = with pkgs; [
|
||||
htop
|
||||
tmux
|
||||
vim
|
||||
];
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user