-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfiguration.nix
96 lines (71 loc) · 1.94 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
{ config, lib, pkgs, ... }:
let
home-manager = builtins.fetchTarball "https://github.com/nix-community/home-manager/archive/master.tar.gz";
in
{
imports =
[
./hardware-configuration.nix
(import "${home-manager}/nixos")
];
nix.settings.experimental-features = [ "nix-command" "flakes" ];
# --- GRUB --- #
#boot.loader.grub.enable = true;
#boot.loader.grub.device = "nodev";
#boot.loader.grub.useOSProber = true;
# --- SYSTEMD-BOOT --- #
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.supportedFilesystems = [ "ntfs" ];
networking.hostName = "NixOS";
# networking.wireless.enable = true;
networking.networkmanager.enable = true;
# services.wpaSupplicant.enable = true;
hardware.bluetooth.enable = true;
hardware.bluetooth.powerOnBoot = true;
services.blueman.enable = true;
time.timeZone = "Europe/Berlin";
services.xserver.xkb.layout = "us";
sound.enable = true;
hardware.pulseaudio.enable = true;
services.xserver.libinput.enable = true;
programs.fish.enable = true;
networking.firewall = {
enable = true;
allowedTCPPorts = [ 80 8000];
};
hardware.opengl.enable = true;
users.users.fabian = {
initialPassword = "1234";
isNormalUser = true;
extraGroups = [ "wheel" ];
shell = pkgs.fish;
packages = with pkgs; [
];
};
fonts.packages = with pkgs; [
noto-fonts
noto-fonts-cjk
noto-fonts-emoji
liberation_ttf
fira-code
fira-code-symbols
mplus-outline-fonts.githubRelease
dina-font
proggyfonts
(nerdfonts.override { fonts = [ "FiraCode" "DroidSansMono" ]; })
];
nixpkgs.config.allowUnfree = true;
environment.systemPackages = with pkgs; [
firefox
vim
git
curl
wget
];
# Virt & Docker #
virtualisation.docker.enable = true;
services.openssh.enable = true;
system.stateVersion = "23.11";
}