Commit 4680462 1 parent bcc2f33 commit 4680462 Copy full SHA for 4680462
File tree 4 files changed +22
-1
lines changed
systems/x86_64-linux/carbon
4 files changed +22
-1
lines changed Original file line number Diff line number Diff line change
1
+ { lib , ... } :
2
+ let
3
+ inherit ( lib ) mkOption ;
4
+ inherit ( lib . types ) bool ;
5
+ in
6
+ {
7
+ options . elementary . preferences = {
8
+ allowLongCompilationTimes = mkOption {
9
+ type = bool ;
10
+ default = false ;
11
+ } ;
12
+ } ;
13
+ }
Original file line number Diff line number Diff line change 11
11
config =
12
12
let
13
13
emacsPackage = pkgs . emacsWithPackagesFromUsePackage {
14
- package = pkgs . emacs-pgtk . override { withImageMagick = true ; } ;
14
+ package =
15
+ if config . elementary . preferences . allowLongCompilationTimes
16
+ then pkgs . emacs-unstable-pgtk . override { withImageMagick = true ; }
17
+ else pkgs . emacs29-pgtk ;
15
18
config = ./init.el ;
16
19
alwaysEnsure = true ;
17
20
override = pkgs . callPackage ./overlay.nix { } ;
Original file line number Diff line number Diff line change 94
94
tab-mark)))
95
95
96
96
(use-package indent-bars
97
+ :ensure nil
97
98
:hook
98
99
(prog-mode . indent-bars-mode)
99
100
(conf-mode . indent-bars-mode)
Original file line number Diff line number Diff line change @@ -12,6 +12,10 @@ with lib.elementary;
12
12
] ;
13
13
14
14
elementary = {
15
+ preferences = {
16
+ allowLongCompilationTimes = true ;
17
+ } ;
18
+
15
19
virtualisation . docker = enabled ;
16
20
hardware . nvidia = enabled ;
17
21
roles . workstation = enabled ;
You can’t perform that action at this time.
0 commit comments