44 lines
708 B
Nix
44 lines
708 B
Nix
{
|
|||
|
|
self,
|
||
|
|
inputs,
|
||
|
|
...
|
||
|
|
}: {
|
||
|
|
flake.nixosModules.core = {
|
||
|
|
pkgs,
|
||
|
|
lib,
|
||
|
|
...
|
||
|
|
}: let
|
||
|
|
modules = with self.nixosModules; [
|
||
|
|
user
|
||
|
|
bootloader
|
||
|
|
nix
|
||
|
|
hardware
|
||
|
|
locale
|
||
|
|
nix-ld
|
||
|
|
];
|
||
|
|
in {
|
||
|
|
imports =
|
||
|
|
[
|
||
|
|
/etc/nixos/hardware-configuration.nix
|
||
|
|
]
|
||
|
|
++ modules;
|
||
|
|
services = {
|
||
|
|
openssh.enable = true;
|
||
|
|
avahi.enable = true;
|
||
|
|
};
|
||
|
|
environment.systemPackages = with pkgs; [
|
||
|
|
# neovim is provided by the nvim feature module (programs.neovim.enable).
|
||
|
|
unzip
|
||
|
|
p7zip-rar
|
||
|
|
usbutils
|
||
|
|
lsof
|
||
|
|
gvfs
|
||
|
|
libnotify
|
||
|
|
python313
|
||
|
|
curlWithGnuTls
|
||
|
|
wget
|
||
|
|
];
|
||
|
|
system.stateVersion = "26.05";
|
||
|
|
};
|
||
|
|
}
|