Split up config files to multiple and added imports. Fixed default values for systemConfigs

This commit is contained in:
2025-04-15 12:48:27 +02:00
parent 9611b8bb8d
commit 16c4a8f46b
23 changed files with 149 additions and 163 deletions

View File

@ -1,72 +1,23 @@
{
pkgs,
outputs,
common,
lib,
...
}:
{
imports = [ ./modules ];
imports = [
(lib.custom.relativeToRoot "shared/modules")
./battery.nix
./bluetooth.nix
./hardware-configuration.nix
./security.nix
];
nixpkgs.overlays = [ outputs.overlays.unstable-packages ];
boot.kernelPackages = pkgs.linuxPackages_latest;
# Bootloader.
boot = {
kernelPackages = pkgs.linuxPackages_latest;
loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
};
# Define a user account. Don't forget to set a password with 'passwd'.
users.users.${common.username} = {
isNormalUser = true;
description = common.username;
extraGroups = [
"networkmanager"
"wheel"
];
};
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
environment.sessionVariables = {
# Tells Electron apps to use Wayland
NIXOS_OZONE_WL = "1";
};
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = with pkgs; [
brightnessctl
wget
xdg-utils
xdg-desktop-portal
xdg-desktop-portal-gtk
unstable.protonmail-desktop
stremio
fastfetch
discord
nix-prefetch-github # Cmd to get rev and hash from GitHub
gimp
vlc
vdhcoapp
onlyoffice-desktopeditors
hyprsunset # Blue light filter
];
nix.settings.experimental-features = [
"nix-command"
"flakes"
];
programs.kdeconnect.enable = true;
services = {
flatpak.enable = false;
xserver.enable = true;
};
system.stateVersion = common.system.version;
}

View File

@ -1,15 +0,0 @@
{ pkgs, lib, ... }:
{
imports = [
(lib.custom.relativeToRoot "shared/modules")
./battery.nix
./bluetooth.nix
./hardware-configuration.nix
./security.nix
];
environment.systemPackages = with pkgs; [
hyprsunset # Blue light filter
];
}