Skip to content

Commit

Permalink
WIP: Experiment with sd images
Browse files Browse the repository at this point in the history
  • Loading branch information
ritiek committed Oct 27, 2024
1 parent f0b05cd commit 6a51a67
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
7 changes: 7 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,13 @@
format = "sd-aarch64-installer";
};

stashy-sd = inputs.nixos-generators.nixosGenerate {
system = "aarch64-linux";
modules = [ ./machines/stashy ];
specialArgs = { inherit inputs; };
format = "sd-aarch64";
};

stashy-sd-installer = inputs.nixos-generators.nixosGenerate {
system = "aarch64-linux";
modules = [ ./machines/stashy ];
Expand Down
5 changes: 5 additions & 0 deletions machines/stashy/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@
networking.wireless = {
enable = true;
allowAuxiliaryImperativeNetworks = true;
networks = {
"SSID".psk = "PASS_PLAIN";
};
interfaces = [ "wlan0" ];
};

Expand All @@ -63,6 +66,7 @@
mutableUsers = false;

users.root = {
password = "ff";
openssh.authorizedKeys.keys = [
"sk-ssh-ed25519@openssh.com AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAINmHZVbmzdVkoONuoeJhfIUDRvbhPeaSkhv0LXuNIyFfAAAAEXNzaDpyaXRpZWtAeXViaWth"
"sk-ssh-ed25519@openssh.com AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAIHVwHXOotXjPLC/fXIEu/Xnc5ZiIwOKK4Amas/rb9/ZGAAAAEnNzaDpyaXRpZWtAeXViaWtrbw=="
Expand Down Expand Up @@ -101,6 +105,7 @@
programs = {
nix-index-database.comma.enable = true;
zsh.enable = true;
# gnupg.agent.enable = true;
};

powerManagement.cpuFreqGovernor = "performance";
Expand Down
1 change: 1 addition & 0 deletions machines/stashy/home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

home-manager.users.root = {
imports = [
# ./../../home/gnupg.nix
./../../home/zsh
./../../home/git
./../../home/neovim
Expand Down

0 comments on commit 6a51a67

Please sign in to comment.