bump inputs, add nixfs, add lib overlay, add udev rule for thinkvision
This commit is contained in:
parent
f64c725c86
commit
0f58525994
@ -33,6 +33,7 @@
|
|||||||
etc.nixpkgs.source = pkgs.path;
|
etc.nixpkgs.source = pkgs.path;
|
||||||
systemPackages = with pkgs; [
|
systemPackages = with pkgs; [
|
||||||
asciinema
|
asciinema
|
||||||
|
bcc
|
||||||
bind binutils-unwrapped bmon
|
bind binutils-unwrapped bmon
|
||||||
cmatrix # More useful than you might think
|
cmatrix # More useful than you might think
|
||||||
cscope
|
cscope
|
||||||
@ -178,10 +179,17 @@
|
|||||||
qemuGuest.enable = true;
|
qemuGuest.enable = true;
|
||||||
udev = {
|
udev = {
|
||||||
# TODO: check if still needed
|
# TODO: check if still needed
|
||||||
extraRules = ''
|
extraRules = pkgs.lib.indent ''
|
||||||
SUBSYSTEM=="virtio-ports", ATTR{name}=="org.qemu.guest_agent.0", TAG+="systemd" ENV{SYSTEMD_WANTS}="qemu-guest-agent.service"
|
SUBSYSTEM=="virtio-ports", ATTR{name}=="org.qemu.guest_agent.0", TAG+="systemd" ENV{SYSTEMD_WANTS}="qemu-guest-agent.service"
|
||||||
|
ACTION=="bind", SUBSYSTEM=="usb", ATTRS{idVendor}=="2d1f", ATTRS{idProduct}=="524c", RUN+="${pkgs.writeScript "thinkvision" (pkgs.lib.indent ''
|
||||||
|
#!${pkgs.bash}/bin/bash
|
||||||
|
export DISPLAY=:0
|
||||||
|
export XAUTHORITY=/var/run/lightdm/root/:0
|
||||||
|
xsetwacom list devices | grep -oP 'id:\s+\K[0-9]+' | xargs -I{} xsetwacom --set {} MapToOutput HEAD-1
|
||||||
|
'')}"
|
||||||
'';
|
'';
|
||||||
packages = [ (pkgs.callPackage (import ./packages/xr-hardware/default.nix) {}) ];
|
packages = [ (pkgs.callPackage (import ./packages/xr-hardware/default.nix) {}) ];
|
||||||
|
path = with pkgs; [ xf86_input_wacom findutils ];
|
||||||
};
|
};
|
||||||
zfs.autoScrub.enable = true;
|
zfs.autoScrub.enable = true;
|
||||||
};
|
};
|
||||||
|
|||||||
@ -76,9 +76,11 @@
|
|||||||
xserver = {
|
xserver = {
|
||||||
# defaultDepth = 30;
|
# defaultDepth = 30;
|
||||||
displayManager.defaultSession = "none+dwm";
|
displayManager.defaultSession = "none+dwm";
|
||||||
|
# desktopManager.plasma5.enable = true;
|
||||||
dpi = 100;
|
dpi = 100;
|
||||||
enable = true;
|
enable = true;
|
||||||
videoDrivers = [ "nvidia" ];
|
videoDrivers = [ "nvidia" ];
|
||||||
|
wacom.enable = true;
|
||||||
windowManager.dwm.enable = true;
|
windowManager.dwm.enable = true;
|
||||||
};
|
};
|
||||||
pipewire = {
|
pipewire = {
|
||||||
|
|||||||
30
flake.lock
generated
30
flake.lock
generated
@ -7,11 +7,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1686604884,
|
"lastModified": 1686922395,
|
||||||
"narHash": "sha256-AkfxSmGGvNMtyXt1us9Lm8cMeIwqxpkSTeNeBQ00SL8=",
|
"narHash": "sha256-ysevinohPxdKp0RXyhDRsz1/vh1eXazg4AWp0n5X/U4=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "b01eb1eb3b579c74e6a4189ef33cc3fa24c40613",
|
"rev": "9ba7b3990eb1f4782ea3f5fe7ac4f3c88dd7a32c",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -62,13 +62,30 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nixfs": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1687349512,
|
||||||
|
"narHash": "sha256-uB7xb/c7Z2FjRJQTpHL3/tLGLrXUCUDwf12u32TjQPg=",
|
||||||
|
"path": "/home/illustris/src/nixfs",
|
||||||
|
"type": "path"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"path": "/home/illustris/src/nixfs",
|
||||||
|
"type": "path"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1686501370,
|
"lastModified": 1686869522,
|
||||||
"narHash": "sha256-G0WuM9fqTPRc2URKP9Lgi5nhZMqsfHGrdEbrLvAPJcg=",
|
"narHash": "sha256-tbJ9B8WLCTnVP/LwESRlg0dII6Zyg2LmUU/mB9Lu98E=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "75a5ebf473cd60148ba9aec0d219f72e5cf52519",
|
"rev": "7c67f006ea0e7d0265f16d7df07cc076fdffd91f",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -82,6 +99,7 @@
|
|||||||
"inputs": {
|
"inputs": {
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
"illustris": "illustris",
|
"illustris": "illustris",
|
||||||
|
"nixfs": "nixfs",
|
||||||
"nixpkgs": "nixpkgs"
|
"nixpkgs": "nixpkgs"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
15
flake.nix
15
flake.nix
@ -11,9 +11,13 @@
|
|||||||
url = "github:illustris/flake";
|
url = "github:illustris/flake";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
nixfs = {
|
||||||
|
url = "path:/home/illustris/src/nixfs";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs, home-manager, illustris, ... }: {
|
outputs = { self, nixpkgs, home-manager, illustris, nixfs, ... }: {
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
desktop = nixpkgs.lib.nixosSystem {
|
desktop = nixpkgs.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
@ -22,7 +26,14 @@
|
|||||||
home-manager.nixosModule
|
home-manager.nixosModule
|
||||||
{nix.registry.np.flake = nixpkgs;}
|
{nix.registry.np.flake = nixpkgs;}
|
||||||
{environment.etc.flake.source = self;}
|
{environment.etc.flake.source = self;}
|
||||||
{nixpkgs.overlays = [ illustris.overlays.default ];}
|
{nixpkgs.overlays = [
|
||||||
|
illustris.overlays.default
|
||||||
|
(self: super: {
|
||||||
|
lib = super.lib // illustris.lib;
|
||||||
|
})
|
||||||
|
];}
|
||||||
|
nixfs.nixosModules.nixfs
|
||||||
|
{services.nixfs.enable = true;}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user