This commit is contained in:
Sridhar Ratnakumar 2024-05-24 16:40:54 -04:00
parent d320527763
commit a7c9d331fe
2 changed files with 41 additions and 0 deletions

View file

@ -96,6 +96,11 @@
nixosConfigurations.immediacy =
self.nixos-flake.lib.mkLinuxSystem
./systems/ax41.nix;
# VM on macOS
nixosConfigurations.enjoy =
self.nixos-flake.lib.mkLinuxSystem
./systems/enjoy.nix;
};
perSystem = { self', pkgs, lib, config, ... }: {

36
systems/enjoy.nix Normal file
View file

@ -0,0 +1,36 @@
{ flake, pkgs, lib, ... }:
let
inherit (flake) inputs;
inherit (inputs) self;
in
{
imports = [
inputs.disko.nixosModules.disko
self.nixosModules.default
"${self}/nixos/disko/trivial.nix"
"${self}/nixos/nix.nix"
"${self}/nixos/self/primary-as-admin.nix"
# "${self}/nixos/server/harden/basics.nix"
];
system.stateVersion = "23.11";
networking.hostName = "enjoy";
nixpkgs.hostPlatform = "aarch64-linux";
boot.loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
services.openssh.enable = true;
services.xserver = {
enable = true;
displayManager.gdm.enable = true;
desktopManager.gnome.enable = true;
};
users.users.root.openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHQRxPoqlThDrkR58pKnJgmeWPY9/wleReRbZ2MOZRyd"
];
}