Add common setting, ssh, pkgs, etc.

This commit is contained in:
Joseph Hanson 2024-07-07 09:31:48 -05:00
parent b17f6cc92a
commit 9ab2b4b99b
Signed by: jahanson
SSH key fingerprint: SHA256:vy6dKBECV522aPAwklFM3ReKAVB086rT3oWwiuiFG7o
3 changed files with 18 additions and 4 deletions

15
common.nix Normal file
View file

@ -0,0 +1,15 @@
{ config, lib, pkgs, ... }:
{
nix.settings = {
experimental-features = [ "nix-command" "flakes" ];
};
environment.systemPackages = with pkgs; [
vim
git
];
services.openssh = {
enable = true;
};
}

View file

@ -1,5 +1,5 @@
# This is a small config that can be used to bootstrap a system with ZFS. # This is a small config that can be used to bootstrap a system with ZFS.
{ config, lib, modulesPath, ... }: { config, lib, modulesPath, pkgs, ... }:
{ {
imports = imports =
[ [
@ -55,7 +55,4 @@
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
system.stateVersion = "24.05"; system.stateVersion = "24.05";
services.openssh = {
enable = true;
};
} }

View file

@ -19,6 +19,7 @@
specialArgs = { inherit inputs; }; specialArgs = { inherit inputs; };
modules = [ modules = [
./configuration-grub.nix ./configuration-grub.nix
./common.nix
disko.nixosModules.disko disko.nixosModules.disko
(import ./disko-nixos.nix { disks = [ "/dev/nvme0n1" ]; }) (import ./disko-nixos.nix { disks = [ "/dev/nvme0n1" ]; })
]; ];
@ -28,6 +29,7 @@
specialArgs = { inherit inputs; }; specialArgs = { inherit inputs; };
modules = [ modules = [
./configuration-systemd.nix ./configuration-systemd.nix
./common.nix
disko.nixosModules.disko disko.nixosModules.disko
(import ./disko-nixos.nix { disks = [ "/dev/nvme0n1" ]; }) (import ./disko-nixos.nix { disks = [ "/dev/nvme0n1" ]; })
]; ];