cider init
This commit is contained in:
parent
68bd6cdf93
commit
802681a2be
10 changed files with 146 additions and 24 deletions
30
nixos/hosts/cider/default.nix
Normal file
30
nixos/hosts/cider/default.nix
Normal 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
|
||||
}
|
36
nixos/hosts/cider/hardware-configuration.nix
Normal file
36
nixos/hosts/cider/hardware-configuration.nix
Normal 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";
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue