Migrate to Snowfall (#1)
Reviewed-on: #1 Co-authored-by: Evan Reichard <evan@reichard.io> Co-committed-by: Evan Reichard <evan@reichard.io>
This commit was merged in pull request #1.
This commit is contained in:
60
systems/aarch64-linux/lin-va-mbp-personal/default.nix
Executable file
60
systems/aarch64-linux/lin-va-mbp-personal/default.nix
Executable file
@@ -0,0 +1,60 @@
|
||||
{ namespace, lib, ... }:
|
||||
let
|
||||
inherit (lib.${namespace}) enabled;
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
];
|
||||
|
||||
system.stateVersion = "24.11";
|
||||
time.timeZone = "America/New_York";
|
||||
|
||||
# System Config
|
||||
reichard = {
|
||||
nix = enabled;
|
||||
|
||||
system = {
|
||||
boot = {
|
||||
enable = true;
|
||||
showNotch = true;
|
||||
silentBoot = true;
|
||||
};
|
||||
networking = {
|
||||
enable = true;
|
||||
enableIWD = true;
|
||||
};
|
||||
};
|
||||
|
||||
hardware = {
|
||||
opengl = enabled;
|
||||
asahi = {
|
||||
enable = true;
|
||||
enableGPU = true;
|
||||
firmwareDirectory = ./firmware;
|
||||
};
|
||||
};
|
||||
|
||||
services = {
|
||||
avahi = enabled;
|
||||
ydotool = enabled;
|
||||
};
|
||||
|
||||
security = {
|
||||
sops = {
|
||||
enable = true;
|
||||
defaultSopsFile = lib.snowfall.fs.get-file "secrets/lin-va-mbp-personal/default.yaml";
|
||||
};
|
||||
};
|
||||
|
||||
virtualisation = {
|
||||
podman = enabled;
|
||||
};
|
||||
|
||||
programs = {
|
||||
graphical = {
|
||||
wms.hyprland = enabled;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
BIN
systems/aarch64-linux/lin-va-mbp-personal/firmware/all_firmware.tar.gz
Executable file
BIN
systems/aarch64-linux/lin-va-mbp-personal/firmware/all_firmware.tar.gz
Executable file
Binary file not shown.
BIN
systems/aarch64-linux/lin-va-mbp-personal/firmware/kernelcache.release.mac14j
Executable file
BIN
systems/aarch64-linux/lin-va-mbp-personal/firmware/kernelcache.release.mac14j
Executable file
Binary file not shown.
37
systems/aarch64-linux/lin-va-mbp-personal/hardware-configuration.nix
Executable file
37
systems/aarch64-linux/lin-va-mbp-personal/hardware-configuration.nix
Executable file
@@ -0,0 +1,37 @@
|
||||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||
# and may be overwritten by future invocations. Please make changes
|
||||
# to /etc/nixos/configuration.nix instead.
|
||||
{ config, lib, pkgs, modulesPath, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "usb_storage" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/disk/by-uuid/6dce11fa-5075-44d4-b502-14d0a1b36e7f";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/boot" =
|
||||
{ device = "/dev/disk/by-uuid/2254-0F1E";
|
||||
fsType = "vfat";
|
||||
options = [ "fmask=0022" "dmask=0022" ];
|
||||
};
|
||||
|
||||
swapDevices = [ ];
|
||||
|
||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||
# still possible to use this option, but it's recommended to use it in conjunction
|
||||
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
||||
networking.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.wlan0.useDHCP = lib.mkDefault true;
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux";
|
||||
}
|
||||
Reference in New Issue
Block a user