-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfiguration.nix
98 lines (83 loc) · 2.04 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
{ config, pkgs, ... }:
{
imports = [
./hardware-configuration.nix
./nvidia.nix
./steam.nix
./packages.nix
];
# Bootloader
boot.loader = {
efi = {
canTouchEfiVariables = true;
efiSysMountPoint = "/boot/efi";
};
grub = {
devices = [ "nodev" ];
efiSupport = true;
enable = true;
extraEntries = ''
menuentry "Windows" {
insmod part_gpt
insmod fat
insmod search_fs_uuid
insmod chain
search --fs-uuid --set=root C0B4-0696
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}
'';
version = 2;
};
};
# Enable networking
networking.networkmanager.enable = true;
networking.hostName = "KakuPC";
# networking.wireless.enable = true;
# Time Zone
time.timeZone = "Australia/Perth";
# Internationalisation properties
i18n.defaultLocale = "en_AU.utf8";
# X11 windowing system.
services.xserver.enable = true;
# Enable GNOME Desktop Environment
services.xserver.displayManager.gdm.enable = true;
services.xserver.desktopManager.gnome.enable = true;
# Keymap in X11
services.xserver = {
layout = "au";
xkbVariant = "";
};
# Enable Printing
services.printing.enable = true;
# Enable sound with pipewire
sound.enable = true;
hardware.pulseaudio.enable = false;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
#jack.enable = true;
};
# User Account
users.users.sensokaku = {
isNormalUser = true;
description = "Sensokaku";
extraGroups = [ "networkmanager" "wheel" ];
};
# Qt Theme
qt5 = {
enable = true;
style = "adwaita-dark";
platformTheme = "gnome";
};
# Enable OpenSSH daemon
# services.openssh.enable = true;
# Firewall Porting
# networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ];
# networking.firewall.enable = false;
# NixOS Version
system.stateVersion = "22.05";
}