Repository navigation
Expand file tree
/
Copy pathhome.nix
More file actions
116 lines (106 loc) Β· 2.58 KB
/
Copy pathhome.nix
File metadata and controls
116 lines (106 loc) Β· 2.58 KB
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
{ config, pkgs, ... }:
let
wallpaper = ./wallpapers/default.png;
in
{
nixpkgs.config.allowUnfree = true;
home.username = "ben";
home.homeDirectory = "/home/ben";
home.packages = with pkgs; [
ripgrep
fd
tree
unzip
wl-clipboard
htop
grim
slurp
swaylock
];
programs.alacritty.enable = true;
programs.neovim = {
enable = true;
defaultEditor = true;
extraPackages = with pkgs; [
lua-language-server
nil
vscode-langservers-extracted
python3
];
};
xdg.configFile."nvim/init.vim".text = ''
set number
syntax on
set mouse=a
set tabstop=4 shiftwidth=4 expandtab
set clipboard=unnamedplus
set termguicolors
colorscheme desert
'';
programs.waybar = {
enable = true;
settings = [{
layer = "top";
position = "top";
modules-left = [ "hyprland/workspaces" "clock" ];
modules-right = [ "pulseaudio" "network" "battery" ];
clock.format = "{:%a %b %d %I:%M %p}";
pulseaudio.format = "π {volume}%";
pulseaudio.format-muted = "π";
battery = {
format = "{capacity}% {icon}";
format-icons = [ "ο" "ο" "ο" "ο" "ο" ];
};
network = {
format-wifi = "ο« {essid} ({signalStrength}%)";
format-ethernet = "οΏ {ifname}";
format-disconnected = "Disconnected";
};
}];
style = ''
* {
font-family: JetBrainsMono Nerd Font, monospace;
font-size: 13px;
padding: 0 5px;
}
window#waybar {
background-color: rgba(30, 30, 30, 0.8);
border-bottom: 2px solid #444;
color: white;
}
'';
};
wayland.windowManager.hyprland = {
enable = true;
settings = {
monitor = ",preferred,auto,1";
exec- "hyprpaper" "waybar" "alacritty" ];
input.kb_layout = "us";
input.follow_mouse = 1;
input.touchpad.natural_scroll = true;
general = {
gaps_in = 5;
gaps_out = 10;
border_size = 2;
col.active_border = "rgba(33ccffee)";
col.inactive_border = "rgba(595959aa)";
};
decoration = {
rounding = 10;
blur = { enabled = true; size = 6; passes = 3; };
drop_shadow = true;
};
animations = {
enabled = true;
bezier = "ease, 0.25, 0.1, 0.25, 1.0";
animation = "windows, 1, 7, ease";
};
misc.force_default_wallpaper = 0;
};
};
xdg.configFile."hypr/hyprpaper.conf".text = ''
preload = ${wallpaper}
wallpaper = ,${wallpaper}
'';
home.stateVersion = "24.05";
}