forked from sabo-t/nixos
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathhome.nix
executable file
·89 lines (71 loc) · 1.97 KB
/
home.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
{ pkgs, ... }:
{
# Let home Manager install and manage itself.
programs.home-manager.enable = true;
home.username = "samuel";
home.homeDirectory = "/home/samuel";
home.stateVersion = "23.05";
# basic configuration of git, please change to your own
programs.git = {
enable = true;
userName = "samuel";
userEmail = "samworlds1231337@gmail.com";
extraConfig = { safe = { directory = "/etc/nixos"; }; };
};
programs.zsh = {
enable = true;
enableCompletion = true;
autosuggestion.enable = true;
syntaxHighlighting.enable = true;
zplug = {
enable = true;
plugins = [
{ name = "zsh-users/zsh-autosuggestions"; } # Simple plugin installation
{
name = "dracula/zsh";
tags = [ "as:theme" ];
}
];
};
};
programs.direnv = { enable = true; };
/* gtk = {
enable = true;
iconTheme = {
name = "Adwaita";
package = pkgs.adwaita-icon-theme;
};
theme = {
name = "Adwaita";
package = pkgs.gnome-themes-extra;
};
};
*/
dconf.settings = {
"org/gnome/desktop/interface" = { color-scheme = "prefer-dark"; };
"org/gnome/desktop/peripherals/mouse" = { accel-profile = "flat"; };
"org/gnome/desktop/peripherals/touchpad" = {
two-finger-scrolling-enabled = true;
};
};
/* home.pointerCursor = let
getFrom = url: hash: name: {
gtk.enable = true;
x11.enable = true;
name = name;
size = 26;
package = pkgs.runCommand "moveUp" { } ''
mkdir -p $out/share/icons
ln -s ${
pkgs.fetchzip {
url = url;
hash = hash;
}
} $out/share/icons/${name}
'';
};
in getFrom
"https://github.com/manu-mannattil/adwaita-cursors/releases/download/v1.2/adwaita-cursors.tar.gz"
"sha256-zKa55zn4UO/cCTx2Es0xKxUwjFe5/k5xWI9RLJYpvsQ=" "Adwaita";
*/
}