blob: a25322b4ed8fce5f2aa244699ffec0cfa21bfac1 (
plain)
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
|
{
config,
lib,
pkgs,
...
}: {
imports = [
# Include the results of the hardware scan.
./hardware-configuration.nix
../../shared/nixos/common-nix-settings
../../shared/nixos/common-shell-settings
../../shared/nixos-and-darwin/common-hm-settings
../../shared/nixos/zfs-impermenance
../../shared/nixos/persist-ssh-host-keys
./wireless-networking
];
boot.loader.grub = {
# Use the GRUB 2 boot loader.
enable = true;
# Install grub on the main HDD.
device = "/dev/sda";
# ZFS on root requires GRUB to be able to read the pool.
# The pool was created with `-o compatibility=grub2`.
zfsSupport = true;
};
# The host id is required by ZFS.
# It is used to (among other things) avoid multiple hosts modifying the same dataset unsafely.
# This was randomly generated.
networking.hostId = "b6e8e80a";
# Should match containing folder.
networking.hostName = "omar";
# Create the main user.
users.users.linus = {
isNormalUser = true;
hashedPassword = "$y$j9T$UmZES4WC8FWrjBvdazq2e/$rzneAKZeySwSVKiSZJfXC.fciiQdGqxB5uyRaPQ6OF.";
extraGroups = ["wheel"];
};
users.mutableUsers = false;
home-manager.users.linus = {
imports = [
# I am planning on using this host when traveling.
../../shared/home-manager/development-full
];
home.stateVersion = "24.11";
};
# Enable the X11 windowing system.
# services.xserver.enable = true;
# Configure keymap in X11
# services.xserver.xkb.layout = "us";
# services.xserver.xkb.options = "eurosign:e,caps:escape";
# Enable CUPS to print documents.
# services.printing.enable = true;
# Enable sound.
# hardware.pulseaudio.enable = true;
# OR
# services.pipewire = {
# enable = true;
# pulse.enable = true;
# };
# Enable touchpad support (enabled default in most desktopManager).
# services.libinput.enable = true;
# Enable the OpenSSH daemon.
services.openssh.enable = true;
system.stateVersion = "24.11";
}
|