-
Notifications
You must be signed in to change notification settings - Fork 1
/
configuration.nix.example
105 lines (83 loc) · 2.39 KB
/
configuration.nix.example
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
{ config, pkgs, lib, ... }:
{
imports = [
./hardware-configuration.nix # use `nixos-generate-config`
./modules
./local/proxy.nix
./local/mirror.nix
./local/cloud.nix
];
vonfry = {
enable = true;
userConfiguration = {
openssh.authorizedKeys.keys = [
];
};
homeConfiguration = { config, pkgs, lib, ... }:
{
# xsession.enable = lib.mkForce false;
xsession.initExtra = ''
# . .screenlayout/dual_monitor.sh
'';
home.sessionVariables = {
# GITHUB_TOKEN = "";
};
programs = {
gpg.settings = {
# default-key = "";
};
zsh.shellAliases = {
};
};
vonfry = {
game.enable = true;
development = {
# git.signKey = "";
};
};
imports = [ ./local/vonfry/cloud.nix ];
};
};
services.xserver.dpi = 96;
nix.settings = {
trusted-public-keys = lib.mkBefore [ ];
cores = 0;
max-jobs = "auto";
};
services.openssh.enable = true;
security.doas.wheelNeedsPassword = lib.mkForce false;
boot.supportedFilesystems = [ "ntfs" ];
# services.fprintd.enable = true;
# services.hardware.bolt.enable = true;
# For windows 11 the support of secure boot for ovmf and tpm are needed.
# virtualisation.libvirtd.qemu = {
# swtpm.enable = true;
# vhostUserPackages = [ pkgs.virtiofsd ];
# ovmf.packages = [ pkgs.OVMFFull.fd ];
# };
# networking.hostName = "nixos"; # Define your hostname.
# networking.hosts = {
# };
# networking.firewall = {
# enable = true;
# allowedTCPPorts = [ ];
# allowedTCPPortRanges = [
# { from = 5900; to = 5902; } # vnc
# { from = 8000; to = 8100; } # for some temporary public service
# ];
# allowedUDPPorts = [ ];
# allowedTCPPortRanges = [];
# allowedUDPPorts = [ ];
# };
# nesting.clone = [];
# N.B. boot loader
# N.B. network
# networking.proxy.default = "http://user:password@proxy:port/";
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
# systemd.services.nix-daemon.environment = {
# http_proxy = "prot://user:password@proxy:port";
# https_proxy = "prot://user:password@proxy:port";
# ftp_proxy = "prot://user:password@proxy:port";
# };
# environment.systemPackages = with pkgs; [ nvtopPackages.intel intel-gpu-tools ];
}