tree-wide change. seperated config from 'real' modles.

This commit is contained in:
Gabe Venberg 2024-05-31 12:01:32 -05:00
parent 3eee4e105d
commit a0c1ad0beb
59 changed files with 377 additions and 424 deletions

View file

@ -1,35 +0,0 @@
{
config,
pkgs,
inputs,
outputs,
...
}: {
nix = {
package = pkgs.nixFlakes;
extraOptions = ''
experimental-features = nix-command flakes
'';
optimise.automatic = true;
settings = {
auto-optimise-store = true;
};
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 30d";
};
};
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
# packages that should be on every system.
environment.systemPackages = with pkgs; [
neovim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
];
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.extraSpecialArgs = {inherit inputs outputs;};
}

View file

@ -1,9 +0,0 @@
{
config,
pkgs,
...
}: {
# Enable networking
networking.networkmanager.enable = true;
users.users.${config.host.user}.extraGroups = ["networkmanager"];
}

View file

@ -1,23 +0,0 @@
{
config,
pkgs,
lib,
...
}: {
# will force you to compile kernel locally.
services.nfs = {
settings = {
nfsd.vers2 = true;
};
server.enable = true;
};
boot.kernelPatches = [
{
name = "nfsv2";
patch = null;
extraStructuredConfig = {
NFSD_V2 = lib.kernel.yes;
};
}
];
}

View file

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

View file

@ -1,15 +0,0 @@
{
config,
pkgs,
...
}: {
# Enable touchpad support (enabled default in most desktopManager).
services.xserver.libinput = {
enable = true;
disableWhileTyping = true;
naturalScrolling = true;
additionalOptions = ''
Option "PalmDetection" "True"
'';
};
}

View file

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