blob: 39e76a2799f92c8a666e2e9b7557799fc42bfa97 (
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
|
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page, on
# https://search.nixos.org/options and in the NixOS manual (`nixos-help`).
{
config,
lib,
pkgs,
modulesPath,
candelabra,
...
}: {
imports = [
(modulesPath + "/profiles/qemu-guest.nix")
];
environment.systemPackages = with pkgs; [
git
just
candelabra # :D
];
nix = {
settings.experimental-features = ["nix-command" "flakes" "ca-derivations"];
};
networking.hostName = "candelabra";
networking.useDHCP = lib.mkDefault true;
time.timeZone = "Europe/London";
i18n.defaultLocale = "en_US.UTF-8";
# SSH Access
services.openssh = {
enable = true;
settings.PermitRootLogin = "yes";
};
users.users.root.password = "candelabra";
services.getty.autologinUser = "root";
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
system.stateVersion = "23.11";
system.activationScripts.copy-candelabra-src = ''
echo "copying candelabra source to /root/...";
cp -r ${../.} /root/candelabra;
'';
}
|