chore: Add base configuration.
This commit is contained in:
parent
a92de43a60
commit
612c7e2f16
18 changed files with 700 additions and 10 deletions
59
hosts/andromeda/configuration.nix
Executable file
59
hosts/andromeda/configuration.nix
Executable file
|
@ -0,0 +1,59 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
outputs,
|
||||
inputs,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
../../system/nix.nix
|
||||
../../system/sops.nix
|
||||
../../system/impermanence.nix
|
||||
../../system/sshd.nix
|
||||
../../system/avahifixes.nix
|
||||
../../system/i18n.nix
|
||||
];
|
||||
|
||||
sops.secrets.tera-password.neededForUsers = true;
|
||||
users.mutableUsers = false;
|
||||
|
||||
users.users.tera = {
|
||||
uid = 1000;
|
||||
description = "Tera";
|
||||
home = "/home/tera";
|
||||
hashedPasswordFile = config.sops.secrets.tera-password.path;
|
||||
isNormalUser = true;
|
||||
createHome = true;
|
||||
shell = pkgs.bash;
|
||||
|
||||
extraGroups = [
|
||||
"wheel"
|
||||
"networkmanager"
|
||||
"audio"
|
||||
"docker"
|
||||
"input"
|
||||
"plugdev"
|
||||
];
|
||||
|
||||
openssh.authorizedKeys.keys = [
|
||||
(builtins.readFile ../../secrets/id_user.pub)
|
||||
];
|
||||
};
|
||||
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
networking.hostName = "andromeda";
|
||||
networking.networkmanager.enable = true;
|
||||
boot.supportedFilesystems = [];
|
||||
|
||||
# Services
|
||||
services.docker.enable = true;
|
||||
|
||||
environment.systemPackages = builtins.attrValues {
|
||||
inherit (pkgs.unstable) htop btop micro nano;
|
||||
};
|
||||
|
||||
system.stateVersion = "24.11";
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue