formatting goes brrr

This commit is contained in:
LavaDesu 2021-07-15 19:57:49 +07:00
parent 4e8e8f0fed
commit 0f37f09199
Signed by: cilly
GPG key ID: 6500251E087653C9
17 changed files with 110 additions and 110 deletions

View file

@ -24,24 +24,24 @@
(builtins.attrNames (builtins.readDir root)); # Reads root path
modules =
let
getName = path: lib.removeSuffix ".nix" ( # Strip extension
lib.last ( # Gets the last part (filename)
lib.splitString "/" ( # Splits the path into components
builtins.toString path # Converts the path into a string
let
getName = path: lib.removeSuffix ".nix" ( # Strip extension
lib.last ( # Gets the last part (filename)
lib.splitString "/" ( # Splits the path into components
builtins.toString path # Converts the path into a string
)
)
)
);
genModulePaths = basePath: builtins.listToAttrs (
builtins.map (path: {
name = getName path;
value = path;
}) (getPaths basePath)
);
in {
user = genModulePaths ./modules/user;
system = genModulePaths ./modules/system;
};
);
genModulePaths = basePath: builtins.listToAttrs (
builtins.map (path: {
name = getName path;
value = path;
}) (getPaths basePath)
);
in {
user = genModulePaths ./modules/user;
system = genModulePaths ./modules/system;
};
customPackages = pkgs:
let

View file

@ -3,9 +3,9 @@
enableDefaultFonts = true;
fontconfig = {
defaultFonts = {
serif = ["NotoSerif"];
sansSerif = ["NotoSans"];
monospace = ["CascadiaCode"];
serif = [ "NotoSerif" ];
sansSerif = [ "NotoSans" ];
monospace = [ "CascadiaCode" ];
};
};
fonts = with pkgs; [

View file

@ -4,66 +4,66 @@
{ config, lib, pkgs, modulesPath, ... }:
{
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "ehci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" "sdhci_pci" ];
boot.initrd.kernelModules = [ ];
boot.initrd.kernelModules = [];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
boot.extraModulePackages = [];
fileSystems."/" =
{ device = "rootfs";
fsType = "tmpfs";
options = [ "defaults" "size=4G" "mode=755" ];
};
fileSystems."/" = {
device = "rootfs";
fsType = "tmpfs";
options = [ "defaults" "size=4G" "mode=755" ];
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/E8E8-E570";
fsType = "vfat";
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/E8E8-E570";
fsType = "vfat";
};
fileSystems."/mnt/butter" =
{ device = "/dev/disk/by-uuid/8f0ba28e-5dff-4a4e-8db0-aa72cc90cb5d";
fsType = "btrfs";
options = [ "autodefrag" "compress=zstd:3" "nossd" "nossd_spread" "relatime" "subvolid=5" ];
};
fileSystems."/mnt/butter" = {
device = "/dev/disk/by-uuid/8f0ba28e-5dff-4a4e-8db0-aa72cc90cb5d";
fsType = "btrfs";
options = [ "autodefrag" "compress=zstd:3" "nossd" "nossd_spread" "relatime" "subvolid=5" ];
};
fileSystems."/nix" =
{ device = "/dev/disk/by-uuid/8f0ba28e-5dff-4a4e-8db0-aa72cc90cb5d";
fsType = "btrfs";
options = [ "autodefrag" "compress=zstd:3" "nossd" "nossd_spread" "relatime" "subvolid=258" ];
};
fileSystems."/nix" = {
device = "/dev/disk/by-uuid/8f0ba28e-5dff-4a4e-8db0-aa72cc90cb5d";
fsType = "btrfs";
options = [ "autodefrag" "compress=zstd:3" "nossd" "nossd_spread" "relatime" "subvolid=258" ];
};
fileSystems."/home" =
{ device = "/dev/disk/by-uuid/8f0ba28e-5dff-4a4e-8db0-aa72cc90cb5d";
fsType = "btrfs";
options = [ "autodefrag" "compress=zstd:3" "nossd" "nossd_spread" "relatime" "subvolid=260" ];
};
fileSystems."/home" = {
device = "/dev/disk/by-uuid/8f0ba28e-5dff-4a4e-8db0-aa72cc90cb5d";
fsType = "btrfs";
options = [ "autodefrag" "compress=zstd:3" "nossd" "nossd_spread" "relatime" "subvolid=260" ];
};
fileSystems."/home/.snapshots" =
{ device = "/dev/disk/by-uuid/8f0ba28e-5dff-4a4e-8db0-aa72cc90cb5d";
fsType = "btrfs";
options = [ "autodefrag" "compress=zstd:3" "nossd" "nossd_spread" "relatime" "subvolid=319" ];
};
fileSystems."/home/.snapshots" = {
device = "/dev/disk/by-uuid/8f0ba28e-5dff-4a4e-8db0-aa72cc90cb5d";
fsType = "btrfs";
options = [ "autodefrag" "compress=zstd:3" "nossd" "nossd_spread" "relatime" "subvolid=319" ];
};
fileSystems."/root" =
{ device = "/dev/disk/by-uuid/8f0ba28e-5dff-4a4e-8db0-aa72cc90cb5d";
fsType = "btrfs";
options = [ "autodefrag" "compress=zstd:3" "nossd" "nossd_spread" "relatime" "subvolid=261" ];
};
fileSystems."/root" = {
device = "/dev/disk/by-uuid/8f0ba28e-5dff-4a4e-8db0-aa72cc90cb5d";
fsType = "btrfs";
options = [ "autodefrag" "compress=zstd:3" "nossd" "nossd_spread" "relatime" "subvolid=261" ];
};
fileSystems."/var" =
{ device = "/dev/disk/by-uuid/8f0ba28e-5dff-4a4e-8db0-aa72cc90cb5d";
fsType = "btrfs";
options = [ "autodefrag" "compress=zstd:3" "nossd" "nossd_spread" "relatime" "subvolid=259" ];
};
fileSystems."/var" = {
device = "/dev/disk/by-uuid/8f0ba28e-5dff-4a4e-8db0-aa72cc90cb5d";
fsType = "btrfs";
options = [ "autodefrag" "compress=zstd:3" "nossd" "nossd_spread" "relatime" "subvolid=259" ];
};
fileSystems."/mnt/hdd" =
{ device = "/dev/disk/by-uuid/d5e3cfe5-c73a-4695-b81b-fc0215d4cefe";
fsType = "ext4";
};
fileSystems."/mnt/hdd" = {
device = "/dev/disk/by-uuid/d5e3cfe5-c73a-4695-b81b-fc0215d4cefe";
fsType = "ext4";
};
swapDevices = [ ];
swapDevices = [];
}

View file

@ -10,7 +10,7 @@
device = "nodev";
};
};
blacklistedKernelModules = ["uvcvideo"];
blacklistedKernelModules = [ "uvcvideo" ];
initrd = {
includeDefaultModules = false;
kernelModules = [ "i915" ];

View file

@ -17,5 +17,5 @@
prefixLength = 24;
}];
networking.defaultGateway = "192.168.100.1";
networking.nameservers = ["192.168.100.11"];
networking.nameservers = [ "192.168.100.11" ];
}

View file

@ -1,8 +1,7 @@
{ config, pkgs, ...}: {
{ config, enableGUI, lib, pkgs, ... }: {
environment.systemPackages = with pkgs; [
efibootmgr
git
gparted
htop
libarchive
lf
@ -11,23 +10,24 @@
neovim
rsync
wget
] ++ lib.optionals enableGUI [
gparted
gnome3.nautilus
];
environment.variables.EDITOR = "nvim";
}
// (if !enableGUI then {} else {
hardware.opengl.extraPackages = with pkgs; [
vaapiIntel
vaapiVdpau
libvdpau-va-gl
intel-ocl
rocm-opencl-icd
rocm-opencl-runtime
vaapiIntel
vaapiVdpau
libvdpau-va-gl
intel-ocl
rocm-opencl-icd
rocm-opencl-runtime
];
programs.light.enable = true;
hardware.opentabletdriver.enable = true;
programs.steam.enable = true;
services.dbus.packages = [ pkgs.gnome3.dconf pkgs.gcr ];
services.gnome.sushi.enable = true;
# services.ipfs.enable = true;
}
})

View file

@ -14,7 +14,7 @@
enable = true;
extraRules = [
{
groups = ["wheel"];
groups = [ "wheel" ];
keepEnv = true;
persist = true;
}

View file

@ -1,9 +1,11 @@
{ config, ... }:
let
genMimes = mimeTypes: builtins.listToAttrs (builtins.map (mimeType: {
name = mimeType;
value = "brave-browser.desktop";
}) mimeTypes);
genMimes = mimeTypes: builtins.listToAttrs (
builtins.map (mimeType: {
name = mimeType;
value = "brave-browser.desktop";
}) mimeTypes
);
mimes = genMimes [
"x-scheme-handler/http"

View file

@ -125,7 +125,7 @@ in {
localVariables = {
KEYTIMEOUT = "1";
#PS1 = "%B%{$fg[red]%}[%{$fg[yellow]%}%n%{$fg[green]%}@%{$fg[blue]%}%M %{$fg[magenta]%}%~%{$fg[red]%}]%{$reset_color%}$%b ";
ZSH_AUTOSUGGEST_STRATEGY = ["completion"];
ZSH_AUTOSUGGEST_STRATEGY = [ "completion" ];
ZSH_AUTOSUGGEST_USE_ASYNC = true;
ZSH_AUTOSUGGEST_BUFFER_MAX_SIZE = 40;
};

View file

@ -1,5 +1,5 @@
self: super: {
mps-youtube = super.mps-youtube.overrideAttrs(old: rec {
mps-youtube = super.mps-youtube.overrideAttrs (old: {
src = super.fetchFromGitHub {
owner = "louisabraham";
repo = "mps-youtube";

View file

@ -1,5 +1,5 @@
self: super: {
picom = super.picom.overrideAttrs(old: {
picom = super.picom.overrideAttrs (old: {
src = super.fetchFromGitHub {
repo = "picom";

View file

@ -1,5 +1,5 @@
self: super: {
transcrypt = super.transcrypt.overrideAttrs(o: rec {
transcrypt = super.transcrypt.overrideAttrs (old: rec {
version = "2.1.0";
patches = [ ./patches/transcrypt.patch ];

View file

@ -1,5 +1,5 @@
self: super: {
winetricks = super.winetricks.overrideAttrs(old: rec {
winetricks = super.winetricks.overrideAttrs (old: rec {
name = "winetricks-20210528-073e2db";
src = super.fetchFromGitHub {
repo = "winetricks";

View file

@ -1,10 +1,10 @@
self: super: {
xorg = super.xorg // {
xinit = super.xorg.xinit.overrideAttrs(o: {
xinit = super.xorg.xinit.overrideAttrs (old: {
# Some info:
# - Make startx use $XAUTHORITY as server auth files instead of .serverauth.$$
# - Make startx respect $XINITRC and $XSERVERRC
patches = o.patches ++ [ ./patches/startx.patch ];
patches = old.patches ++ [ ./patches/startx.patch ];
});
};
}

View file

@ -1,9 +1,8 @@
{
buildLinux,
callPackage,
kernelPatches,
lib,
...
{ buildLinux
, callPackage
, kernelPatches
, lib
, ...
} @ args:
let

View file

@ -1,13 +1,12 @@
{
getPaths,
winePackages,
wineUnstable,
wineStaging,
...
{ getPaths
, winePackages
, wineUnstable
, wineStaging
, ...
}:
# TODO: Use winePackages.callPackage
(wineStaging.overrideDerivation(o: {
patches = (o.patches or []) ++ getPaths ./patches;
(wineStaging.overrideDerivation (old: {
patches = (old.patches or []) ++ getPaths ./patches;
})).override {
wineRelease = "staging";
wineBuild = "wineWow";

View file

@ -57,7 +57,7 @@
GNUPGHOME = "${config.xdg.dataHome}/gnupg";
GTK2_RC_FILES = "${config.xdg.configHome}/gtk-2.0/gtkrc";
LESSHISTFILE = "-";
NODE_REPL_HISTORY="${config.xdg.dataHome}/nodejs/repl_history";
NODE_REPL_HISTORY = "${config.xdg.dataHome}/nodejs/repl_history";
NPM_CONFIG_USERCONFIG = "${config.xdg.configHome}/npm/npmrc";
PUB_CACHE = "${config.xdg.cacheHome}/dart";
WGETRC = "${config.xdg.configHome}/wgetrc";