File tree Expand file tree Collapse file tree 3 files changed +25
-6
lines changed Expand file tree Collapse file tree 3 files changed +25
-6
lines changed Original file line number Diff line number Diff line change @@ -11,5 +11,5 @@ Here are a non-exhaustive list of tasks.
11
11
- [x] Customize Spotify with [ Spicetify] ( https://github.com/Gerg-L/spicetify-nix )
12
12
- [x] Add declarative Flatpak supports with [ declarative-flatpak] ( https://github.com/GermanBread/declarative-flatpak )
13
13
- [ ] Better email accounts management
14
- - [ ] Solve TODO in the file ` modules/home/roles/desktop/default.nix `
14
+ - [x ] Solve TODO in the file ` modules/home/roles/desktop/default.nix `
15
15
Original file line number Diff line number Diff line change
1
+ {
2
+ lib ,
3
+ config ,
4
+ namespace ,
5
+ pkgs ,
6
+ ...
7
+ } :
8
+ let
9
+ inherit ( lib ) mkIf ;
10
+ inherit ( lib . ${ namespace } ) mkBoolOpt ;
11
+
12
+ cfg = config . ${ namespace } . cli . programs . xkill ;
13
+ in
14
+ {
15
+ options . ${ namespace } . cli . programs . xkill = {
16
+ enable = mkBoolOpt false "Whether or not to enable xkill." ;
17
+ } ;
18
+
19
+ config = mkIf cfg . enable { home . packages = with pkgs ; [ xorg . xkill ] ; } ;
20
+ }
Original file line number Diff line number Diff line change 1
1
{
2
- pkgs ,
3
2
config ,
4
3
lib ,
5
4
namespace ,
25
24
} ;
26
25
} ;
27
26
28
- # TODO: Make modules for this packages
29
- home . packages = with pkgs ; [ xorg . xkill ] ;
30
-
31
27
${ namespace } = {
32
28
roles = {
33
29
common = enabled ;
44
40
} ;
45
41
46
42
cli = {
47
- programs . fast-anime = enabled ;
43
+ programs = {
44
+ fast-anime = enabled ;
45
+ xkill = enabled ;
46
+ } ;
48
47
terminals = {
49
48
syncterm = enabled ;
50
49
wezterm = enabled ;
You can’t perform that action at this time.
0 commit comments