Skip to content

Commit 53ff675

Browse files
augu5tenpf
authored andcommitted
[nixos-19.09] cleaning configuration.nix
1 parent 5d662dc commit 53ff675

File tree

1 file changed

+18
-37
lines changed

1 file changed

+18
-37
lines changed

steps/data/configuration.nix

+18-37
Original file line numberDiff line numberDiff line change
@@ -9,47 +9,17 @@
99
[ # Include the results of the hardware scan.
1010
./hardware-configuration.nix
1111
];
12-
# Use the GRUB 2 boot loader.
13-
boot.loader.grub.enable = true;
14-
boot.loader.grub.version = 2;
15-
# boot.loader.grub.efiSupport = true;
16-
# boot.loader.grub.efiInstallAsRemovable = true;
17-
# boot.loader.efi.efiSysMountPoint = "/boot/efi";
18-
# Define on which hard drive you want to install Grub.
19-
# boot.loader.grub.device = "/dev/sda"; # or "nodev" for efi only
20-
21-
networking.hostName = ""; # Define your hostname.
22-
23-
# Select internationalisation properties.
24-
# i18n = {
25-
# consoleFont = "Lat2-Terminus16";
26-
# consoleKeyMap = "us";
27-
# defaultLocale = "en_US.UTF-8";
28-
# };
29-
30-
# Set your time zone.
31-
# time.timeZone = "Europe/Amsterdam";
32-
12+
3313
# List packages installed in system profile. To search, run:
3414
# $ nix search wget
3515
environment.systemPackages = with pkgs; [
36-
netcat-gnu
37-
wget
38-
vim
39-
];
40-
41-
# Define a user account. Don't forget to set a password with ‘passwd’.
42-
# users.extraUsers.guest = {
43-
# isNormalUser = true;
44-
# uid = 1000;
45-
# };
46-
47-
services.openssh = {
48-
enable = true;
49-
startWhenNeeded = true;
50-
};
16+
wget
17+
vim
18+
];
5119

52-
systemd.services."serial-getty@ttyS0".enable = true;
20+
# Use the GRUB 2 boot loader.
21+
boot.loader.grub.enable = true;
22+
boot.loader.grub.version = 2;
5323
boot.loader.grub.device = "/dev/sda3";
5424
boot.loader.grub.forceInstall = true;
5525

@@ -59,8 +29,19 @@
5929
terminal_input serial;
6030
terminal_output serial
6131
'';
32+
systemd.services."serial-getty@ttyS0".enable = true;
6233

34+
networking.hostName = ""; # Dhcp will set hostname
6335
networking.firewall.enable = false;
36+
37+
# Set your time zone.
38+
time.timeZone = "Europe/Paris";
39+
40+
services.openssh = {
41+
enable = true;
42+
startWhenNeeded = true;
43+
};
44+
6445

6546
# This value determines the NixOS release with which your system is to be
6647
# compatible, in order to avoid breaking some software such as database

0 commit comments

Comments
 (0)