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

@ -1,13 +1,13 @@
{ pkgs, ... }: {
{ pkgs, lib, ... }: {
imports = [
./base.nix
./features/fonts.nix
];
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.loader.systemd-boot.enable = lib.mkDefault true;
boot.loader.efi.canTouchEfiVariables = lib.mkDefault true;
boot.kernelPackages = pkgs.linuxPackages_zen;
boot.kernelPackages = lib.mkDefault pkgs.linuxPackages_zen;
environment.systemPackages = with pkgs; [
firefox

View file

@ -1,4 +1,6 @@
{ pkgs, config, ... }: {
{ pkgs, config, system, ... }: let
canTouchEfiVariables = system.hostPlatform != "aarch64-linux"
in {
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.loader.efi = { inherit canTouchEfiVariables };
}

View file

@ -2,6 +2,17 @@
networking.networkmanager = {
enable = true;
wifi.backend = "iwd";
};
systemd.services.NetworkManager-wait-online.enable = false;
networking.wireless.iwd = {
enable = true;
settings = {
General.EnableNetworkConfiguration = true;
General.AutoConnect = true;
};
};
# TODO: WiFi password automation

View file

@ -1,6 +1,6 @@
{ pkgs, ... }: {
imports = [
./sound.nix
#./sound.nix
];
services.xserver = {

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";
}