-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdefault.nix
executable file
·115 lines (96 loc) · 2.55 KB
/
default.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
{ config, pkgs, secrets, username, homeDirectory, stateVersion, machine-settings, inputs, ... }:
{
home = {
inherit username homeDirectory stateVersion;
};
home.sessionVariables = {
NIXPKGS_ALLOW_UNFREE = "1";
NIXPKGS_ALLOW_BROKEN = "1";
};
imports = [
../lemon/helix.nix
] ++ machine-settings.mkHomeModulePaths [
./spotify.nix
./haskell.nix
./rust.nix
./vulkan-glfw.nix
./gaming.nix
];
# zsh
programs.zsh = {
enable = true;
shellAliases = {
rebuild-system = ''echo -e "\x1b[0;32mNixOs\x1b[0m" && sudo nixos-rebuild switch --flake /etc/nixos --impure && echo -e "\x1b[0;32mHome-manager\x1b[0m" && home-manager switch --flake /etc/nixos --impure'';
rebuild-system-trace = ''echo -e "\x1b[0;32mNixOs\x1b[0m" && sudo nixos-rebuild switch --show-trace --flake /etc/nixos --impure && echo -e "\x1b[0;32mHome-manager\x1b[0m" && home-manager switch --show-trace --flake /etc/nixos --impure'';
update-dots = ''export GOBACK="$(pwd)" && cd /etc/nixos && git pull && ./update-dots.sh && cd $GOBACK'';
notif = "ntfy send";
"..." = "../..";
"...." = "../../..";
"....." = "../../../..";
};
oh-my-zsh = {
enable = true;
plugins = [ "git" ];
theme = "darkblood";
};
};
# Git
programs.git = {
enable = true;
userName = "LemonjamesD";
userEmail = "[email protected]";
extraConfig = {
credential.helper = "store";
safe.directory = "*";
init.defaultBranch = "main";
};
};
programs.gh = {
enable = true;
gitCredentialHelper = {
enable = true;
};
};
programs.gpg = {
enable = true;
settings = {
default-key = "06408C83157BC3925756EBFA1428E0EE4572A07B";
};
};
home.sessionPath = [
"$HOME/.cargo/bin"
];
home.packages = with pkgs; [
firefox
syncthing
keepassxc
inputs.hypr-contrib.packages.${pkgs.system}.grimblast
pavucontrol
kdenlive
openssl
brightnessctl
# Better audio suppression
noisetorch
htop
hyperfine
glxinfo
# obsidian
syncthing
stremio
# pi pico
openocd
flip-link
];
services.flatpak = {
remotes = {
"flathub" = "https://flathub.org/repo/flathub.flatpakrepo";
"flathub-beta" = "https://flathub.org/beta-repo/flathub-beta.flatpakrepo";
};
packages = [
"flathub:com.discordapp.Discord//stable"
"flathub:de.shorsh.discord-screenaudio//stable"
"flathub:xyz.armcord.ArmCord//stable"
"flathub:org.vinegarhq.Sober//stable"
];
};
}