android and other stuff

This commit is contained in:
Kopatz
2024-06-22 13:10:30 +02:00
parent 18b5693a1c
commit dadf6bd521
7 changed files with 38 additions and 8 deletions

View 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" ];
};
}

View File

@@ -1,6 +1,6 @@
{ pkgs, config, ...}:
{
{ pkgs, config, ... }: {
imports = [
./android.nix
./firmware.nix
./nvidia.nix
./scheduler.nix

View File

@@ -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
];
};
}

View File

@@ -1,6 +1,7 @@
{ pkgs, config, ...}:
{
imports = [
./packages-list.nix
./backup.nix
./btrfs.nix
./cli-tools.nix

View 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;
}

View File

@@ -38,6 +38,7 @@
#};
misc = { docker.enable = true; };
hardware = {
android.enable = true;
nvidia.enable = true;
firmware.enable = true;
ssd.enable = true;
@@ -45,7 +46,6 @@
tpm.enable = true;
tablet.enable = true;
};
services = { caldav.enable = true; };
graphical = {
audio.enable = true;
code = {

View File

@@ -161,6 +161,11 @@
tags = [ "security" ];
url = "https://cvefeed.io/rssfeed/severity/high.xml";
}
{
title = "Terminal Trove";
tags = [ "terminal" "cli" ];
url = "https://terminaltrove.com/new.xml";
}
];
};