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

@ -4,8 +4,8 @@
{ 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" ];
@ -13,55 +13,55 @@
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [];
fileSystems."/" =
{ device = "rootfs";
fileSystems."/" = {
device = "rootfs";
fsType = "tmpfs";
options = [ "defaults" "size=4G" "mode=755" ];
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/E8E8-E570";
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/E8E8-E570";
fsType = "vfat";
};
fileSystems."/mnt/butter" =
{ device = "/dev/disk/by-uuid/8f0ba28e-5dff-4a4e-8db0-aa72cc90cb5d";
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";
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";
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";
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";
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";
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";
fileSystems."/mnt/hdd" = {
device = "/dev/disk/by-uuid/d5e3cfe5-c73a-4695-b81b-fc0215d4cefe";
fsType = "ext4";
};

View file

@ -1,8 +1,7 @@
{ config, pkgs, ...}: {
{ config, enableGUI, lib, pkgs, ... }: {
environment.systemPackages = with pkgs; [
efibootmgr
git
gparted
htop
libarchive
lf
@ -11,11 +10,13 @@
neovim
rsync
wget
] ++ lib.optionals enableGUI [
gparted
gnome3.nautilus
];
environment.variables.EDITOR = "nvim";
}
// (if !enableGUI then {} else {
hardware.opengl.extraPackages = with pkgs; [
vaapiIntel
vaapiVdpau
@ -29,5 +30,4 @@
programs.steam.enable = true;
services.dbus.packages = [ pkgs.gnome3.dconf pkgs.gcr ];
services.gnome.sushi.enable = true;
# services.ipfs.enable = true;
}
})

View file

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

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: {
transcrypt = super.transcrypt.overrideAttrs(o: rec {
transcrypt = super.transcrypt.overrideAttrs (old: rec {
version = "2.1.0";
patches = [ ./patches/transcrypt.patch ];

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