cider init

This commit is contained in:
41666 2023-12-15 03:23:14 +00:00
parent 68bd6cdf93
commit 802681a2be
10 changed files with 146 additions and 24 deletions

View file

@ -0,0 +1,30 @@
{ config, lib, pkgs, inputs, ... }: {
imports = [
inputs.apple-silicon.nixosModules.apple-silicon-support
./hardware-configuration.nix
../../client.nix
../../features/xfce.nix #TODO: sound may be wrong
../../features/wifi.nix
];
home-manager.users.noe = import ../../../home-manager/noe/hosts/cider.nix;
networking.hostName = "cider";
system.stateVersion = "24.05";
# aarch64 / asahi stuff
hardware.asahi = {
withRust = true;
#withEdgeKernelConfig = true;
#useExperimentalGPUDriver = true;
#experimentalGPUInstallMode = "replace";
#useAlsaUcm = true;
};
networking.wireless.iwd.package = pkgs.stable.iwd; # unstable issue on aarch64: https://github.com/NixOS/nixpkgs/issues/273958
}

View file

@ -0,0 +1,36 @@
# 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/9d66d26a-b441-4337-86a1-c56a09667043";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/AA30-1E15";
fsType = "vfat";
};
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";
}