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 = [
|
imports = [
|
||||||
|
./android.nix
|
||||||
./firmware.nix
|
./firmware.nix
|
||||||
./nvidia.nix
|
./nvidia.nix
|
||||||
./scheduler.nix
|
./scheduler.nix
|
||||||
|
|||||||
@@ -10,6 +10,13 @@ in
|
|||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
fzf # fuzzy finder
|
||||||
|
bat # fancy cat
|
||||||
|
fd # nicer find
|
||||||
|
duf # nicer du
|
||||||
|
eza # nicer ls
|
||||||
|
ripgrep # faster grep
|
||||||
|
gdu
|
||||||
wget
|
wget
|
||||||
pciutils
|
pciutils
|
||||||
rippkgs # faster nixpkgs search, init with `rippkgs-index nixpkgs && mv rippkgs-index.sqlite ~/.local/share/`;
|
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
|
inputs.agenix.packages."x86_64-linux".default
|
||||||
fastfetch
|
fastfetch
|
||||||
pdfgrep
|
pdfgrep
|
||||||
ncdu
|
|
||||||
glxinfo
|
glxinfo
|
||||||
vulkan-tools
|
vulkan-tools
|
||||||
ffmpeg
|
ffmpeg
|
||||||
@@ -40,19 +46,15 @@ in
|
|||||||
screen
|
screen
|
||||||
tmux
|
tmux
|
||||||
fatrace # monitor filesystem events
|
fatrace # monitor filesystem events
|
||||||
ripgrep
|
|
||||||
nh
|
nh
|
||||||
nix-output-monitor # nom
|
nix-output-monitor # nom
|
||||||
nvd # nix diff, example: nvd diff /nix/var/nix/profiles/system-389-link /nix/var/nix/profiles/system-390-link
|
nvd # nix diff, example: nvd diff /nix/var/nix/profiles/system-389-link /nix/var/nix/profiles/system-390-link
|
||||||
compsize
|
compsize
|
||||||
trashy # move files to trash
|
trashy # move files to trash
|
||||||
fzf # fuzzy finder
|
|
||||||
bat # fancy cat
|
|
||||||
shell-gpt
|
shell-gpt
|
||||||
libheif #convert heic to jpg with `heif-convert something.heic something.jpg`
|
libheif #convert heic to jpg with `heif-convert something.heic something.jpg`
|
||||||
tree
|
tree
|
||||||
kop-newproject # creates a shell.nix and .envrc
|
kop-newproject # creates a shell.nix and .envrc
|
||||||
fd # nicer find
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
{ pkgs, config, ...}:
|
{ pkgs, config, ...}:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
./packages-list.nix
|
||||||
./backup.nix
|
./backup.nix
|
||||||
./btrfs.nix
|
./btrfs.nix
|
||||||
./cli-tools.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;
|
||||||
|
}
|
||||||
@@ -38,6 +38,7 @@
|
|||||||
#};
|
#};
|
||||||
misc = { docker.enable = true; };
|
misc = { docker.enable = true; };
|
||||||
hardware = {
|
hardware = {
|
||||||
|
android.enable = true;
|
||||||
nvidia.enable = true;
|
nvidia.enable = true;
|
||||||
firmware.enable = true;
|
firmware.enable = true;
|
||||||
ssd.enable = true;
|
ssd.enable = true;
|
||||||
@@ -45,7 +46,6 @@
|
|||||||
tpm.enable = true;
|
tpm.enable = true;
|
||||||
tablet.enable = true;
|
tablet.enable = true;
|
||||||
};
|
};
|
||||||
services = { caldav.enable = true; };
|
|
||||||
graphical = {
|
graphical = {
|
||||||
audio.enable = true;
|
audio.enable = true;
|
||||||
code = {
|
code = {
|
||||||
|
|||||||
@@ -161,6 +161,11 @@
|
|||||||
tags = [ "security" ];
|
tags = [ "security" ];
|
||||||
url = "https://cvefeed.io/rssfeed/severity/high.xml";
|
url = "https://cvefeed.io/rssfeed/severity/high.xml";
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
title = "Terminal Trove";
|
||||||
|
tags = [ "terminal" "cli" ];
|
||||||
|
url = "https://terminaltrove.com/new.xml";
|
||||||
|
}
|
||||||
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user