-
Notifications
You must be signed in to change notification settings - Fork 0
/
default.nix
58 lines (56 loc) · 1.22 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
{ pkgs, config, lib, ... }:
let
optionalImport = name:
let
pname = "/" + name;
pnamex = pname + ".nix";
in
if builtins.pathExists (./. + pname + "/default.nix")
then [ (./. + pname) ]
else if builtins.pathExists (./. + pnamex)
then [ (./. + pnamex) ]
else
[];
optionalImports = imports: lib.flatten (map optionalImport imports);
in {
imports = [
./nixos
] ++ (optionalImports [
"secrets"
"nda"
]);
config = {
local = {
user = {
login = "shved";
name = "Yury Shvedov";
};
kl = {
#remote.enable = true;
domain = {
#enable = false;
#host = "nda";
#dockerName = "nda";
};
};
gnupass = {
#enable = true;
#giturl = "secret";
#gpgid = "secret";
};
#threed.enable = false;
#optimus.enable = true;
};
programs = {
firefox.enable = false;
chromium = {
enable = true;
};
};
services = {
spotify.daemon = false; # Spotifyd is a piece of crap
};
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
systemd.services.nix-daemon.environment.TMPDIR = "/home/.nix-build";
};
}