mirror of
https://github.com/youwen5/liminalOS.git
synced 2025-06-20 14:09:51 -07:00
chore: switch to nixfmt-rfc-style
This commit is contained in:
parent
90f6446f5f
commit
523a59f2b3
41 changed files with 362 additions and 167 deletions
|
@ -6,7 +6,8 @@
|
|||
inputs,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
}:
|
||||
{
|
||||
imports = [
|
||||
# Include the results of the hardware scan.
|
||||
./hardware-configuration.nix
|
||||
|
@ -26,7 +27,7 @@
|
|||
options hid_apple iso_layout=0
|
||||
'';
|
||||
|
||||
boot.kernelParams = ["apple_dcp.show_notch=1"];
|
||||
boot.kernelParams = [ "apple_dcp.show_notch=1" ];
|
||||
|
||||
networking.hostName = "callisto"; # Define your hostname.
|
||||
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
||||
|
@ -36,12 +37,14 @@
|
|||
settings.General.EnableNetworkConfiguration = true;
|
||||
};
|
||||
|
||||
nixpkgs.overlays = let
|
||||
stablepkgs = inputs.stablepkgs.legacyPackages.${pkgs.system};
|
||||
in [
|
||||
inputs.apple-silicon.overlays.apple-silicon-overlay
|
||||
inputs.vesktop-bin.overlays.default
|
||||
];
|
||||
nixpkgs.overlays =
|
||||
let
|
||||
stablepkgs = inputs.stablepkgs.legacyPackages.${pkgs.system};
|
||||
in
|
||||
[
|
||||
inputs.apple-silicon.overlays.apple-silicon-overlay
|
||||
inputs.vesktop-bin.overlays.default
|
||||
];
|
||||
|
||||
programs.light.enable = true;
|
||||
|
||||
|
@ -76,7 +79,11 @@
|
|||
|
||||
programs.nix-ld = {
|
||||
enable = true;
|
||||
libraries = with pkgs; [icu xorg.libXtst xorg.libXi];
|
||||
libraries = with pkgs; [
|
||||
icu
|
||||
xorg.libXtst
|
||||
xorg.libXi
|
||||
];
|
||||
};
|
||||
|
||||
# Configure keymap in X11
|
||||
|
@ -96,12 +103,18 @@
|
|||
isNormalUser = true;
|
||||
description = "Youwen Wu";
|
||||
# Wheel is required for iwctl as non-root
|
||||
extraGroups = ["wheel"];
|
||||
extraGroups = [ "wheel" ];
|
||||
};
|
||||
|
||||
nix.settings = {
|
||||
trusted-users = ["root" "youwen"];
|
||||
experimental-features = ["nix-command" "flakes"];
|
||||
trusted-users = [
|
||||
"root"
|
||||
"youwen"
|
||||
];
|
||||
experimental-features = [
|
||||
"nix-command"
|
||||
"flakes"
|
||||
];
|
||||
};
|
||||
|
||||
services.udev.extraRules = ''
|
||||
|
@ -128,7 +141,7 @@
|
|||
enable = true;
|
||||
keyboards = {
|
||||
default = {
|
||||
ids = ["*"];
|
||||
ids = [ "*" ];
|
||||
settings = {
|
||||
main = {
|
||||
capslock = "esc";
|
||||
|
|
|
@ -2,7 +2,8 @@
|
|||
inputs,
|
||||
system,
|
||||
...
|
||||
}: {
|
||||
}:
|
||||
{
|
||||
imports = with inputs; [
|
||||
./configuration.nix
|
||||
../../modules/linux/audio
|
||||
|
|
|
@ -7,15 +7,19 @@
|
|||
pkgs,
|
||||
modulesPath,
|
||||
...
|
||||
}: {
|
||||
}:
|
||||
{
|
||||
imports = [
|
||||
(modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = ["usb_storage" "sdhci_pci"];
|
||||
boot.initrd.kernelModules = [];
|
||||
boot.kernelModules = [];
|
||||
boot.extraModulePackages = [];
|
||||
boot.initrd.availableKernelModules = [
|
||||
"usb_storage"
|
||||
"sdhci_pci"
|
||||
];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" = {
|
||||
device = "/dev/mapper/crypted";
|
||||
|
@ -27,10 +31,13 @@
|
|||
fileSystems."/boot" = {
|
||||
device = "/dev/disk/by-uuid/852F-07F1";
|
||||
fsType = "vfat";
|
||||
options = ["fmask=0022" "dmask=0022"];
|
||||
options = [
|
||||
"fmask=0022"
|
||||
"dmask=0022"
|
||||
];
|
||||
};
|
||||
|
||||
swapDevices = [];
|
||||
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
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
{pkgs, ...}: {
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
home.file.".config/neofetch/config.conf".source = ./neofetch-asahi.conf;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue