-
Notifications
You must be signed in to change notification settings - Fork 0
/
purple.nix
130 lines (109 loc) · 3.86 KB
/
purple.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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, lib, ... }@args:
let
secrets = import ./secrets;
in
{
imports =
[ # Include the results of the hardware scan.
./common.nix
./common-gui.nix
# broken in kernel v6.9-rc2
./zen.nix
];
boot.tmp = {
useTmpfs = true;
tmpfsSize = "50%";
};
hardware.cpu.amd.updateMicrocode = true;
boot.extraModulePackages = [ ];
# networking.bridges.br0.interfaces = [ "enp6s0" ];
# networking.interfaces.br0.useDHCP = true;
programs.corectrl.enable = true;
security.polkit.enable = true;
boot.kernel.sysctl = {
"sched_latency_ns" = "1000000";
"sched_min_granularity_ns" = "100000";
"sched_migration_cost_ns" = "7000000";
};
#environment.variables = {
# __GL_SYNC_DISPLAY_DEVICE = "DisplayPort-0";
#};
# Enable CUPS to print documents.
services.printing.enable = true;
services.printing.drivers = [ pkgs.hplip ] ;
# Enable touchpad support (enabled default in most desktopManager).
# services.xserver.libinput.enable = true;
# Define a user account. Don't forget to set a password with ‘passwd’.
# List packages installed in system profile. To search, run:
# $ nix search wget
nixpkgs.config.allowUnfree = true;
environment.systemPackages = with pkgs; [
rtorrent
# broken in kernel v6.9-rc2
# config.boot.kernelPackages.perf
];
hardware.cpu.amd.ryzen-smu.enable = true;
programs.ryzen-monitor-ng.enable = true;
# KVM stuff
# boot.blacklistedKernelModules = ["amdgpu" "radeon" ];
#boot.extraModulePackages = [ config.boot.kernelPackages.vendor-reset config.boot.kernelPackages.v4l2loopback ];
#boot.initrd.kernelModules = [ vfio-pci ];
#boot.kernelParams = [
# "amd_iommu=on"
# "vfio_virqfd"
# "vfio_pci"
# "vfio_iommu_type1"
# "vfio"
# "trace_event=kmem:kmalloc,kmem:kmem_cache_alloc,kmem:kfree,kmem:kmem_cache_free"
# "trace_buf_size=128M"
# ];
#boot.extraModprobeConfig = ''
# softdep amdgpu pre: vfio-pci
# options vfio-pci ids=1002:67df,1002:aaf0
#'';
#virtualisation = {
# libvirtd = {
# enable = true;
# qemu.ovmf.enable = true;
# onBoot = "ignore";
# qemu.verbatimConfig = ''
# user = "daniel"
# '';
# };
#};
services.samba = {
enable = true;
securityType = "user";
extraConfig = ''
'';
shares = {
oldMedia = {
"guest okay" = "yes";
path = "/media/old";
browseable = "yes";
"valid users" = "daniel";
};
};
};
#environment.variables = {
# VST_PATH = "/nix/var/nix/profiles/default/lib/vst:/var/run/current-system/sw/lib/vst:~/.vst";
# LXVST_PATH = "/nix/var/nix/profiles/default/lib/lxvst:/var/run/current-system/sw/lib/lxvst:~/.lxvst";
# LADSPA_PATH = "/nix/var/nix/profiles/default/lib/ladspa:/var/run/current-system/sw/lib/ladspa:~/.ladspa";
# LV2_PATH = "/nix/var/nix/profiles/default/lib/lv2:/var/run/current-system/sw/lib/lv2:~/.lv2";
# DSSI_PATH = "/nix/var/nix/profiles/default/lib/dssi:/var/run/current-system/sw/lib/dssi:~/.dssi";
#};
# Open ports in the firewall.
# Or disable the firewall altogether.
networking.firewall.enable = false;
# security.sudo.wheelNeedsPassword = false;
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. It‘s perfectly fine and recommended to leave
# this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "21.03"; # Did you read the comment?
}