-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlinux.nix
136 lines (119 loc) · 2.97 KB
/
linux.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
{ pkgs, ... }:
{
imports = [
<home-manager/nixos>
./common.nix
../packages/linux.nix
];
# Define a user account. Don't forget to set a password with ‘passwd’.
users.users.sage = {
isNormalUser = true;
description = "Sheikh";
extraGroups = [
"networkmanager"
"wheel"
"uinput"
];
};
# Set your time zone.
time.timeZone = "America/Halifax";
# Select internationalisation properties.
i18n.defaultLocale = "en_CA.UTF-8";
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = with pkgs; [
vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
gcc
kanata # keyboard remapper
# default theme
whitesur-icon-theme
qogir-icon-theme
qogir-theme
# XFCE panel plugins
xfce.xfce4-verve-plugin
xfce.xfce4-systemload-plugin
xfce.xfce4-whiskermenu-plugin
xfce.xfce4-weather-plugin
];
services.xserver = {
# Enable the X11 windowing system.
enable = true;
# Enable the XFCE Desktop Environment.
displayManager.lightdm = {
enable = true;
greeters.gtk = {
enable = true;
theme = {
name = "Qogir-Dark";
package = pkgs.qogir-theme;
};
cursorTheme = {
name = "Qogir-manjaro-dark";
package = pkgs.qogir-icon-theme;
size = 64;
};
iconTheme = {
name = "WhiteSur-dark";
package = pkgs.whitesur-icon-theme;
};
};
};
desktopManager = {
xterm.enable = false;
xfce = {
enable = true;
# noDesktop = true;
enableXfwm = false;
enableScreensaver = false;
};
};
# Configure keymap in X11
xkb = {
layout = "us";
variant = "";
};
};
# HiDPI display config
services.xserver = {
dpi = 148;
upscaleDefaultCursor = true;
};
environment.variables = {
# GDK_SCALE = "2.2";
# GDK_DPI_SCALE = "0.4";
# _JAVA_OPTIONS = "-sun.java2d.uiScale=2.2";
# QT_AUTO_SCREEN_SCALE_FACTOR = "1";
XCURSOR_SIZE = 64;
};
# for Zsh completions of system packages
environment.pathsToLink = [ "/share/zsh" ];
# List services that you want to enable:
# Enable the OpenSSH daemon.
services.openssh.enable = true;
# Enable and configure kanata
services.kanata = {
enable = true;
keyboards = {
"kbd" = {
config = ''
(defsrc)
(deflayer default)
(defoverrides
(esc) (caps)
(caps) (esc)
(lsft spc) (bspc)
(rsft spc) (del)
)
'';
extraDefCfg = ''
process-unmapped-keys yes
'';
};
};
};
# Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether.
# networking.firewall.enable = false;
}