server setup?
This commit is contained in:
parent
3a24e4beec
commit
e5c2b86918
2 changed files with 55 additions and 1 deletions
16
flake.nix
16
flake.nix
|
|
@ -11,6 +11,7 @@
|
|||
outputs = { self, nixpkgs, home-manager, ... }@inputs: {
|
||||
|
||||
nixosConfigurations = {
|
||||
|
||||
nova = nixpkgs.lib.nixosSystem {
|
||||
specialArgs = { inherit inputs; };
|
||||
modules = [
|
||||
|
|
@ -20,7 +21,6 @@
|
|||
./system
|
||||
./system/hardware-nova.nix
|
||||
./system/gnome.nix
|
||||
# ./system/plasma.nix
|
||||
./system/btrbk.nix
|
||||
./system/yubikey.nix
|
||||
./system/alt.nix
|
||||
|
|
@ -56,6 +56,20 @@
|
|||
./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 = {
|
||||
|
|
|
|||
40
system/server.nix
Normal file
40
system/server.nix
Normal 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";
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue