server setup?

This commit is contained in:
Till 2024-11-20 16:05:27 +01:00
parent 3a24e4beec
commit e5c2b86918
2 changed files with 55 additions and 1 deletions

View file

@ -11,6 +11,7 @@
outputs = { self, nixpkgs, home-manager, ... }@inputs: { outputs = { self, nixpkgs, home-manager, ... }@inputs: {
nixosConfigurations = { nixosConfigurations = {
nova = nixpkgs.lib.nixosSystem { nova = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs; }; specialArgs = { inherit inputs; };
modules = [ modules = [
@ -20,7 +21,6 @@
./system ./system
./system/hardware-nova.nix ./system/hardware-nova.nix
./system/gnome.nix ./system/gnome.nix
# ./system/plasma.nix
./system/btrbk.nix ./system/btrbk.nix
./system/yubikey.nix ./system/yubikey.nix
./system/alt.nix ./system/alt.nix
@ -56,6 +56,20 @@
./system/hardware-romulus.nix ./system/hardware-romulus.nix
]; ];
}; };
arielle = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs; };
modules = [
{
networking.hostName = "arielle";
boot.loader.grub.enable = true;
boot.loader.grub.device = "/dev/sda";
}
./system/server.nix
./system/hardware-arielle.nix
];
};
}; };
homeConfigurations = { homeConfigurations = {

40
system/server.nix Normal file
View file

@ -0,0 +1,40 @@
{ config, pkgs, ... }:
{
nix = {
settings.experimental-features = [ "nix-command" "flakes" ];
gc.automatic = true;
gc.dates = "weekly";
optimise.automatic = true;
};
time.timeZone = "Europe/Berlin";
users.users.till = {
isNormalUser = true;
description = "Till";
extraGroups = [
"wheel"
];
};
environment.systemPackages = with pkgs; [
dig.dnsutils
file
git
htop
killall
neovim
pwgen
tree
unzip
wget
];
services = {
ntp.enable = true;
openssh.enable = true;
};
system.stateVersion = "22.11";
}