-
Notifications
You must be signed in to change notification settings - Fork 0
/
configuration.nix
104 lines (90 loc) · 2.28 KB
/
configuration.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
{ pkgs, ... }:
let
user = "aegis";
in
{
imports = [
./hardware-configuration.nix
./system/wm/wayland/hypr.nix
./system/fonts.nix
./system/packages.nix
./system/vm.nix
./system/gaming.nix
./system/keybinds.nix
./system/power-management.nix
./system/pentesting.nix
];
# Bootloader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.kernelParams = [ "acpi_backlight=native" ]; # DEP: Fix this
networking = {
hostName = "conduit";
networkmanager.enable = true;
networkmanager.dns = "none";
useDHCP = false;
dhcpcd.enable = false;
nameservers = [
"1.1.1.1"
"1.0.0.1"
"8.8.8.8"
];
};
hardware.bluetooth.enable = true;
hardware.bluetooth.powerOnBoot = true;
services.blueman.enable = true;
time.timeZone = "America/Denver";
# Select internationalisation properties.
i18n.defaultLocale = "en_US.UTF-8";
i18n.extraLocaleSettings = {
LC_ADDRESS = "en_US.UTF-8";
LC_IDENTIFICATION = "en_US.UTF-8";
LC_MEASUREMENT = "en_US.UTF-8";
LC_MONETARY = "en_US.UTF-8";
LC_NAME = "en_US.UTF-8";
LC_NUMERIC = "en_US.UTF-8";
LC_PAPER = "en_US.UTF-8";
LC_TELEPHONE = "en_US.UTF-8";
LC_TIME = "en_US.UTF-8";
};
# Enable CUPS to print documents.
services.printing.enable = true;
services.printing.drivers = [ pkgs.brlaser ];
services.avahi = {
enable = true;
nssmdns4 = true;
openFirewall = true;
};
# Enable sound with pipewire.
services.pulseaudio.enable = false;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
# Define a user account. Don't forget to set a password with ‘passwd’.
users.users.${user} = {
isNormalUser = true;
description = "${user}";
extraGroups = [ "networkmanager" "wheel" ];
shell = pkgs.zsh;
ignoreShellProgramCheck = true;
};
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
nix = {
package = pkgs.nixVersions.stable;
extraOptions = ''
experimental-features = nix-command flakes
'';
};
hardware.graphics = {
enable = true;
extraPackages = with pkgs; [
intel-media-sdk
];
};
system.stateVersion = "23.11";
}