Skip to content

Commit e94599d

Browse files
committed
ci: fix statix warnings
1 parent f34fd07 commit e94599d

File tree

2 files changed

+67
-56
lines changed

2 files changed

+67
-56
lines changed

nix/legacy/modules/home-manager/editor.nix

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@
66
}:
77
{
88
home = lib.mkIf (!config.programs.nixvim.enable) {
9-
sessionVariables.EDITOR = "nvim";
10-
sessionVariables.NVIM_APPNAME = "nvim-astrov4";
11-
sessionVariables.MANPAGER = "nvim +Man!";
9+
sessionVariables = {
10+
EDITOR = "nvim";
11+
NVIM_APPNAME = "nvim-astrov4";
12+
MANPAGER = "nvim +Man!";
13+
};
1214
packages = with pkgs; [
1315
neovim
1416

Lines changed: 62 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,77 @@
11
{ config, pkgs, ... }:
22
{
3-
services.getty.autologinUser = config.user.name;
3+
services = {
4+
getty.autologinUser = config.user.name;
45

5-
services.upower.enable = true;
6+
upower.enable = true;
7+
8+
pipewire = {
9+
enable = true;
10+
alsa = {
11+
enable = true;
12+
support32Bit = true;
13+
};
14+
pulse.enable = true;
15+
# Should be the default?
16+
wireplumber.enable = true;
17+
extraConfig.pipewire."92-low-latency" = {
18+
context.properties = {
19+
default = {
20+
clock = {
21+
rate = 48000;
22+
quantum = 32;
23+
min-quantum = 32;
24+
max-quantum = 32;
25+
};
26+
};
27+
};
28+
};
29+
};
30+
31+
blueman.enable = true;
32+
33+
locate.enable = true;
34+
};
635

736
security.polkit.enable = true;
837

938
# recommended for pipewire
1039
security.rtkit.enable = true;
1140

12-
services.pipewire = {
13-
enable = true;
14-
alsa = {
41+
programs = {
42+
43+
# Why do we need this again?
44+
dconf.enable = true;
45+
46+
_1password-gui = {
1547
enable = true;
16-
support32Bit = true;
48+
polkitPolicyOwners = [ config.user.name ];
1749
};
18-
pulse.enable = true;
19-
# Should be the default?
20-
wireplumber.enable = true;
21-
extraConfig.pipewire."92-low-latency" = {
22-
context.properties = {
23-
default.clock.rate = 48000;
24-
default.clock.quantum = 32;
25-
default.clock.min-quantum = 32;
26-
default.clock.max-quantum = 32;
27-
};
28-
};
29-
};
30-
31-
# Why do we need this again?
32-
programs.dconf.enable = true;
3350

34-
programs._1password-gui = {
35-
enable = true;
36-
polkitPolicyOwners = [ config.user.name ];
51+
nix-ld = {
52+
enable = true;
53+
# libraries = with pkgs; [
54+
# pipewire
55+
# stdenv.cc.cc
56+
# systemd
57+
# vulkan-loader
58+
# xorg.libX11
59+
# xorg.libXScrnSaver
60+
# xorg.libXcomposite
61+
# xorg.libXcursor
62+
# xorg.libXdamage
63+
# xorg.libXext
64+
# xorg.libXfixes
65+
# xorg.libXi
66+
# xorg.libXrandr
67+
# xorg.libXrender
68+
# xorg.libXtst
69+
# xorg.libxcb
70+
# xorg.libxkbfile
71+
# xorg.libxshmfence
72+
# gamemode
73+
# ];
74+
};
3775
};
3876

3977
powerManagement = {
@@ -51,8 +89,6 @@
5189
};
5290
};
5391

54-
services.blueman.enable = true;
55-
5692
# environment.etc = {
5793
# "wireplumber/bluetooth.lua.d/51-bluez-config.lua".text = ''
5894
# bluez_monitor.properties = {
@@ -72,35 +108,8 @@
72108
# vulkan-hdr-layer
73109
];
74110

75-
programs.nix-ld = {
76-
enable = true;
77-
# libraries = with pkgs; [
78-
# pipewire
79-
# stdenv.cc.cc
80-
# systemd
81-
# vulkan-loader
82-
# xorg.libX11
83-
# xorg.libXScrnSaver
84-
# xorg.libXcomposite
85-
# xorg.libXcursor
86-
# xorg.libXdamage
87-
# xorg.libXext
88-
# xorg.libXfixes
89-
# xorg.libXi
90-
# xorg.libXrandr
91-
# xorg.libXrender
92-
# xorg.libXtst
93-
# xorg.libxcb
94-
# xorg.libxkbfile
95-
# xorg.libxshmfence
96-
# gamemode
97-
# ];
98-
};
99-
100111
# NOTE: https://github.com/nix-community/home-manager/issues/4199#issuecomment-2226810699
101112
system.userActivationScripts.removeConflictingFiles.text = ''
102113
rm -f /home/${config.user.name}/.gtkrc-2.0.backup
103114
'';
104-
105-
services.locate.enable = true;
106115
}

0 commit comments

Comments
 (0)