blob: 0db0917afba2a61cebff801a7c6ae9d5f5e564cd (
plain)
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
137
138
139
140
141
142
143
144
145
146
147
148
149
|
{ username, nix-colors, config, pkgs, lib, ... }:
let
nvim-spell-pl-utf8-dict = builtins.fetchurl {
url = "http://ftp.vim.org/vim/runtime/spell/pl.utf-8.spl";
sha256 = "1sg7hnjkvhilvh0sidjw5ciih0vdia9vas8vfrd9vxnk9ij51khl";
};
lux-scheme = builtins.fetchurl {
url = "https://git.jptrzy.xyz/lux-theme/plain/lux-theme.yaml";
};
nix-colors-lib = nix-colors.lib.contrib { inherit pkgs; };
schemeFromYaml = import ./schemeFromYAML.nix;
in {
imports = [
nix-colors.homeManagerModules.default
#./addons/firefox.nix
#./addons/alacritty.nix
#./addons/xresources.nix
./addons/sway.nix
];
colorScheme = schemeFromYaml "lux-scheme" (builtins.readFile lux-scheme);
home.username = "${username}";
home.homeDirectory = "/home/${username}";
home.stateVersion = "22.05"; # Please read the comment before changing.
# Allow Specific Unfree Packages
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
# Add additional package names here
"pureref"
"hplip"
];
home.packages = [
pkgs.libnotify
pkgs.dmenu-bluetooth
#pkgs.pureref
pkgs.hplipWithPlugin
(import ./sh/screenshot.nix {inherit pkgs; })
(import ./sh/wp.nix {inherit pkgs; })
(import ./sh/colors.nix {inherit pkgs; })
(import ./sh/yt.nix {inherit pkgs; })
(import ./sh/mpv.nix {inherit pkgs; })
];
nixpkgs.config.packageOverrides = pkgs: {
nur = import (builtins.fetchTarball "https://github.com/nix-community/NUR/archive/master.tar.gz") {
inherit pkgs;
};
};
home.file = {
".config/nvim/spell/pl.utf-8.spl".source = nvim-spell-pl-utf8-dict;
".local/share/gnupg/gpg-agent.conf".text = ''
debug-pinentry
debug ipc
verbose
enable-ssh-support
# disable-scdaemon
#pinentry-program /run/current-system/sw/bin/pinentry
pinentry-program /run/current-system/sw/bin/pinentry-gtk-2
'';
};
dconf = {
enable = true;
settings = {
"org/gnome/desktop/interface" = {
color-scheme = "prefer-dark";
};
};
};
gtk = {
enable = true;
font.name = "Neo Comic Mono 12";
#theme = {
# name = "lux-scheme";
# package = nix-colors-lib.gtkThemeFromScheme {
# scheme = config.colorScheme;
# };
#};
#iconTheme = {
# name = "Adwaita";
# package = pkgs.gnome.adwaita-icon-theme;
#};
#cursorTheme = {
# name = "Adwaita";
# package = pkgs.gnome.adwaita-icon-theme;
#};
};
programs = {
bash = {
enable = true;
shellAliases = {
calculator = "${pkgs.bc}/bin/bc -l";
nr = "sudo nixos-rebuild switch";
hr = "home-manager switch";
se = "sudoedit";
trans = "${pkgs.sdcv}/bin/sdcv --color";
yta = "yt-dlp -x --audio-format vorbis";
reading = "curl 'http://feed.evangelizo.org/v2/reader.php?lang=PL&type=all' | sed 's#\W+##g;s#<br />##g;s#<font dir=\"ltr\">##g;s#</font>##g'";
};
sessionVariables = {
EDITOR = "nvim";
PATH = "$PATH:$HOME/.local/bin";
XDG_DATA_HOME = "$HOME/.local/share";
XDG_CONFIG_HOME = "$HOME/.config";
XDG_STATE_HOME = "$HOME/.local/state";
XDG_CACHE_HOME = "$HOME/.cache";
HISTFILE = "$HOME/.local/state/bash/history";
GNUPGHOME = "$HOME/.local/share/gnupg";
PASSWORD_STORE_DIR = "$HOME/.local/share/pass";
#QT_STYLE_OVERRIDE=adwaita
#QT_QPA_PLATFORMTHEME=gnome
};
};
git = {
enable = true;
userEmail = "jptrzy@gmail.com";
userName = "Jakub Trzeciak";
signing = {
key = "FC040CC63D2527E3";
signByDefault = true;
};
};
};
}
|