-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault.nix
87 lines (71 loc) · 2.5 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
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
# 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, inputs, pkgs, lib, ... }:
{
imports = [
./hardware-configuration-extra.nix
./hardware-configuration.nix
inputs.srvos.nixosModules.mixins-systemd-boot
inputs.self.nixosModules.desktop
inputs.self.nixosModules.gnome
];
#boot.kernelPackages = pkgs.linuxPackages_latest;
boot.kernelModules = [ "v4l2loopback" ];
boot.extraModprobeConfig = ''
options kvm_intel nested=1
options kvm_intel emulate_invalid_guest_state=0
options kvm ignore_msrs=1
options v4l2loopback card_label="OBS Video Source"
options v4l2loopback exclusive_caps=1
options v4l2loopback video_nr=10
'';
boot.extraModulePackages = with config.boot.kernelPackages; [ v4l2loopback ];
hardware.opengl.enable = true;
hardware.pulseaudio.enable = lib.mkForce false;
networking.hostName = "no1"; # Define your hostname.
networking.firewall.interfaces.ztr2q47jsy.allowedTCPPorts = [
22000 # syncthing
];
networking.firewall.interfaces.ztr2q47jsy.allowedUDPPorts = [
22000 # syncthing
];
networking.networkmanager.enable = true;
nix.nixPath = [
"nixpkgs=${toString pkgs.path}"
];
nix.settings.sandbox = "relaxed";
# nix.buildMachines = [
# {
# hostName = "macos1.zt";
# sshUser = "zimbatm";
# sshKey = "/root/.ssh/id_rsa";
# system = "x86_64-darwin";
# maxJobs = 2;
# }
# ];
# Flatpak
services.flatpak.enable = true;
xdg.portal.enable = true;
# Enable the OpenSSH daemon.
services.openssh.enable = true;
services.printing.enable = true;
services.printing.drivers = with pkgs; [ gutenprint hplip ];
# DavFS
services.davfs2.enable = true;
services.xserver.wacom.enable = true;
# services.xserver.upscaleDefaultCursor = lib.mkForce false;
home-manager.users.zimbatm = {
imports = [ inputs.self.homeModules.desktop ];
config.home.stateVersion = "22.11";
};
# This value determines the NixOS release with which your system is to be
# compatible, in order to avoid breaking some software such as database
# servers. You should change this only after NixOS release notes say you
# should.
system.stateVersion = "19.09"; # Did you read the comment?
# Set your time zone.
time.timeZone = "Europe/Paris";
virtualisation.docker.storageDriver = "btrfs";
#virtualisation.libvirtd.enable = true;
}