Compare commits
8 Commits
c0117771a0
...
dd35e66698
Author | SHA1 | Date |
---|---|---|
madmin | dd35e66698 | |
madmin | b746f5ad37 | |
madmin | 4cde826c0d | |
madmin | 7a18782388 | |
madmin | a96904a028 | |
madmin | ebcbd51907 | |
madmin | f0a40fe87a | |
madmin | 178b0ece78 |
|
@ -35,9 +35,15 @@
|
|||
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
|
||||
|
@ -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 = {
|
||||
|
|
4
justfile
4
justfile
|
@ -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
|
||||
|
|
|
@ -21,3 +21,4 @@
|
|||
)
|
||||
(builtins.readDir path)));
|
||||
}
|
||||
|
||||
|
|
|
@ -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";
|
||||
};
|
||||
}
|
|
@ -2,6 +2,6 @@
|
|||
services.btrfs.autoScrub = {
|
||||
enable = true;
|
||||
interval = "monthly";
|
||||
fileSystems = = [ "/" ];
|
||||
fileSystems = [ "/" ];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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'
|
||||
];
|
||||
}
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -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
|
||||
#};
|
||||
}
|
||||
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
{ configLib, ... }:
|
||||
{
|
||||
imports = (configLib.scanPaths ./.);
|
||||
}
|
Loading…
Reference in New Issue