From 3762b7274569c3ce5b9c28536a7489a69bad91ae Mon Sep 17 00:00:00 2001 From: Anish L Date: Mon, 27 Dec 2021 18:27:49 +1000 Subject: [PATCH] some stuff idk --- flake.nix | 2 +- hosts/curve/configuration.nix | 1 + hosts/curve/default.nix | 3 ++- profiles/core/default.nix | 3 +++ users/profiles/desktop/default.nix | 2 ++ 5 files changed, 9 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 37a78fa1..a7f17d9b 100644 --- a/flake.nix +++ b/flake.nix @@ -120,7 +120,7 @@ base = [ core users.root nvim users.anish ]; # TODO make anish non gui sealight = [ base ]; # matrix rsshub backup wireguard website mossnet = [ base ]; # shaarli wallabag nextcloud taskwarrior headphones - graphical = [ base users.profiles.firefox users.profiles.desktop bluetooth music sync]; + graphical = [ base users.profiles.firefox users.profiles.desktop bluetooth music sync ]; curve = [ graphical ]; }; }; diff --git a/hosts/curve/configuration.nix b/hosts/curve/configuration.nix index 728b464c..f698eef0 100644 --- a/hosts/curve/configuration.nix +++ b/hosts/curve/configuration.nix @@ -35,6 +35,7 @@ networking.interfaces.wlp3s0.useDHCP = true; networking.wireless.enable = true; networking.wireless.interfaces = ["wlp3s0"]; + networking.wireless.userControlled.enable = true; # Select internationalisation properties. i18n.defaultLocale = "en_US.UTF-8"; diff --git a/hosts/curve/default.nix b/hosts/curve/default.nix index 89f72355..c4a23802 100644 --- a/hosts/curve/default.nix +++ b/hosts/curve/default.nix @@ -20,6 +20,7 @@ # enable adb # TODO move this (it's for KaiOS WebIDE devShell?) programs.adb.enable = true; + #virtualisation.docker.enable = true; services.udev.extraRules = '' # Qualcomm EDL SUBSYSTEMS=="usb", ATTRS{idVendor}=="05c6", ATTRS{idProduct}=="9008", MODE="0666", GROUP="plugdev" @@ -28,7 +29,7 @@ SUBSYSTEMS=="usb", ATTRS{idVendor}=="05c6", ATTRS{idProduct}=="9006", MODE="0666", GROUP="plugdev" ''; boot.blacklistedKernelModules = [ "qcserial" ]; - users.users.anish.extraGroups = ["adbusers" "plugdev"]; + users.users.anish.extraGroups = ["adbusers" "wheel" "plugdev"]; # enable wireguard tunnel # privKey = "/run/secrets/curve-wg"; -> local config diff --git a/profiles/core/default.nix b/profiles/core/default.nix index 7e1a715b..0f581f10 100644 --- a/profiles/core/default.nix +++ b/profiles/core/default.nix @@ -23,6 +23,7 @@ in tree moreutils nix-index + cached-nix-shell nmap ripgrep skim @@ -117,6 +118,7 @@ in srch = "ns nixos"; orch = "ns override"; nrb = ifSudo "sudo nixos-rebuild switch --flake '/etc/nixos/#curve'"; + nedit = "vim /etc/nixos/"; mn = '' manix "" | grep '^# ' | sed 's/^# \(.*\) (.*/\1/;s/ (.*//;s/^# //' | sk --preview="manix '{}'" | xargs manix ''; @@ -126,6 +128,7 @@ in # sudo s = ifSudo "sudo -E "; + pls = ifSudo "s"; si = ifSudo "sudo -i"; se = ifSudo "sudoedit"; diff --git a/users/profiles/desktop/default.nix b/users/profiles/desktop/default.nix index 0685c8a7..672e4a65 100644 --- a/users/profiles/desktop/default.nix +++ b/users/profiles/desktop/default.nix @@ -38,6 +38,8 @@ # TODO move somewhere meaningful tdesktop # TODO get rid of this once bridged on sealight ripcord + feh + mupdf sublime-music calibre nheko