Compare commits

...

10 commits

Author SHA1 Message Date
Schrottkatze 9ed3cde274
configure helix 2024-04-03 19:04:00 +02:00
Schrottkatze c1d4aba9c3
update helix to 24.3 2024-04-03 18:37:15 +02:00
Schrottkatze c5f02511eb
flake.lock: Update
Flake lock file updates:

• Updated input 'home-manager':
    'github:nix-community/home-manager/587719494ed18a184c98c4d55dde9469af4446bf' (2024-03-14)
  → 'github:nix-community/home-manager/80546b220e95a575c66c213af1b09fe255299438' (2024-04-02)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/0ad13a6833440b8e238947e47bea7f11071dc2b2' (2024-03-12)
  → 'github:NixOS/nixpkgs/d8fe5e6c92d0d190646fb9f1056741a229980089' (2024-03-29)
• Updated input 'nixpkgs-stable':
    'github:NixOS/nixpkgs/51063ed4f2343a59fdeebb279bb81d87d453942b' (2024-03-12)
  → 'github:NixOS/nixpkgs/219951b495fc2eac67b1456824cc1ec1fd2ee659' (2024-03-28)
2024-04-03 17:57:24 +02:00
Schrottkatze 937562a815
fix recursive line count (lcr) 2024-04-03 17:56:13 +02:00
Schrottkatze a2e61d05c2
add selection counter to helix status bar 2024-04-03 17:55:59 +02:00
Schrottkatze 643d47e4a1
add macchanger 2024-04-03 17:55:47 +02:00
Schrottkatze 76dc4942d2
add anonymous pro font 2024-04-03 17:55:39 +02:00
Schrottkatze 3a62b76f49
add scribus fancy tool stuff stuffs 2024-04-03 17:55:30 +02:00
Schrottkatze d3cf76ca8d
remove gimp plugins 2024-04-03 17:55:18 +02:00
Schrottkatze 410c891ec1
printing things 2024-04-03 17:54:04 +02:00
8 changed files with 69 additions and 67 deletions

View file

@ -190,11 +190,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1710423955, "lastModified": 1712093955,
"narHash": "sha256-6N/65EqYVqCaz5SVoPMx2HgA+DJZAlw5lW+U9VHSSbE=", "narHash": "sha256-94I0sXz6fiVBvUAk2tg6t3UpM5rOImj4JTSTNFbg64s=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "587719494ed18a184c98c4d55dde9469af4446bf", "rev": "80546b220e95a575c66c213af1b09fe255299438",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -345,11 +345,11 @@
}, },
"nixpkgs-stable": { "nixpkgs-stable": {
"locked": { "locked": {
"lastModified": 1710283656, "lastModified": 1711668574,
"narHash": "sha256-nI+AOy4uK6jLGBi9nsbHjL1EdSIzoo8oa+9oeVhbyFc=", "narHash": "sha256-u1dfs0ASQIEr1icTVrsKwg2xToIpn7ZXxW3RHfHxshg=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "51063ed4f2343a59fdeebb279bb81d87d453942b", "rev": "219951b495fc2eac67b1456824cc1ec1fd2ee659",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -358,6 +358,21 @@
"type": "indirect" "type": "indirect"
} }
}, },
"nixpkgs-unstable-small": {
"locked": {
"lastModified": 1712132741,
"narHash": "sha256-44ZLixE1FGUmz01/G/1ZMfJG8P+i8y2SkOVRia0xRkk=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "7781caa09d74b971a059a0240a03c5dd68acf3e5",
"type": "github"
},
"original": {
"id": "nixpkgs",
"ref": "nixos-unstable-small",
"type": "indirect"
}
},
"nixpkgs_10": { "nixpkgs_10": {
"locked": { "locked": {
"lastModified": 1675614288, "lastModified": 1675614288,
@ -466,11 +481,11 @@
}, },
"nixpkgs_8": { "nixpkgs_8": {
"locked": { "locked": {
"lastModified": 1710272261, "lastModified": 1711703276,
"narHash": "sha256-g0bDwXFmTE7uGDOs9HcJsfLFhH7fOsASbAuOzDC+fhQ=", "narHash": "sha256-iMUFArF0WCatKK6RzfUJknjem0H9m4KgorO/p3Dopkk=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "0ad13a6833440b8e238947e47bea7f11071dc2b2", "rev": "d8fe5e6c92d0d190646fb9f1056741a229980089",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -505,6 +520,7 @@
"nixos-hardware": "nixos-hardware", "nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs_8", "nixpkgs": "nixpkgs_8",
"nixpkgs-stable": "nixpkgs-stable", "nixpkgs-stable": "nixpkgs-stable",
"nixpkgs-unstable-small": "nixpkgs-unstable-small",
"wordsofgod": "wordsofgod" "wordsofgod": "wordsofgod"
} }
}, },

View file

@ -4,6 +4,7 @@
inputs = { inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable"; nixpkgs.url = "nixpkgs/nixos-unstable";
nixpkgs-stable.url = "nixpkgs/nixos-23.11"; nixpkgs-stable.url = "nixpkgs/nixos-23.11";
nixpkgs-unstable-small.url = "nixpkgs/nixos-unstable-small";
home-manager = { home-manager = {
url = "github:nix-community/home-manager"; url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
@ -26,12 +27,14 @@
self, self,
nixpkgs, nixpkgs,
nixpkgs-stable, nixpkgs-stable,
nixpkgs-unstable-small,
home-manager, home-manager,
nixos-hardware, nixos-hardware,
mac-brcm-fw, mac-brcm-fw,
... ...
} @ inputs: let } @ inputs: let
pkgs = nixpkgs.legacyPackages."x86_64-linux"; pkgs = nixpkgs.legacyPackages."x86_64-linux";
pkgs-unstable-small = nixpkgs-unstable-small.legacyPackages."x86_64-linux";
in { in {
devShells."x86_64-linux".default = pkgs.mkShell { devShells."x86_64-linux".default = pkgs.mkShell {
buildInputs = [ buildInputs = [
@ -49,7 +52,7 @@
nixosConfigurations = { nixosConfigurations = {
monosodium-glutamate-g = nixpkgs.lib.nixosSystem { monosodium-glutamate-g = nixpkgs.lib.nixosSystem {
specialArgs = { specialArgs = {
inherit inputs; inherit inputs pkgs-unstable-small;
}; };
system = "x86_64-linux"; system = "x86_64-linux";
modules = [ modules = [
@ -71,7 +74,7 @@
}; };
catbook-j = nixpkgs.lib.nixosSystem { catbook-j = nixpkgs.lib.nixosSystem {
specialArgs = { specialArgs = {
inherit inputs; inherit inputs pkgs-unstable-small;
}; };
system = "x86_64-linux"; system = "x86_64-linux";
modules = [ modules = [
@ -93,7 +96,7 @@
}; };
potatobook-g = nixpkgs.lib.nixosSystem { potatobook-g = nixpkgs.lib.nixosSystem {
specialArgs = { specialArgs = {
inherit inputs; inherit inputs pkgs-unstable-small;
}; };
system = "x86_64-linux"; system = "x86_64-linux";
modules = [ modules = [

View file

@ -3,12 +3,18 @@
home.packages = with pkgs; [ home.packages = with pkgs; [
audacity audacity
krita krita
gimp-with-plugins # gimp-with-plugins
gimp
inkscape-with-extensions inkscape-with-extensions
obs-studio obs-studio
kdenlive kdenlive
fspy fspy
scribus scribus
lilypond
gnuplot
graphviz
povray
fontforge-gtk fontforge-gtk

View file

@ -44,7 +44,18 @@ in
virtualisation.libvirtd.enable = true; virtualisation.libvirtd.enable = true;
services = { services = {
printing.enable = true; printing = {
enable = true;
drivers = [
pkgs.gutenprint
pkgs.gutenprintBin
pkgs.hplip
pkgs.brlaser
pkgs.brgenml1lpr
pkgs.brgenml1cupswrapper
pkgs.ptouch-driver
];
};
gnome.gnome-keyring.enable = true; gnome.gnome-keyring.enable = true;
}; };
@ -54,8 +65,11 @@ in
}; };
services.illum.enable = true; services.illum.enable = true;
services.avahi.enable = true; services.avahi = {
enable = true;
nssmdns = true;
openFirewall = true;
};
services.smartd = { services.smartd = {
enable = true; enable = true;
notifications.x11.enable = true; notifications.x11.enable = true;

View file

@ -1,6 +1,6 @@
{pkgs, ...}: { {pkgs, ...}: {
fonts.packages = with pkgs; [ fonts.packages = with pkgs; [
(nerdfonts.override {fonts = ["FiraCode"];}) (nerdfonts.override {fonts = ["FiraCode" "AnonymousPro"];})
montserrat montserrat
noto-fonts noto-fonts
atkinson-hyperlegible atkinson-hyperlegible

View file

@ -63,6 +63,7 @@ in {
networkmanagerapplet networkmanagerapplet
mullvad-vpn mullvad-vpn
speedtest-cli speedtest-cli
macchanger
]; ];
}; };
}; };

View file

@ -1,12 +1,9 @@
{config, ...}: { {
home-manager.users.jade = {pkgs, ...}: let config,
typstGrammar = pkgs.fetchFromGitHub { pkgs-unstable-small,
owner = "uben0"; ...
repo = "tree-sitter-typst"; }: {
rev = "baddc325e858afff90501dbefa00ecfa28528931"; home-manager.users.jade = {pkgs, ...}: {
sha256 = "sha256-XZAgnpb1B8EZ2WXPj/JYSZGsmpKsnDiBFCDF0XjunOM";
};
in {
home = { home = {
sessionVariables.EDITOR = "hx"; sessionVariables.EDITOR = "hx";
packages = [ packages = [
@ -17,13 +14,9 @@
pkgs.typst-lsp pkgs.typst-lsp
]; ];
}; };
home.file = {
".config/helix/runtime/queries" = {
source = "${typstGrammar}/queries";
};
};
programs.helix = { programs.helix = {
enable = true; enable = true;
package = pkgs-unstable-small.helix;
settings = { settings = {
theme = "gruvbox"; theme = "gruvbox";
editor = { editor = {
@ -35,6 +28,8 @@
display-messages = true; display-messages = true;
display-inlay-hints = true; display-inlay-hints = true;
}; };
completion-replace = true;
popup-border = "popup";
shell = ["nu" "-c"]; shell = ["nu" "-c"];
statusline.left = [ statusline.left = [
"mode" "mode"
@ -52,6 +47,7 @@
"workspace-diagnostics" "workspace-diagnostics"
"register" "register"
"position" "position"
"selections"
"file-encoding" "file-encoding"
"file-type" "file-type"
]; ];
@ -141,22 +137,11 @@
args = ["--language-server"]; args = ["--language-server"];
}; };
"typst-lsp" = { "typst-lsp" = {
command = "typst-lsp";
config = { config = {
exportPdf = "onType"; exportPdf = "onType";
}; };
}; };
}; };
grammar = [
{
name = "typst";
source = {
git = "https://github.com/uben0/tree-sitter-typst";
rev = "baddc325e858afff90501dbefa00ecfa28528931";
# path = "${typstGrammar}";
};
}
];
language = [ language = [
{ {
name = "nu"; name = "nu";
@ -166,30 +151,6 @@
name = "php"; name = "php";
language-servers = ["psalm"]; language-servers = ["psalm"];
} }
{
name = "typst";
scope = "source.typst";
file-types = ["typ" "typst"];
injection-regex = "typ(st)?";
comment-token = "//";
indent = {
tab-width = 2;
unit = " ";
};
roots = ["typst.toml"];
formatter = {
command = "${pkgs.typstfmt}/bin/typstfmt";
};
auto-format = true;
language-servers = ["typst-lsp"];
auto-pairs = {
"(" = ")";
"{" = "}";
"[" = "]";
"$" = "$";
"\"" = "\"";
};
}
{ {
name = "nix"; name = "nix";
formatter = { formatter = {

View file

@ -790,7 +790,8 @@ def nsp [
def lcr [ def lcr [
file_extension: string file_extension: string
] { ] {
ls $"**/*.($file_extension)" ls **/*
| where name ends-with $".($file_extension)"
| each {|file| | each {|file|
open $file.name open $file.name
| lines --skip-empty | lines --skip-empty