specializations are annoying + trying to fix emacs

This commit is contained in:
Danilo Reyes 2025-10-02 03:27:13 -06:00
parent acdc0fb0eb
commit 771b7b1a42
6 changed files with 23 additions and 30 deletions

View File

@ -78,6 +78,7 @@
];
};
nix = {
nixPath = [ "nixpkgs=${inputs.nixpkgs}" ];
distributedBuilds = true;
optimise.automatic = true;
settings = {

View File

@ -451,17 +451,17 @@ later.
Configurations to add linting support to specific languages by integrating linters with flycheck.
#+begin_src emacs-lisp :tangle ./config.el
(use-package! flycheck
:config
(flycheck-define-checker nix-statix
"A syntax checker for Nix using Statix."
:command ("statix" "check" source)
:error-patterns
((warning line-start (file-name) ":" line ":" column
": " (message) line-end))
:modes (nix-mode))
;; (use-package! flycheck
;; :config
;; (flycheck-define-checker deadnix
;; "A syntax checker for Nix using deadnix."
;; :command ("deadnix" "--fail" source)
;; :error-patterns
;; ((warning line-start (file-name) ":" line ":" column
;; ": " (message) line-end))
;; :modes (nix-mode))
(add-to-list 'flycheck-checkers 'nix-statix))
;; (add-to-list 'flycheck-checkers 'deadnix))
#+end_src
* GPT
Integrate most AI agents with emacs on a way that through api keys it can do

View File

@ -45,7 +45,6 @@ in
enable = true;
extraPortals = [
pkgs.xdg-desktop-portal-hyprland
# pkgs.xdg-desktop-portal-gtk
];
};
users.users.jawz.packages = builtins.attrValues {

12
flake.lock generated
View File

@ -125,11 +125,11 @@
"systems": "systems"
},
"locked": {
"lastModified": 1759221805,
"narHash": "sha256-gKne7A7DWffiqdfUPdX4TK1/a4FU942LM7e6E8ORsTY=",
"lastModified": 1759394468,
"narHash": "sha256-mPbw6N6ERaUfaoXcuq7+pzbIiSYgymxw1ZU8dImHaQo=",
"owner": "marienz",
"repo": "nix-doom-emacs-unstraightened",
"rev": "5697968fa38469d12012706d9322211de10309c9",
"rev": "84f91b8df69b7cb904fc6caae3a77d0742d70285",
"type": "github"
},
"original": {
@ -164,11 +164,11 @@
]
},
"locked": {
"lastModified": 1759221279,
"narHash": "sha256-7EAByrl70kQ2gV0opDiNhySsk9KcJiRpnnL+BEaNOhc=",
"lastModified": 1759370635,
"narHash": "sha256-qX5Ot+d1Hh7wvpDnt41dwJC3VqzpG+Yue4d3fM/Xlmk=",
"owner": "nix-community",
"repo": "emacs-overlay",
"rev": "6bbda1ce5dc002b22c95323b01d40518e843a00d",
"rev": "e8a15f25bcbd4e29cd7a36e1fbc3df525cca9acb",
"type": "github"
},
"original": {

View File

@ -21,6 +21,7 @@ in
./hardware-configuration.nix
../../config/base.nix
../../config/stylix.nix
../../environments/hyprland.nix
];
my = import ./toggles.nix // {
nix.cores = 8;
@ -47,16 +48,6 @@ in
};
};
};
specialisation = {
gnome.configuration = {
imports = [ ../../environments/gnome.nix ];
services.flatpak.enable = true;
};
hyprland.configuration = {
imports = [ ../../environments/hyprland.nix ];
services.flatpak.enable = true;
};
};
networking = {
hostName = "workstation";
firewall =

View File

@ -9,8 +9,10 @@ let
packages = builtins.attrValues {
inherit (pkgs)
nixfmt-rfc-style # formatting
nixfmt-tree # formatting
cachix # binary cache management
nixd # language server for Nix
deadnix # detext unused/uneeded dependencies
statix # linter for Nix expressions
;
};
@ -34,9 +36,9 @@ in
users.users.jawz = { inherit packages; };
home-manager.users.jawz.programs.${shellType}.shellAliases = {
nixformat = ''
nix run unstable#deadnix -- -e && \
nix run unstable#nixfmt-tree && \
nix run unstable#statix fix
deadnix -- -e && \
nixfmt-tree && \
statix fix
'';
};
};