Personal Nix setup

Replace sodacream linux with darwin

Changed files
+12 -130
machines
+6 -6
flake.nix
···
hostname = "irnbru";
};
+
darwinConfigurations."sodacream" = mkSystem {
+
inherit overlays;
+
system = "aarch64-darwin";
+
hostname = "sodacream";
+
};
+
nixosConfigurations."pepper" = mkSystem {
inherit overlays;
system = "x86_64-linux";
···
inherit overlays;
system = "aarch64-linux";
hostname = "ramune";
-
};
-
-
nixosConfigurations."sodacream" = mkSystem {
-
inherit overlays;
-
system = "aarch64-linux";
-
hostname = "sodacream";
};
overlays = {
+3 -33
machines/sodacream/configuration.nix
···
-
{ user, ... }:
+
{ pkgs, ... }:
{
-
imports = [
-
./hardware.nix
-
];
-
-
users.users."${user}" = {
-
isNormalUser = true;
-
extraGroups = [ "wheel" ];
-
hashedPassword = "$6$DEmCOeiSFe6ymGox$WMWddbT9PkkfDT6JS4WuJsM3mQHI0e9kg0t42UowO79dWAcSU0K//KKlcebSosoMRz5mUEw5TFvbrv1aRHqYa/";
-
};
-
-
modules = {
-
apps = {
-
enable = true;
-
nix-ld.enable = true;
-
};
-
desktop = {
-
enable = true;
-
rawaccel.enable = false;
-
affinity.performanceCores = [ 4 5 6 7 ];
-
hyprland = {
-
monitor = [ "eDP-1, preferred, 0x0, 1.6, bitdepth, 10, cm, edid" ];
-
};
-
};
-
server = {
-
enable = true;
-
tailscale.enable = true;
-
sshd.enable = true;
-
podman.enable = true;
-
};
-
};
+
imports = [ ];
-
system.stateVersion = "25.05";
+
modules = {};
}
-
-81
machines/sodacream/hardware.nix
···
-
{ lib, inputs, modulesPath, ... }:
-
-
with lib;
-
{
-
imports = with inputs; [
-
apple-silicon.nixosModules.apple-silicon-support
-
(modulesPath + "/installer/scan/not-detected.nix")
-
];
-
-
networking.hostId = "1a99cdb0";
-
-
boot = {
-
supportedFilesystems = [ "btrfs" ];
-
loader = {
-
systemd-boot.enable = true;
-
efi.canTouchEfiVariables = false;
-
};
-
kernelParams = [
-
"zswap.enabled=1"
-
"zswap.compressor=zstd"
-
"zswap.zpool=zsmalloc"
-
"zswap.max_pool_percent=20"
-
"apple_dcp.show_notch=1"
-
"nvme_apple.flush_interval=1000"
-
];
-
initrd.luks.devices."cryptroot".device = "/dev/disk/by-label/NIXOS_LUKS";
-
};
-
-
fileSystems."/" = {
-
device = "/dev/disk/by-label/NIXROOT";
-
fsType = "btrfs";
-
options = [ "subvol=@root" "compress=zstd" "noatime" ];
-
};
-
-
fileSystems."/nix" = {
-
device = "/dev/disk/by-label/NIXROOT";
-
fsType = "btrfs";
-
options = [ "subvol=@nix" "compress=zstd" "noatime" ];
-
};
-
-
fileSystems."/home" = {
-
device = "/dev/disk/by-label/NIXROOT";
-
fsType = "btrfs";
-
options = [ "subvol=@home" "noatime" ];
-
};
-
-
fileSystems."/var/log" = {
-
device = "/dev/disk/by-label/NIXROOT";
-
fsType = "btrfs";
-
options = [ "subvol=@log" "noatime" ];
-
};
-
-
fileSystems."/swap" = {
-
device = "/dev/disk/by-label/NIXROOT";
-
fsType = "btrfs";
-
options = [ "subvol=@swap" "noatime" ];
-
};
-
-
fileSystems."/boot" = {
-
device = "/dev/disk/by-uuid/9B6C-1522";
-
fsType = "vfat";
-
options = [ "fmask=0022" "dmask=0022" ];
-
};
-
-
swapDevices = [
-
{
-
device = "/swap/swapfile";
-
size = 16 * 1024;
-
}
-
];
-
-
nixpkgs.overlays = [ inputs.apple-silicon.overlays.apple-silicon-overlay ];
-
-
hardware = {
-
enableAllFirmware = true;
-
graphics.enable = true;
-
bluetooth.enable = true;
-
wirelessRegulatoryDatabase = true;
-
sensor.iio.enable = true;
-
};
-
}
+3 -10
machines/sodacream/home.nix
···
-
{ ... }: {
+
{ ... }:
+
+
{
modules = {
-
desktop.enable = true;
development = {
enable = true;
-
js.enable = true;
-
zig.enable = true;
-
terraform.enable = false;
react-native.enable = false;
};
apps = {
enable = true;
-
ollama.enable = true;
ghostty.enable = true;
-
zen-browser.enable = true;
-
discord.enable = true;
-
chromium.enable = true;
-
zed-editor.enable = true;
};
};
}