-
Notifications
You must be signed in to change notification settings - Fork 4
/
flake.nix
83 lines (75 loc) · 3.32 KB
/
flake.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
# Fantastic Fake Flake For Fooling Flake tests‽
# 🥸 Should be valid nix, but also double as a mustache template.
{
description = "{{user}}'s flake";
inputs = { };
outputs = inputs@{ self, ... }: {
lib = {
user = /*Default is dylan (hi) for testing reasons.{{#unless user}}*/ "dylan";
#{{else}}*/ "{{user}}";{{/unless}}
# Change this with `mkpasswd -m sha512crypt`.
hashed = "{{hashed}}";
# Defaults to "/home/{{user}}/.dots"
# You can change this manually. Just sure make you manually move the folder.
dots = "{{dots}}";
default_wm = "{{default_wm}}";
networking = /*Networking 📡📡📡{{#unless networking}}*/ { };
#{{else}}*/{{{networking}}};{{/unless}}
sshd = {
enable = /*Disabled for live images.{{#if sshd}}*/ true;
#{{else}}*/ false;{{/if}}
port = /*{{#unless sshd_port}}*/ 22;
#{{else}}*/ {{sshd_port}}; #{{/unless}}
};
keybase = {
enable = /*Only relevant for live images.{{#if keybase}}*/ true;
#{{else}}*/ false;{{/if}}
username = "{{keybase_username}}";
paper = ''{{{keybase_paper}}}'';
};
git = {
enable = /*User particular information.{{#if git}}*/ true;
#{{else}}*/ false;{{/if}}
name = "{{git_name}}";
email = "{{git_email}}";
signing = {
enable = /*Enforce signatures.{{#if git_signing}}*/ true;
#{{else}}*/ false;{{/if}}
key = "{{git_signing_key}}";
};
};
certificates = {
#{{{certificates}}}
};
# Specific programs that are unfree
# nvidia in here for testing purposes with my hardware.
# Remove or change for your systems.
unfree = [ "nvidia-x11" "libXNVCtrl" "nvidia-settings" ];
# Allow all unfree programs
sellout = false;
# Hopefully this is normally empty.
insecure = [ ];
# getty can be just as pretty as lightdm imho.
# example getty response
# ▄▄▄▄▄▄▄ ▄ ▄▄ ▄ ▄▄▄ ▄▄▄▄▄▄▄ Linux \r (\m)
# █ ▄▄▄ █ ▀ ▀ ▄█▀█▀ ▄ █ ▄▄▄ █ nixpkgs/${pkgs_rev}
# █ ███ █ ▀█▀ ▀ ▀ █▀ ▄▄ █ ███ █ dots/${dots_rev}
# █▄▄▄▄▄█ █▀▄▀█ ▄▀█▀█ █ █▄▄▄▄▄█ \d
# ▄▄▄▄▄ ▄▄▄█▀█ ▀▄▀▄▀█▀▄ ▄ ▄ ▄
# █▄▀██▀▄▄█ █ ▀██▄██▀▀██▀██▀▀▀▀
# ▀▄█▄ █▄▄▀▄▄ █▀▄ ▀▄█▄▀ ▀ ▀█▄▄▄
# ▀███ ▄▄█▄ ▄▄▄ ▄▀█▀▀▀ ▀▀█▀ ▀▀
# ██▀ ▀▀▄█▀ ██ ▀▀▀▄▀ █▀ █▀▀▄▄
# █▀▀ ▀█▄▀ ▀▄ ▀██▄█ ▀██ ▀▀██▀▀
# █ ▄█▀▄▄ ▄ ▀ █▀▄ ▀▄▀▀▄█▄█▄▄▄ ▄
# ▄▄▄▄▄▄▄ █▄ ▄▄ ▄▀ ▀██ ▄ █ █▀▀
# █ ▄▄▄ █ ▄ ██ ▀ ▀▄ ▀█▄▄▄█▀▄▀
# █ ███ █ █ ▀██▄▀▄███ ▄▄▄▄▄█▀
# █▄▄▄▄▄█ █ ▄ █▀▄▀ ▄ ▄▀█ █ ▀▄▀
#
getty = pkgs_rev: dots_rev: ''
{{getty}}
'';
};
};
}