mirror of
https://github.com/archtechx/nix.git
synced 2025-12-12 11:24:04 +00:00
Initial commit
This commit is contained in:
commit
5fab1dceed
9 changed files with 598 additions and 0 deletions
34
anywhere/configuration.nix
Normal file
34
anywhere/configuration.nix
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
# This config only configures the server, it will not be placed in /etc/nixos
|
||||
# It should include everything needed to:
|
||||
# - connect to the server
|
||||
# - configure the server further
|
||||
|
||||
{ modulesPath, lib, pkgs, ... }: {
|
||||
imports = [
|
||||
(modulesPath + "/installer/scan/not-detected.nix")
|
||||
(modulesPath + "/profiles/qemu-guest.nix")
|
||||
./disk-config.nix
|
||||
];
|
||||
|
||||
boot.loader.grub = {
|
||||
# no need to set devices, disko will add all devices that have a EF02 partition to the list already
|
||||
# devices = [ ];
|
||||
efiSupport = true;
|
||||
efiInstallAsRemovable = true;
|
||||
};
|
||||
|
||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||
|
||||
environment.systemPackages = map lib.lowPrio [
|
||||
pkgs.vim
|
||||
pkgs.curl
|
||||
pkgs.git
|
||||
];
|
||||
|
||||
services.openssh.enable = true;
|
||||
users.users.root.openssh.authorizedKeys.keys = [
|
||||
# REPLACEME
|
||||
];
|
||||
|
||||
system.stateVersion = "25.05";
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue