i3 config already set in desktop/i3.nix; updated package sets; fixed faulty udev line.

This commit is contained in:
Kevin Baensch 2019-05-08 19:32:00 +02:00
parent 6c744f089e
commit dc0c983517
3 changed files with 11 additions and 10 deletions

View file

@ -4,7 +4,6 @@ with lib;
{
environment.etc = mkIf (elem "etcfiles" config.machine.conffiles) {
"i3/config".source = ./etc/i3/config;
"i3/py3status".source = ./etc/i3/py3status;
"sway/config".source = mkDefault ./etc/sway/config;
"mpv/input.conf".source = ./etc/mpv/input.conf;

View file

@ -6,7 +6,8 @@
with lib;
let
optPkgs = package: pkgstring: optionals (elem pkgstring config.machine.pkgs) package;
cfg = config.machine;
optPkgs = package: pkgstring: optionals (elem pkgstring cfg.pkgs) package;
gitpkgs = import /nixpkgs/default.nix {};
# Programms I'm likely to want on every machine and/or may execute as root
@ -20,17 +21,20 @@ let
git
gnupg
gptfdisk
haskellPackages.nix-derivation
home-manager
htop
hwinfo
indent
iptables
jp
lrzip
lsof
lshw
macchanger
mkpasswd
netcat
nix-diff
nix-index
nix-plugins
nix-prefetch-git
@ -109,7 +113,7 @@ let
pkgs.ledger
yaml-mode
company
/* C/C++ */ irony company-irony company-irony-c-headers flycheck-irony clang-format
/* C/C++ */ irony company-irony company-irony-c-headers flycheck-irony clang-format pkgs.clang-tools
/* Haskell */ haskell-mode flycheck-haskell
/* Org */ org org-ref pdf-tools org-bullets org-caldav
/* Rust */ rust-mode flycheck-rust racer
@ -214,10 +218,8 @@ let
# flask_sqlalchemy
# flask_testing
# flask_wtf
# flaskbabel
/* temporarily fix python stuff */
py3status pytz tzlocal
]);
# flaskbabel
] ++ optionals (elem "i3" cfg.desktop.wms) [ py3status pytz tzlocal ]);
rustpkgs = with pkgs; [
rustup
@ -270,8 +272,8 @@ in {
++ (optPkgs xpkgs "xpkgs");
services.emacs = {
enable = (elem "emacs" config.machine.pkgs);
install = (elem "emacs" config.machine.pkgs);
enable = (elem "emacs" cfg.pkgs);
install = (elem "emacs" cfg.pkgs);
package = emacs;
};
}

View file

@ -4,7 +4,7 @@ with lib;
mkIf (elem "udev" config.machine.services) {
services.udev.extraRules = ''
Valve USB devices
# Valve USB devices
SUBSYSTEM=="usb", ATTRS{idVendor}=="28de", TAG+="uaccess", TAG+="udev-acl"
# Steam Controller udev write access