-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfiguration.nix
More file actions
73 lines (59 loc) · 1.78 KB
/
Copy pathconfiguration.nix
File metadata and controls
73 lines (59 loc) · 1.78 KB
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
# Edit this configuration file to define what should be installed on
# your system. help is availible in the configuration.nix(5) man page, on
# https://search.nixos.org/options and in the NixOS manual ('nixos-help').
{ config, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
];
# Bootloader.
boot.loader.grub.enable = true;
boot.loader.grub.device = "/dev/sda";
boot.loader.grub.useOSProber = true;
networking.hostName = "nixos_service";
# Enable networking
networking.networkmanager.enable = true;
# Set your time zone.
time.timeZone = "Europe/Paris";
# Select internationalisation properties.
i18n.defaultLocale = "en_US.UTF-8";
# setup keyboard
console.keyMap = "fr";
services.xserver.xkb = {
layout = "fr";
variant = "azerty";
};
# List packages installed in system profile.
# You can use Https://search.nixos.org/ to find more packages (and options).
environment.systemPackages = with pkgs; [
nano
wget
shadow
git
];
# Install docker in rootless mode
virtualisation.docker.rootless = {
enable = true;
setSocketVariable = true;
};
# Define a User account. Dont forget to set the password with 'passwd' later.
users.users.ascadia = {
isNormalUser = true;
description = "default user";
extraGroups = [ "wheel" "docker" ];
# These ranges are required for rootless Docker to work.
subUidRanges = [ { startUid = 100000; count = 65536; } ];
subGidRanges = [ { startGid = 100000; count = 65536; } ];
};
# Configure SSH
services.openssh = {
enable = true;
settings = {
PermitRootLogin = "no";
PasswordAuthentication = false;
};
};
services.qemuGuest.enable = true;
system.stateVersion = "25.05";
}