chunk flake into modules (part 1)

This commit is contained in:
2025-03-23 18:37:32 +01:00
parent f188b9f398
commit cfd21c973d
18 changed files with 233 additions and 122 deletions

View File

@ -2,8 +2,6 @@
imports = [
./hardware-configuration.nix
./modules.nix
./services.nix
./programs.nix
./users.nix
./networking.nix
];

View File

@ -1,12 +1,51 @@
{ inputs, ... }:
{ pkgs, inputs, ... }:
{
imports = [
../../modules/nvidia-support.nix
../../modules/fingerprint.nix
../../modules/apple-style.nix
../../modules/bluetooth.nix
../../modules/greetd.nix
inputs.nordvpn.nixosModules.nordvpn
];
# DEs
../../modules/desktop-environments/hyprland.nix
# Utilities
../../modules/nixos/nvidia-support.nix
../../modules/nixos/fingerprint.nix
../../modules/nixos/apple-style.nix
../../modules/nixos/bluetooth.nix
../../modules/nixos/greetd.nix
../../modules/nixos/audio.nix
# Apps
inputs.nordvpn.nixosModules.nordvpn
];
modules.hyprland = {
enable = true;
additionalPackages = with pkgs; [ hyprshot ];
};
modules.apple-style.enable = true;
modules.bluetooth.enable = true;
modules.nvidia.enable = true;
modules.audio.enable = true;
modules.fingerprint-fix = {
enable = true;
calibDataFile = ./calib-data.bin;
};
services = {
nordvpn.enable = true;
printing = {
enable = true;
drivers = with pkgs; [ hplipWithPlugin ];
};
};
programs = {
adb.enable = true;
thunar.enable = true;
thunar.plugins = with pkgs.xfce; [
thunar-archive-plugin
thunar-volman
];
};
}

View File

@ -1,11 +0,0 @@
{ pkgs, ... }:
{
programs.adb.enable = true;
programs.thunar.enable = true;
programs.thunar.plugins = with pkgs.xfce; [
thunar-archive-plugin
thunar-volman
];
}

View File

@ -1,37 +0,0 @@
{ pkgs, ... }:
{
services.greetd-hyprland.enable = true;
services.apple-style.enable = true;
services.bluetooth.enable = true;
services.nvidia.enable = true;
services.fingerprint-fix = {
enable = true;
calibDataFile = ./calib-data.bin;
};
services.nordvpn.enable = true;
services.upower.enable = true;
services.udev.enable = true;
services.udev.packages = [ pkgs.hyprland ];
services.printing = {
enable = true;
drivers = with pkgs; [ hplipWithPlugin ];
};
services.gvfs.enable = true;
services.geoclue2 = {
enableWifi = true;
geoProviderUrl = "https://api.beacondb.net/v1/geolocate";
};
services.dbus.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
jack.enable = true;
};
}

View File

@ -13,6 +13,4 @@ in {
shell = preferredShell;
ignoreShellProgramCheck = true; # Will do it later in profile configuration
};
users.users.nordvpn.extraGroups = [ "networkmanager" ];
}