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 = { nix = {
nixPath = [ "nixpkgs=${inputs.nixpkgs}" ];
distributedBuilds = true; distributedBuilds = true;
optimise.automatic = true; optimise.automatic = true;
settings = { settings = {

View File

@ -451,17 +451,17 @@ later.
Configurations to add linting support to specific languages by integrating linters with flycheck. Configurations to add linting support to specific languages by integrating linters with flycheck.
#+begin_src emacs-lisp :tangle ./config.el #+begin_src emacs-lisp :tangle ./config.el
(use-package! flycheck ;; (use-package! flycheck
:config ;; :config
(flycheck-define-checker nix-statix ;; (flycheck-define-checker deadnix
"A syntax checker for Nix using Statix." ;; "A syntax checker for Nix using deadnix."
:command ("statix" "check" source) ;; :command ("deadnix" "--fail" source)
:error-patterns ;; :error-patterns
((warning line-start (file-name) ":" line ":" column ;; ((warning line-start (file-name) ":" line ":" column
": " (message) line-end)) ;; ": " (message) line-end))
:modes (nix-mode)) ;; :modes (nix-mode))
(add-to-list 'flycheck-checkers 'nix-statix)) ;; (add-to-list 'flycheck-checkers 'deadnix))
#+end_src #+end_src
* GPT * GPT
Integrate most AI agents with emacs on a way that through api keys it can do 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; enable = true;
extraPortals = [ extraPortals = [
pkgs.xdg-desktop-portal-hyprland pkgs.xdg-desktop-portal-hyprland
# pkgs.xdg-desktop-portal-gtk
]; ];
}; };
users.users.jawz.packages = builtins.attrValues { users.users.jawz.packages = builtins.attrValues {

12
flake.lock generated
View File

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

View File

@ -21,6 +21,7 @@ in
./hardware-configuration.nix ./hardware-configuration.nix
../../config/base.nix ../../config/base.nix
../../config/stylix.nix ../../config/stylix.nix
../../environments/hyprland.nix
]; ];
my = import ./toggles.nix // { my = import ./toggles.nix // {
nix.cores = 8; 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 = { networking = {
hostName = "workstation"; hostName = "workstation";
firewall = firewall =

View File

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