hosts/satori: changes to udev rules

Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
2023-07-26 16:42:59 +05:30
parent c33a30be60
commit cfa5a8d1b8
5 changed files with 21 additions and 13 deletions

View File

@@ -27,7 +27,18 @@
# useOSProber = true;
efiSupport = true;
device = "nodev";
splashImage = ./cirno.png;
theme = pkgs.stdenvNoCC.mkDerivation rec {
version = "1.2.0";
name = "minegrub-theme";
src = pkgs.fetchFromGitHub {
owner = "Lxtharia";
repo = "minegrub-theme";
rev = "v${version}";
sha256 = "sha256-n/fJSFrrPPyTBS8/XHaARyCxccRZiqPhhNFq0x8Q2kA=";
};
installPhase = "cp -r . $out";
};
#splashImage = ./cirno.png;
splashMode = "stretch";
configurationName = "nixbruh";
};

View File

@@ -13,5 +13,5 @@
./wayland.nix
./nix.nix
];
system.stateVersion = "21.05";
system.stateVersion = "23.05";
}

View File

@@ -14,14 +14,12 @@
ripgrep
kbd
gcc
virtmanager
rnix-lsp
vulkan-tools
vulkan-headers
jq
dconf
stlink
stlink-gui
inputs.nbfc.packages.${pkgs.system}.nbfc
];
programs = {

View File

@@ -1,7 +1,6 @@
{ lib, config, pkgs, ... }:
let
udev-cypher = pkgs.stdenv.mkDerivation {
udev-cypherock = pkgs.stdenvNoCC.mkDerivation {
name = "udev-cypher";
dontBuild = true;
@@ -9,15 +8,12 @@ let
dontUnpack = true;
installPhase = ''
mkdir -p $out/lib/udev/rules.d
touch $out/lib/udev/rules.d/21-cypherock.rules
mkdir -p $out/lib/udev/rules.d
touch $out/lib/udev/rules.d/21-cypherock.rules
cat << 'EOF' >> $out/lib/udev/rules.d/21-cypherock.rules
SUBSYSTEM=="input", GROUP="input", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="3503", ATTRS{idProduct}=="0103", MODE="666", GROUP="plugdev"
KERNEL=="hidraw*", ATTRS{idVendor}=="3503", ATTRS{idProduct}=="0103", MODE="0666", GROUP="plugdev"
0483:374f
SUBSYSTEM=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="374f", MODE="666", GROUP="plugdev"
KERNEL=="hidraw*", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="374f", MODE="0666", GROUP="plugdev"
EOF
'';
};
@@ -32,7 +28,7 @@ in
ratbagd.enable = true;
btrfs.autoScrub.enable = true;
udev = {
packages = [ pkgs.stlink udev-cypher ];
packages = [ pkgs.stlink udev-cypherock ];
};
gvfs.enable = true;
tlp = {