Skip to content

Instantly share code, notes, and snippets.

@AcouBass
AcouBass / configuration.nix
Last active March 6, 2024 01:11
Nixos GPD Win Max 2 setup
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, inputs, ... }:
{
chaotic.linux_hdr.specialisation. enable = true;
chaotic.mesa-git.enable = true;
# Example model file description for a tablet
#
# The .tablet file must have a name matching the device, usually
# the lowercase version of <vendor>-<model>.tablet. See existing data files
# for guidance, Wacom devices can skip the vendor name.
#
# In most cases, a tablet data file can be autogenerated, see the README
# in the wacom-hid-descriptors repository:
# https://github.com/linuxwacom/wacom-hid-descriptors/
#
/* Copyright 2020 mtei
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;; This is an operating system configuration template
;; for a "desktop" setup with GNOME and Xfce.
(use-modules (gnu) (gnu system nss) (gnu packages))
(use-service-modules desktop)
(use-package-modules mail gnuzilla gnustep certs)
(operating-system
(host-name "GuixLaptop")
(timezone "Europe/London")
@AcouBass
AcouBass / 61-gpd-pocket-3-sensor-local.hwdb
Created January 24, 2022 19:59
GPD Pocket 3 rotation fix for Wayland
sensor:modalias:*
ACCEL_MOUNT_MATRIX=-0, -1, 0; -1, 0, 0; 0, 0, 1
@AcouBass
AcouBass / configuration.nix
Last active December 17, 2021 16:33
NixOS configuration for my laptop
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, lib, ... }:
{
imports =
@-moz-document url-prefix(about:home), url-prefix(about:newtab), url-prefix(about:blank) {
body {
background-color: #171717 !important;
}
}
/* dark blank tab */
u/-moz-document url(about:blank), url(about:newtab) {
#newtab-window, html:not(#ublock0-epicker) {
background: #222 !important;
}
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 418.56
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings: version 415.25
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
Disk /dev/sdc: 31.24 GiB, 33533460480 bytes, 65495040 sectors
Disk model: STORAGE DEVICE
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x2178694e
Device Boot Start End Sectors Size Id Type
/dev/sdc1 16384 262143 245760 120M b W95 FAT32
#!/usr/bin/env bash
# This script requires Ruby, ROTP (Rubygems), totp (https://github.com/hobarrera/totp-cli), pass (http://passwordstore.org) and dmenu (suckless).
shopt -s nullglob globstar
typeit=0
if [[ $1 == "--type" ]]; then
typeit=1
shift
fi
## This is now dynamic, hahahahahahaha.
PASSLIST=(`ls $HOME/.password-store/2fa/`)