fixes and formatting

This commit is contained in:
Henry Hiles 2025-09-23 09:17:26 -04:00
commit 80cf48f1e8
No known key found for this signature in database
71 changed files with 746 additions and 1110 deletions

View file

@ -1,5 +1,9 @@
{modulesPath, ...}: {
imports = [(modulesPath + "/installer/scan/not-detected.nix") (modulesPath + "/profiles/qemu-guest.nix")];
{ modulesPath, ... }:
{
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
(modulesPath + "/profiles/qemu-guest.nix")
];
boot.loader.grub = {
enable = true;
efiSupport = true;

View file

@ -1,5 +1,6 @@
{inputs, ...}: {
imports = [inputs.disko.nixosModules.disko];
{ inputs, ... }:
{
imports = [ inputs.disko.nixosModules.disko ];
disko.devices.disk.main = {
type = "disk";
device = "/dev/sda";
@ -17,7 +18,7 @@
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
mountOptions = ["umask=0077"];
mountOptions = [ "umask=0077" ];
};
};
root = {

View file

@ -1,4 +1,5 @@
{pkgs, ...}: {
{ pkgs, ... }:
{
environment.systemPackages = with pkgs; [
btop
];

View file

@ -1,14 +1,15 @@
let
port = 2222;
in {
networking.firewall.allowedTCPPorts = [port];
in
{
networking.firewall.allowedTCPPorts = [ port ];
users.users.quadradical.openssh.authorizedKeys.keys = import ../../secrets/keys.nix;
services.openssh = {
enable = true;
ports = [port];
ports = [ port ];
settings = {
PasswordAuthentication = false;
AllowUsers = ["quadradical"];
AllowUsers = [ "quadradical" ];
PermitRootLogin = "no";
};
};

View file

@ -1 +1 @@
{nix.settings.trusted-users = ["quadradical"];}
{ nix.settings.trusted-users = [ "quadradical" ]; }