Compare commits

..

10 commits

Author SHA1 Message Date
3982027e22 flake.lock: Update
Some checks failed
/ test (push) Failing after 19m47s
Flake lock file updates:

• Updated input 'disko':
    'github:nix-community/disko/c5140c6079ff690e85eac0b86e254de16a79a4b7' (2025-04-23)
  → 'github:nix-community/disko/ca27b88c88948d96feeee9ed814cbd34f53d0d70' (2025-04-24)
• Updated input 'emacs-overlay':
    'github:nix-community/emacs-overlay/acf94b5dd33ce8e3fb995421cd1a719bb0d9c804' (2025-04-24)
  → 'github:nix-community/emacs-overlay/2e939b25ef18fd3efbd60829fc7f87c8235cdd40' (2025-04-24)
• Updated input 'homeManager':
    'github:nix-community/home-manager/d31710fb2cd536b1966fee2af74e99a0816a61a8' (2025-04-23)
  → 'github:nix-community/home-manager/abfad3d2958c9e6300a883bd443512c55dfeb1be' (2025-04-24)
• Updated input 'lix':
    'git+https://git@git.lix.systems/lix-project/lix?ref=refs/heads/main&rev=7dbdd5bd0cb44b3e0c1bebc91c1f5a4d46d6b702' (2025-04-22)
  → 'git+https://git@git.lix.systems/lix-project/lix?ref=refs/heads/main&rev=c36c83c4c6ceb6166cf4a6867354d7244a0c7984' (2025-04-24)
• Updated input 'nixosHardware':
    'github:NixOS/nixos-hardware/8bf8a2a0822365bd8f44fd1a19d7ed0a1d629d64' (2025-04-23)
  → 'github:NixOS/nixos-hardware/f7bee55a5e551bd8e7b5b82c9bc559bc50d868d1' (2025-04-24)
2025-04-24 16:38:05 +00:00
8cf062885e
Fix ccr/eshell-history function
Some checks failed
/ test (push) Failing after 57m57s
2025-04-24 14:54:55 +02:00
10946e39ae
History completion in eshell
Some checks failed
EVAL x86_64-linux.picard
BUILD x86_64-linux.picard
UPLOAD x86_64-linux.picard
DOWNLOAD x86_64-linux.picard
CACHIX x86_64-linux.picard
ATTIC x86_64-linux.picard
/ test (push) Successful in 7m53s
2025-04-24 14:06:15 +02:00
11efc745e3
Unused 2025-04-24 14:06:07 +02:00
f889c8fdda
Unused (was causing eval error with the new home-manager revision) 2025-04-24 14:05:43 +02:00
79fd28061b
Use sdrangel from an old commit (it's broken) 2025-04-24 14:05:29 +02:00
403029e478
Unused comments 2025-04-24 14:05:20 +02:00
44c45c48a1
Bump inputs 2025-04-24 14:05:13 +02:00
a32c23d474
Useless comment and args
Some checks failed
/ test (push) Failing after 37m55s
2025-04-24 11:55:01 +02:00
652fbe4026
Add moonlight to picard 2025-04-24 11:54:51 +02:00
9 changed files with 63 additions and 46 deletions

44
flake.lock generated
View file

@ -83,11 +83,11 @@
]
},
"locked": {
"lastModified": 1745369821,
"narHash": "sha256-mi6cAjuBztm9gFfpiVo6mAn81cCID6nmDXh5Kmyjwyc=",
"lastModified": 1745502102,
"narHash": "sha256-LqhRwzvIVPEjH0TaPgwzqpyhW6DtCrvz7FnUJDoUZh8=",
"owner": "nix-community",
"repo": "disko",
"rev": "c5140c6079ff690e85eac0b86e254de16a79a4b7",
"rev": "ca27b88c88948d96feeee9ed814cbd34f53d0d70",
"type": "github"
},
"original": {
@ -122,11 +122,11 @@
"nixpkgs-stable": "nixpkgs-stable"
},
"locked": {
"lastModified": 1745400268,
"narHash": "sha256-dNSzXe3GNwoBYUBGBjXTvBaWfBSDFheWyIbEu+g0Et8=",
"lastModified": 1745511950,
"narHash": "sha256-vO7gtC4nVqfTf1ZEg9gksds/Xesvim4qy+8ewF91ufo=",
"owner": "nix-community",
"repo": "emacs-overlay",
"rev": "d8bad40da349c15b37f83159019a5e7f452cecc6",
"rev": "2e939b25ef18fd3efbd60829fc7f87c8235cdd40",
"type": "github"
},
"original": {
@ -387,11 +387,11 @@
]
},
"locked": {
"lastModified": 1745416071,
"narHash": "sha256-L8mEeVZvS1e0XaEDsibClr4MhBzqrxhUDiiAIbDnZGM=",
"lastModified": 1745494811,
"narHash": "sha256-YZCh2o9Ua1n9uCvrvi5pRxtuVNml8X2a03qIFfRKpFs=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "6c132a098e61163fb559db986efe913acd3df4e7",
"rev": "abfad3d2958c9e6300a883bd443512c55dfeb1be",
"type": "github"
},
"original": {
@ -464,11 +464,11 @@
"lix": {
"flake": false,
"locked": {
"lastModified": 1745340344,
"narHash": "sha256-FUhusarVwMBrKmsfLFWj+L67/JT4bO/FILhHqKQLnZs=",
"lastModified": 1745512428,
"narHash": "sha256-Gy2jKtVPEzxfTezBS3lFS3hI8xZ7wtEAw8HSi2w/3Nw=",
"ref": "refs/heads/main",
"rev": "7dbdd5bd0cb44b3e0c1bebc91c1f5a4d46d6b702",
"revCount": 17786,
"rev": "c36c83c4c6ceb6166cf4a6867354d7244a0c7984",
"revCount": 17789,
"type": "git",
"url": "https://git@git.lix.systems/lix-project/lix"
},
@ -569,11 +569,11 @@
},
"nixosHardware": {
"locked": {
"lastModified": 1745392233,
"narHash": "sha256-xmqG4MZArM1JNxPJ33s0MtuBzgnaCO9laARoU3AfP8E=",
"lastModified": 1745503349,
"narHash": "sha256-bUGjvaPVsOfQeTz9/rLTNLDyqbzhl0CQtJJlhFPhIYw=",
"owner": "NixOS",
"repo": "nixos-hardware",
"rev": "8bf8a2a0822365bd8f44fd1a19d7ed0a1d629d64",
"rev": "f7bee55a5e551bd8e7b5b82c9bc559bc50d868d1",
"type": "github"
},
"original": {
@ -711,11 +711,11 @@
},
"nixpkgs_4": {
"locked": {
"lastModified": 1745234285,
"narHash": "sha256-GfpyMzxwkfgRVN0cTGQSkTC0OHhEkv3Jf6Tcjm//qZ0=",
"lastModified": 1745391562,
"narHash": "sha256-sPwcCYuiEopaafePqlG826tBhctuJsLx/mhKKM5Fmjo=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "c11863f1e964833214b767f4a369c6e6a7aba141",
"rev": "8a2f738d9d1f1d986b5a4cd2fd2061a7127237d7",
"type": "github"
},
"original": {
@ -742,11 +742,11 @@
},
"nixpkgs_6": {
"locked": {
"lastModified": 1745234285,
"narHash": "sha256-GfpyMzxwkfgRVN0cTGQSkTC0OHhEkv3Jf6Tcjm//qZ0=",
"lastModified": 1745391562,
"narHash": "sha256-sPwcCYuiEopaafePqlG826tBhctuJsLx/mhKKM5Fmjo=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "c11863f1e964833214b767f4a369c6e6a7aba141",
"rev": "8a2f738d9d1f1d986b5a4cd2fd2061a7127237d7",
"type": "github"
},
"original": {

View file

@ -1,8 +1,4 @@
{ pkgs, ... }:
let
in
# nixpkgs = builtins.getFlake "github:NixOS/nixpkgs/932fc16b263f26803d3960e4400bc13dde84a972";
# chirp = nixpkgs.legacyPackages.${pkgs.system}.chirp;
{
home.packages = [ pkgs.chirp ];
}

View file

@ -690,9 +690,39 @@
(defalias (car alias) (cdr alias)))
ccr/eshell-aliases)
(defun ccr/eshell-get-current-input ()
"Restituisce l'input corrente dell'utente nella riga Eshell."
(when (eq major-mode 'eshell-mode)
(let ((start (save-excursion (eshell-bol) (point)))
(end (point-at-eol)))
(buffer-substring-no-properties start end))))
(defun ccr/eshell-replace-current-input (new-input)
(when (eq major-mode 'eshell-mode)
(let ((inhibit-read-only t))
(eshell-bol)
(delete-region (point) (point-at-eol))
(insert new-input)
(end-of-line))))
(defun ccr/eshell-history ()
(interactive)
(when (eq major-mode 'eshell-mode)
(let* ((current-input (ccr/eshell-get-current-input))
(eshell-history (when (and eshell-history-file-name
(file-readable-p eshell-history-file-name))
(f-read-text eshell-history-file-name)))
(bash-history (when (file-readable-p "~/.bash_history")
(f-read-text "~/.bash_history")))
(history (split-string (concat (or eshell-history "") "\n"
(or bash-history "")) "\n" t))
(selection (completing-read "History: " history nil t current-input)))
(ccr/eshell-replace-current-input selection))))
:bind (("C-c o e" . project-eshell)
(:map eshell-mode-map
("C-r" . eshell-atuin-history)
("C-r" . ccr/eshell-history)
("C-<return>" . corfu-send)
))) ;; i.e. just C-r in semi-char-mode

View file

@ -1,7 +1,8 @@
{ pkgs, ... }:
{
home.packages = [
pkgs.sdrangel
(builtins.getFlake "github:NixOS/nixpkgs/063dece00c5a77e4a0ea24e5e5a5bd75232806f8")
.legacyPackages.${pkgs.system}.sdrangel
pkgs.kdePackages.qtlocation
];
}

View file

@ -22,8 +22,4 @@
home.packages = with pkgs; [
rofi-power-menu
];
# waybar needs the hyprctl binary in PATH when started in hyprland
# TODO still needed?
systemd.user.services.waybar.Service.Environment = "PATH=${lib.makeBinPath [ pkgs.hyprland ]}";
}

View file

@ -97,6 +97,7 @@
"ib-tws"
"zoom"
"pantalaimon"
"moonlight"
];
extraGroups = [ "plugdev" ];
backupPaths = [ ];

View file

@ -61,7 +61,6 @@
"udiskie"
"xdg"
# "spotify"
"lutris"
"wine"
"cura"
"chrome"
@ -71,7 +70,6 @@
"tor-browser"
"kicad"
"monero"
# "zulip"
"teams"
"obs-studio"
"calibre"
@ -88,7 +86,6 @@
"chirp"
"sdrangel"
"discord"
# "ib-tws"
"zoom"
"pantalaimon"
];
@ -101,20 +98,12 @@
boot.initrd.availableKernelModules = [
"nvme"
"xhci_pci"
# "ahci"
"usbhid"
# "r8169"
"thunderbolt"
"vmd"
"usb_storage"
"sd_mod"
];
boot.kernelModules = [
# "kvm-amd"
# "ddcci"
# "ddcci-backlight"
# "i2c-dev" # needed?
];
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
@ -152,6 +141,12 @@
];
};
fileSystems."/mnt/shared" = {
device = "/dev/nvme0n1p2";
fsType = "ntfs";
options = [ "nofail" ];
};
services.zfs.autoScrub.enable = true;
networking.hostId = "30fc8ed7";

View file

@ -1,7 +1,5 @@
{
lib,
config,
vpn,
...
}:
{

View file

@ -9,7 +9,7 @@
networking.nat.enable = true;
networking.firewall.allowedUDPPorts = [ config.networking.wireguard.interfaces.wg0.listenPort ]; # FIXME move this to wireguard-server
networking.firewall.allowedUDPPorts = [ config.networking.wireguard.interfaces.wg0.listenPort ];
networking.wireguard.interfaces.wg0 = {
ips = [ "${vpn.${config.networking.hostName}.ip}/24" ];