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

@@ -1,6 +1,9 @@
{ inputs, config, pkgs, ... }: { inputs, config, pkgs, ... }:
{ {
environment.sessionVariables = {
EDITOR = "nvim";
};
programs.neovim = { programs.neovim = {
enable = true; enable = true;
package = pkgs.neovim-nightly; package = pkgs.neovim-nightly;

View File

@@ -27,7 +27,18 @@
# useOSProber = true; # useOSProber = true;
efiSupport = true; efiSupport = true;
device = "nodev"; 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"; splashMode = "stretch";
configurationName = "nixbruh"; configurationName = "nixbruh";
}; };

View File

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

View File

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

View File

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