Compare commits

..

No commits in common. "9ed3cde274c5ab6cd2fbbd1ca795353fd98bbcaa" and "b4ad21962e142aff6057f8aa286855f934e1baa6" have entirely different histories.

8 changed files with 67 additions and 69 deletions

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,9 +1,12 @@
{
config,
pkgs-unstable-small,
...
}: {
home-manager.users.jade = {pkgs, ...}: {
{config, ...}: {
home-manager.users.jade = {pkgs, ...}: let
typstGrammar = pkgs.fetchFromGitHub {
owner = "uben0";
repo = "tree-sitter-typst";
rev = "baddc325e858afff90501dbefa00ecfa28528931";
sha256 = "sha256-XZAgnpb1B8EZ2WXPj/JYSZGsmpKsnDiBFCDF0XjunOM";
};
in {
home = {
sessionVariables.EDITOR = "hx";
packages = [
@ -14,9 +17,13 @@
pkgs.typst-lsp
];
};
home.file = {
".config/helix/runtime/queries" = {
source = "${typstGrammar}/queries";
};
};
programs.helix = {
enable = true;
package = pkgs-unstable-small.helix;
settings = {
theme = "gruvbox";
editor = {
@ -28,8 +35,6 @@
display-messages = true;
display-inlay-hints = true;
};
completion-replace = true;
popup-border = "popup";
shell = ["nu" "-c"];
statusline.left = [
"mode"
@ -47,7 +52,6 @@
"workspace-diagnostics"
"register"
"position"
"selections"
"file-encoding"
"file-type"
];
@ -137,11 +141,22 @@
args = ["--language-server"];
};
"typst-lsp" = {
command = "typst-lsp";
config = {
exportPdf = "onType";
};
};
};
grammar = [
{
name = "typst";
source = {
git = "https://github.com/uben0/tree-sitter-typst";
rev = "baddc325e858afff90501dbefa00ecfa28528931";
# path = "${typstGrammar}";
};
}
];
language = [
{
name = "nu";
@ -151,6 +166,30 @@
name = "php";
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";
formatter = {

View file

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