IN PROGRESS COMMIT. does not currently build.

Attempting to make nixos config that incorperates a non-nixos HM config.
This commit is contained in:
Gabe Venberg 2024-04-03 17:50:53 -05:00
parent be670ea374
commit fe1ed3e1be
14 changed files with 237 additions and 172 deletions

23
modules/nixos/common.nix Normal file
View file

@ -0,0 +1,23 @@
{
config,
pkgs,
...
}: {
# Bootloader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
nix = {
package = pkgs.nixFlakes;
extraOptions = ''
experimental-features = nix-command flakes
'';
};
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
# packages that should be on every system.
environment.systemPackages = with pkgs; [
vi # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
];
}

View file

@ -0,0 +1,8 @@
{
config,
pkgs,
...
}: {
# Enable CUPS to print documents.
services.printing.enable = true;
}

View file

@ -0,0 +1,8 @@
{
config,
pkgs,
...
}: {
# Enable touchpad support (enabled default in most desktopManager).
services.xserver.libinput.enable = true;
}

View file

@ -0,0 +1,7 @@
{
config,
pkgs,
...
}: {
networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
}