Add common setting, ssh, pkgs, etc.
This commit is contained in:
parent
b17f6cc92a
commit
9ab2b4b99b
3 changed files with 18 additions and 4 deletions
15
common.nix
Normal file
15
common.nix
Normal 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;
|
||||
};
|
||||
}
|
|
@ -1,5 +1,5 @@
|
|||
# This is a small config that can be used to bootstrap a system with ZFS.
|
||||
{ config, lib, modulesPath, ... }:
|
||||
{ config, lib, modulesPath, pkgs, ... }:
|
||||
{
|
||||
imports =
|
||||
[
|
||||
|
@ -55,7 +55,4 @@
|
|||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
system.stateVersion = "24.05";
|
||||
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
specialArgs = { inherit inputs; };
|
||||
modules = [
|
||||
./configuration-grub.nix
|
||||
./common.nix
|
||||
disko.nixosModules.disko
|
||||
(import ./disko-nixos.nix { disks = [ "/dev/nvme0n1" ]; })
|
||||
];
|
||||
|
@ -28,6 +29,7 @@
|
|||
specialArgs = { inherit inputs; };
|
||||
modules = [
|
||||
./configuration-systemd.nix
|
||||
./common.nix
|
||||
disko.nixosModules.disko
|
||||
(import ./disko-nixos.nix { disks = [ "/dev/nvme0n1" ]; })
|
||||
];
|
||||
|
|
Reference in a new issue