Compare commits

...

8 Commits

10 changed files with 86 additions and 24 deletions

View File

@ -35,15 +35,21 @@
ncdu# TUI disk usage
btop# resource monitor
pfetch# system info
nerdfetch# fetch using nerdfonts
pciutils# pci bus info + conns. to them
coreutils# basic gnu utils
du-dust# see how disk space is being used
usbutils
ntfs3g # NTFS fs
pm-utils # power management https://pm-utils.freedesktop.org/wiki/
wireshark
mosh# mobile shell
# curl
ripgrep# better grep
wget# downloader
eza# ls replacement
fd# tree style ls
findutils# find gnu.org/software/findutils/
@ -52,7 +58,7 @@
jq# JSON pretty printer and manipulator
fx# Terminal JSON viewer & processor ~> fx.wtf
tree# cli dir tree viewer
du-dust# see how disk space is being used
pre-commit# git hooks
koji# conventional commits ~> https://github.com/its-danny/koji
@ -62,6 +68,8 @@
unrar# rar extraction
zstd# zstd compression
zip; # zip compression
};
nixpkgs = {

View File

@ -25,6 +25,10 @@ rebuild-post:
rebuild: rebuild-pre
scripts/system-flake-rebuild.sh
# Rebuild for tests config without adding to bootloader
rebuild-test: rebuild-pre
scripts/system-flake-test-rebuild.sh
# Requires sops to be running and you must have reboot after initial rebuild
rebuild-full: rebuild-pre && rebuild-post
scripts/system-flake-rebuild.sh

View File

@ -21,3 +21,4 @@
)
(builtins.readDir path)));
}

View File

@ -0,0 +1,17 @@
{
time.timeZone = "Europe/Paris";
i18n.defaultLocale = "en_GB.UTF-8";
i18n.extraLocaleSettings = {
LC_MESSAGES = "de_DE.UTF-8";
LC_ADDRESS = "de_DE.UTF-8";
LC_IDENTIFICATION = "de_DE.UTF-8";
LC_MEASUREMENT = "de_DE.UTF-8";
LC_MONETARY = "de_DE.UTF-8";
LC_NAME = "de_DE.UTF-8";
LC_NUMERIC = "de_DE.UTF-8";
LC_PAPER = "de_DE.UTF-8";
LC_TELEPHONE = "de_DE.UTF-8";
LC_TIME = "de_DE.UTF-8";
};
}

View File

@ -2,6 +2,6 @@
services.btrfs.autoScrub = {
enable = true;
interval = "monthly";
fileSystems = = [ "/" ];
fileSystems = [ "/" ];
};
}

View File

@ -1,12 +0,0 @@
#https://nixos.wiki/wiki/IOS
{ pkgs }:
{
services.usbmuxd = {
enable = true;
#package = pkgs.usbmuxd2;
};
environment.systemPackages = with pkgs; [
libimobiledevice
#ifuse # optional, to mount using 'ifuse'
];
}

View File

@ -0,0 +1,48 @@
# ...
# imports = [ /path/to/iphone.nix ];
# iphone.enable = true;
# iphone.user = "yourusername";
# ...
# Then rebuild system. Attach iPhone via cable, open terminal and run command `iphone`
# It will fail, but there will occure a dialog on your iPhone to "trust this computer"
# Press OK there and run `iphone` again. If it succeeds it will open a freshly mounted folder
{ config, pkgs, lib, ... }:
let
cfg = config.iphone;
in {
options.iphone = {
enable = lib.mkOption { default = false; };
directory = lib.mkOption { default = "/run/media/iPhone"; };
user = lib.mkOption { };
};
config = lib.mkIf cfg.enable {
environment.systemPackages = [
pkgs.libimobiledevice
pkgs.usbmuxd
(pkgs.writeScriptBin "iphone" ''
sudo systemctl restart iphone \
&& ${pkgs.gnome2.libgnome}/bin/gnome-open ${cfg.directory}
'')
];
services.usbmuxd = {
enable = true;
user = cfg.user;
#https://nixos.wiki/wiki/IOS
#package = pkgs.usbmuxd2
};
systemd.services.iphone = {
preStart = "mkdir -p ${cfg.directory}; chown ${cfg.user} ${cfg.directory}";
script = ''
${pkgs.libimobiledevice}/bin/idevicepair pair \
&& exec ${pkgs.ifuse}/bin/ifuse ${cfg.directory}
'';
serviceConfig = {
PermissionsStartOnly = true;
User = cfg.user;
Type = "forking";
};
};
};
}

View File

@ -15,10 +15,10 @@
# no need to redefine it in your config for now)
# media-session.enable = true;
};
environment.systemPackages = builtins.attrValues {
inherit (pkgs)
pamixer# pulseaudio sound mixer
pavucontrol; # pulseaudio volume control
};
#environment.systemPackages = builtins.attrValues {
# inherit (pkgs)
# pamixer# pulseaudio sound mixer
# pavucontrol; # pulseaudio volume control
#};
}

View File

@ -1,4 +0,0 @@
{ configLib, ... }:
{
imports = (configLib.scanPaths ./.);
}