Personal Nix setup
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Replace sodacream linux with darwin

+12 -130
+6 -6
flake.nix
··· 118 118 hostname = "irnbru"; 119 119 }; 120 120 121 + darwinConfigurations."sodacream" = mkSystem { 122 + inherit overlays; 123 + system = "aarch64-darwin"; 124 + hostname = "sodacream"; 125 + }; 126 + 121 127 nixosConfigurations."pepper" = mkSystem { 122 128 inherit overlays; 123 129 system = "x86_64-linux"; ··· 134 140 inherit overlays; 135 141 system = "aarch64-linux"; 136 142 hostname = "ramune"; 137 - }; 138 - 139 - nixosConfigurations."sodacream" = mkSystem { 140 - inherit overlays; 141 - system = "aarch64-linux"; 142 - hostname = "sodacream"; 143 143 }; 144 144 145 145 overlays = {
+3 -33
machines/sodacream/configuration.nix
··· 1 - { user, ... }: 1 + { pkgs, ... }: 2 2 3 3 { 4 - imports = [ 5 - ./hardware.nix 6 - ]; 7 - 8 - users.users."${user}" = { 9 - isNormalUser = true; 10 - extraGroups = [ "wheel" ]; 11 - hashedPassword = "$6$DEmCOeiSFe6ymGox$WMWddbT9PkkfDT6JS4WuJsM3mQHI0e9kg0t42UowO79dWAcSU0K//KKlcebSosoMRz5mUEw5TFvbrv1aRHqYa/"; 12 - }; 13 - 14 - modules = { 15 - apps = { 16 - enable = true; 17 - nix-ld.enable = true; 18 - }; 19 - desktop = { 20 - enable = true; 21 - rawaccel.enable = false; 22 - affinity.performanceCores = [ 4 5 6 7 ]; 23 - hyprland = { 24 - monitor = [ "eDP-1, preferred, 0x0, 1.6, bitdepth, 10, cm, edid" ]; 25 - }; 26 - }; 27 - server = { 28 - enable = true; 29 - tailscale.enable = true; 30 - sshd.enable = true; 31 - podman.enable = true; 32 - }; 33 - }; 4 + imports = [ ]; 34 5 35 - system.stateVersion = "25.05"; 6 + modules = {}; 36 7 } 37 -
-81
machines/sodacream/hardware.nix
··· 1 - { lib, inputs, modulesPath, ... }: 2 - 3 - with lib; 4 - { 5 - imports = with inputs; [ 6 - apple-silicon.nixosModules.apple-silicon-support 7 - (modulesPath + "/installer/scan/not-detected.nix") 8 - ]; 9 - 10 - networking.hostId = "1a99cdb0"; 11 - 12 - boot = { 13 - supportedFilesystems = [ "btrfs" ]; 14 - loader = { 15 - systemd-boot.enable = true; 16 - efi.canTouchEfiVariables = false; 17 - }; 18 - kernelParams = [ 19 - "zswap.enabled=1" 20 - "zswap.compressor=zstd" 21 - "zswap.zpool=zsmalloc" 22 - "zswap.max_pool_percent=20" 23 - "apple_dcp.show_notch=1" 24 - "nvme_apple.flush_interval=1000" 25 - ]; 26 - initrd.luks.devices."cryptroot".device = "/dev/disk/by-label/NIXOS_LUKS"; 27 - }; 28 - 29 - fileSystems."/" = { 30 - device = "/dev/disk/by-label/NIXROOT"; 31 - fsType = "btrfs"; 32 - options = [ "subvol=@root" "compress=zstd" "noatime" ]; 33 - }; 34 - 35 - fileSystems."/nix" = { 36 - device = "/dev/disk/by-label/NIXROOT"; 37 - fsType = "btrfs"; 38 - options = [ "subvol=@nix" "compress=zstd" "noatime" ]; 39 - }; 40 - 41 - fileSystems."/home" = { 42 - device = "/dev/disk/by-label/NIXROOT"; 43 - fsType = "btrfs"; 44 - options = [ "subvol=@home" "noatime" ]; 45 - }; 46 - 47 - fileSystems."/var/log" = { 48 - device = "/dev/disk/by-label/NIXROOT"; 49 - fsType = "btrfs"; 50 - options = [ "subvol=@log" "noatime" ]; 51 - }; 52 - 53 - fileSystems."/swap" = { 54 - device = "/dev/disk/by-label/NIXROOT"; 55 - fsType = "btrfs"; 56 - options = [ "subvol=@swap" "noatime" ]; 57 - }; 58 - 59 - fileSystems."/boot" = { 60 - device = "/dev/disk/by-uuid/9B6C-1522"; 61 - fsType = "vfat"; 62 - options = [ "fmask=0022" "dmask=0022" ]; 63 - }; 64 - 65 - swapDevices = [ 66 - { 67 - device = "/swap/swapfile"; 68 - size = 16 * 1024; 69 - } 70 - ]; 71 - 72 - nixpkgs.overlays = [ inputs.apple-silicon.overlays.apple-silicon-overlay ]; 73 - 74 - hardware = { 75 - enableAllFirmware = true; 76 - graphics.enable = true; 77 - bluetooth.enable = true; 78 - wirelessRegulatoryDatabase = true; 79 - sensor.iio.enable = true; 80 - }; 81 - }
+3 -10
machines/sodacream/home.nix
··· 1 - { ... }: { 1 + { ... }: 2 + 3 + { 2 4 modules = { 3 - desktop.enable = true; 4 5 development = { 5 6 enable = true; 6 - js.enable = true; 7 - zig.enable = true; 8 - terraform.enable = false; 9 7 react-native.enable = false; 10 8 }; 11 9 apps = { 12 10 enable = true; 13 - ollama.enable = true; 14 11 ghostty.enable = true; 15 - zen-browser.enable = true; 16 - discord.enable = true; 17 - chromium.enable = true; 18 - zed-editor.enable = true; 19 12 }; 20 13 }; 21 14 }