1
0
Fork 0

Compare commits

..

3 commits

Author SHA1 Message Date
bcd44db437 Added some cli tools
Added:
* eza - replacement for ls
* zoxide - replacement for cd
* bat - replacement for cat
* ripgrep - search files for text/patterns
* entr - run cmd when file changes
2024-06-16 22:47:41 +02:00
7febd46001 2024-06-16 update
System update on 2024-06-16

I had to allow to insall EOL electron which is a dependency for logseq,
see:
https://discourse.nixos.org/t/electron-complaining-it-is-eol-but-what-is-requiring-it/34700.

I added a section to allow certain "unsafe" packages in
configuration.nix. It only worked when I specified the package with the
version number.
2024-06-16 21:58:52 +02:00
cc19edb8f2 Fixed identation 2024-06-16 21:24:07 +02:00
4 changed files with 41 additions and 21 deletions

28
flake.lock generated
View file

@ -101,15 +101,15 @@
"base16-vim": { "base16-vim": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1663659192, "lastModified": 1716150083,
"narHash": "sha256-uJvaYYDMXvoo0fhBZUhN8WBXeJ87SRgof6GEK2efFT0=", "narHash": "sha256-ZMhnNmw34ogE5rJZrjRv5MtG3WaqKd60ds2VXvT6hEc=",
"owner": "chriskempson", "owner": "tinted-theming",
"repo": "base16-vim", "repo": "base16-vim",
"rev": "3be3cd82cd31acfcab9a41bad853d9c68d30478d", "rev": "6e955d704d046b0dc3e5c2d68a2a6eeffd2b5d3d",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "chriskempson", "owner": "tinted-theming",
"repo": "base16-vim", "repo": "base16-vim",
"type": "github" "type": "github"
} }
@ -170,11 +170,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1717931644, "lastModified": 1718526747,
"narHash": "sha256-Sz8Wh9cAiD5FhL8UWvZxBfnvxETSCVZlqWSYWaCPyu0=", "narHash": "sha256-sKrD/utGvmtQALvuDj4j0CT3AJXP1idOAq2p+27TpeE=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "3d65009effd77cb0d6e7520b68b039836a7606cf", "rev": "0a7ffb28e5df5844d0e8039c9833d7075cdee792",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -206,11 +206,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1717786204, "lastModified": 1718318537,
"narHash": "sha256-4q0s6m0GUcN7q+Y2DqD27iLvbcd1G50T2lv08kKxkSI=", "narHash": "sha256-4Zu0RYRcAY/VWuu6awwq4opuiD//ahpc2aFHg2CWqFY=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "051f920625ab5aabe37c920346e3e69d7d34400e", "rev": "e9ee548d90ff586a6471b4ae80ae9cfcbceb3420",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -258,11 +258,11 @@
"nixpkgs": "nixpkgs_2" "nixpkgs": "nixpkgs_2"
}, },
"locked": { "locked": {
"lastModified": 1718292734, "lastModified": 1718546905,
"narHash": "sha256-XAwxzCDfExqIj0PIjEpjt3eOzsosxOCLx6sQWHPSrSg=", "narHash": "sha256-FmtNOW6Ng11TTgsXkQLqBcIE0j2SmlydHXu/DnWlS4k=",
"owner": "danth", "owner": "danth",
"repo": "stylix", "repo": "stylix",
"rev": "73c6955b4572346cc10f43a459949fe646efbde0", "rev": "80e8e1e2f613bdc8749461899f0959312eb4a54e",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -33,13 +33,13 @@
modules = [ modules = [
stylix.nixosModules.stylix ./hosts/p14s/configuration.nix stylix.nixosModules.stylix ./hosts/p14s/configuration.nix
# Home-Manager # Home-Manager
#inputs.home-manager.nixosModules.default #inputs.home-manager.nixosModules.default
home-manager.nixosModules.home-manager { home-manager.nixosModules.home-manager {
home-manager.useGlobalPkgs = true; home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true; home-manager.useUserPackages = true;
home-manager.users.jan = import ./hosts/p14s/home.nix; home-manager.users.jan = import ./hosts/p14s/home.nix;
} }
]; ];
}; };

View file

@ -119,6 +119,11 @@
# Allow unfree packages # Allow unfree packages
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
# Temporarily allow certain unsafe packages
nixpkgs.config.permittedInsecurePackages = [
"electron-27.3.11" # 2024-06-16: EOL electron for logseq
];
# List packages installed in system profile. To search, run: # List packages installed in system profile. To search, run:
# $ nix search wget # $ nix search wget
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [

View file

@ -38,6 +38,10 @@
btop btop
fd # unnamed dependency for the fuzzy finder fzf fd # unnamed dependency for the fuzzy finder fzf
lazygit lazygit
eza # replacement for ls
bat # replacement for cat
ripgrep # search files for text/patterns
entr # run cmd when file changes
# Network # Network
wireguard-go wireguard-go
@ -115,6 +119,12 @@
# Update the font cache # Update the font cache
fonts.fontconfig.enable = true; fonts.fontconfig.enable = true;
# Zoxide - a replacement for ls
programs.zoxide = {
enable = true;
enableZshIntegration = true;
};
# SSH # SSH
programs.ssh = { programs.ssh = {
enable = true; enable = true;
@ -144,6 +154,11 @@
shellAliases = { shellAliases = {
vi = "nvim"; vi = "nvim";
vim = "nvim"; vim = "nvim";
ls = "eza -g";
ll = "eza -alhg";
tree = "eza --tree";
cat = "bat";
cd = "z";
}; };
initExtra = '' initExtra = ''
setopt nonomatch # forward wildcard if no match setopt nonomatch # forward wildcard if no match