android and other stuff
This commit is contained in:
14
modules/hardware/android.nix
Normal file
14
modules/hardware/android.nix
Normal file
@@ -0,0 +1,14 @@
|
||||
{ config, pkgs, lib, ... }:
|
||||
let cfg = config.custom.hardware.android;
|
||||
in {
|
||||
options.custom.hardware.android = {
|
||||
enable = lib.mkEnableOption "Enables android phone support";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
programs.adb = {
|
||||
enable = true;
|
||||
};
|
||||
users.users.${config.mainUser.name}.extraGroups = [ "adbusers" ];
|
||||
};
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
{ pkgs, config, ...}:
|
||||
{
|
||||
{ pkgs, config, ... }: {
|
||||
imports = [
|
||||
./android.nix
|
||||
./firmware.nix
|
||||
./nvidia.nix
|
||||
./scheduler.nix
|
||||
|
||||
@@ -10,6 +10,13 @@ in
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
environment.systemPackages = with pkgs; [
|
||||
fzf # fuzzy finder
|
||||
bat # fancy cat
|
||||
fd # nicer find
|
||||
duf # nicer du
|
||||
eza # nicer ls
|
||||
ripgrep # faster grep
|
||||
gdu
|
||||
wget
|
||||
pciutils
|
||||
rippkgs # faster nixpkgs search, init with `rippkgs-index nixpkgs && mv rippkgs-index.sqlite ~/.local/share/`;
|
||||
@@ -23,7 +30,6 @@ in
|
||||
inputs.agenix.packages."x86_64-linux".default
|
||||
fastfetch
|
||||
pdfgrep
|
||||
ncdu
|
||||
glxinfo
|
||||
vulkan-tools
|
||||
ffmpeg
|
||||
@@ -40,19 +46,15 @@ in
|
||||
screen
|
||||
tmux
|
||||
fatrace # monitor filesystem events
|
||||
ripgrep
|
||||
nh
|
||||
nix-output-monitor # nom
|
||||
nvd # nix diff, example: nvd diff /nix/var/nix/profiles/system-389-link /nix/var/nix/profiles/system-390-link
|
||||
compsize
|
||||
trashy # move files to trash
|
||||
fzf # fuzzy finder
|
||||
bat # fancy cat
|
||||
shell-gpt
|
||||
libheif #convert heic to jpg with `heif-convert something.heic something.jpg`
|
||||
tree
|
||||
kop-newproject # creates a shell.nix and .envrc
|
||||
fd # nicer find
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
{ pkgs, config, ...}:
|
||||
{
|
||||
imports = [
|
||||
./packages-list.nix
|
||||
./backup.nix
|
||||
./btrfs.nix
|
||||
./cli-tools.nix
|
||||
|
||||
8
modules/misc/packages-list.nix
Normal file
8
modules/misc/packages-list.nix
Normal file
@@ -0,0 +1,8 @@
|
||||
{ config, pkgs, ... }: {
|
||||
environment.etc."current-system-packages".text = let
|
||||
packages = builtins.map (p: "${p.name}") config.environment.systemPackages;
|
||||
sortedUnique =
|
||||
builtins.sort builtins.lessThan (pkgs.lib.lists.unique packages);
|
||||
formatted = builtins.concatStringsSep "\n" sortedUnique;
|
||||
in formatted;
|
||||
}
|
||||
Reference in New Issue
Block a user