Regenerated
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
{ config, pkgs, ... }:
|
||||
{
|
||||
# Enable Bluetooth hardware and daemon
|
||||
hardware.bluetooth = {
|
||||
enable = true;
|
||||
powerOnBoot = true;
|
||||
packages = with pkgs; [ bluez ];
|
||||
};
|
||||
|
||||
# Enable Bluetooth audio support in PipeWire
|
||||
services.pipewire = {
|
||||
config.pulse = {
|
||||
bluez5.enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
# Optional: Additional Bluetooth settings
|
||||
hardware.bluetooth.extraConfig = ''
|
||||
AutoEnable=true
|
||||
DiscoverableTimeout=0
|
||||
PairableTimeout=0
|
||||
'';
|
||||
|
||||
# Install a graphical Bluetooth manager (optional)
|
||||
environment.systemPackages = with pkgs; [
|
||||
blueman
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
{ inputs, config, lib, pkgs, ... }:
|
||||
{
|
||||
|
||||
boot.loader.grub = {
|
||||
enable = true;
|
||||
efiSupport = true;
|
||||
device = "nodev";
|
||||
useOSProber = true;
|
||||
};
|
||||
#boot.efi.canTouchEfiVariables = true;
|
||||
|
||||
boot.kernelParams = [
|
||||
"systemd.mask=dev-tpm0.device"
|
||||
"systemd.mask=dev-tpmrm0.device"
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
{ config, pkgs, lib, ... }:
|
||||
{
|
||||
services.dbus = lib.mkForce {
|
||||
enable = true; # Force this to be true
|
||||
};
|
||||
|
||||
# Configure dbus-broker via its configuration file
|
||||
environment.etc."dbus-broker/launch.conf".text = ''
|
||||
[General]
|
||||
LogLevel=warning
|
||||
MaxConnectionsPerUser=2048
|
||||
'';
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
{ pkgs, user, ... }:
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
gtk3 # GTK target
|
||||
gtk4 # GTK target
|
||||
];
|
||||
# Stylix GTK target
|
||||
stylix.targets.gtk.enable = true;
|
||||
|
||||
home-manager.users.${user.username} = {
|
||||
gtk = {
|
||||
enable = true;
|
||||
theme = {
|
||||
name = "Catppuccin-Mocha-Standard-Blue-Dark";
|
||||
package = pkgs.magnetic-catppuccin-gtk;
|
||||
};
|
||||
iconTheme = {
|
||||
name = "Papirus-Dark";
|
||||
package = pkgs.papirus-icon-theme;
|
||||
};
|
||||
gtk3.extraConfig = {
|
||||
gtk-application-prefer-dark-theme = 1;
|
||||
};
|
||||
gtk4.extraConfig = {
|
||||
gtk-application-prefer-dark-theme = 1;
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
{
|
||||
hostname,
|
||||
pkgs,
|
||||
lib,
|
||||
modulesPath,
|
||||
user,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
{
|
||||
imports = [
|
||||
# (modulesPath + "/installer/scan/not-detected.nix")
|
||||
#../../hardware/hardware.nix
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = [
|
||||
"xhci_pci"
|
||||
"nvme"
|
||||
"usb_storage"
|
||||
"sd_mod"
|
||||
"rtsx_usb_sdmmc"
|
||||
];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-intel" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" = {
|
||||
device = "/dev/disk/by-uuid/69433a14-fbaf-401b-af85-cd1bbf02b4e2";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/boot" = {
|
||||
device = "/dev/disk/by-uuid/811D-0676";
|
||||
fsType = "vfat";
|
||||
options = [
|
||||
"fmask=0077"
|
||||
"dmask=0077"
|
||||
];
|
||||
};
|
||||
|
||||
swapDevices = [
|
||||
{ device = "/dev/disk/by-uuid/b6c557c2-7682-460b-a5e7-8f6f2f429a3a"; }
|
||||
];
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
{ lib, config, ... }:
|
||||
|
||||
let
|
||||
coreEnabled = config.mySystem.system.core.enable or false;
|
||||
in
|
||||
{
|
||||
options.mySystem.system.locale.enable =
|
||||
lib.mkEnableOption "Home-Manager settings";
|
||||
|
||||
config = lib.mkIf (coreEnabled || config.mySystem.system.locale.enable) {
|
||||
|
||||
# --- Home Manager Base ---
|
||||
home-manager = {
|
||||
backupFileExtension = "backup";
|
||||
|
||||
users.henrov = {
|
||||
home.sessionVariables = {
|
||||
TERMINAL = "kitty";
|
||||
EDITOR = "emacs";
|
||||
BROWSER = "zen";
|
||||
};
|
||||
|
||||
home.stateVersion = "26.05";
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
{ pkgs, user, ... } :
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
tuigreet
|
||||
];
|
||||
services.greetd = {
|
||||
enable = true;
|
||||
settings = {
|
||||
default_session = {
|
||||
command = pkgs.lib.mkForce "${pkgs.tuigreet}/bin/tuigreet --remember --time --time-format '%I:%M %p | %a • %h | %F'";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
{ lib, config, pkgs,... }:
|
||||
|
||||
let
|
||||
coreEnabled = config.mySystem.system.core.enable or false;
|
||||
in
|
||||
{
|
||||
options.mySystem.system.locale.enable =
|
||||
lib.mkEnableOption "Network settings";
|
||||
|
||||
config = lib.mkIf (coreEnabled || config.mySystem.system.locale.enable) {
|
||||
|
||||
networking = {
|
||||
useDHCP = lib.mkDefault true;
|
||||
networkmanager.enable = true;
|
||||
networkmanager.wifi.backend = "iwd";
|
||||
wireless.iwd.enable = true;
|
||||
wireless.userControlled.enable = true;
|
||||
firewall = {
|
||||
enable = true;
|
||||
# KDE Connect: discovery + encrypted connections
|
||||
allowedTCPPortRanges = [
|
||||
{
|
||||
from = 1714;
|
||||
to = 1764;
|
||||
}
|
||||
];
|
||||
allowedUDPPortRanges = [
|
||||
{
|
||||
from = 1714;
|
||||
to = 1764;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
# Install NetworkManager
|
||||
environment.systemPackages = with pkgs; [
|
||||
networkmanager
|
||||
];
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
{ lib, config, ... }:
|
||||
|
||||
let
|
||||
coreEnabled = config.mySystem.system.core.enable or false;
|
||||
in
|
||||
{
|
||||
# Top-level option for this module
|
||||
options.mySystem.system.locale.enable =
|
||||
lib.mkEnableOption "Enable Nix & Flake specific settings";
|
||||
|
||||
# Top-level container for all custom program configs (your myPrograms idea)
|
||||
options.myPrograms = lib.mkOption {
|
||||
type = lib.types.attrsOf lib.types.any;
|
||||
default = {};
|
||||
description = "Container for all custom program configurations";
|
||||
};
|
||||
|
||||
# Apply the configuration only if core or locale is enabled
|
||||
config = lib.mkIf (coreEnabled || config.mySystem.system.locale.enable) {
|
||||
nix.settings = {
|
||||
experimental-features = [ "nix-command" "flakes" ];
|
||||
download-buffer-size = 536870912; # 512 MB
|
||||
cores = 2;
|
||||
max-jobs = 1;
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
{ lib, config, ... }:
|
||||
|
||||
let
|
||||
coreEnabled = config.mySystem.system.core.enable or false;
|
||||
in
|
||||
{
|
||||
options.mySystem.system.locale.enable =
|
||||
lib.mkEnableOption "Services settings (printing / audio)";
|
||||
|
||||
config = lib.mkIf (coreEnabled || config.mySystem.system.locale.enable) {
|
||||
|
||||
# --- Services (Printing & Audio) ---
|
||||
services.printing.enable = true;
|
||||
services.pulseaudio.enable = false;
|
||||
security.rtkit.enable = true;
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
# (NVF = Neovim/terminal flavor)
|
||||
stylix.targets.nvf.enable = true;
|
||||
# feh wallpaper integration
|
||||
stylix.targets.feh.enable = true;
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
{ config, lib, ... }:
|
||||
|
||||
{
|
||||
# Host-specific system configuration
|
||||
networking.hostName = "traveldroid";
|
||||
system.stateVersion = "26.05";
|
||||
# User-defined features
|
||||
system.core.enable = true;
|
||||
# Hardware overrides
|
||||
hardware.nvidia.enabled = false;
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
username = "henrov";
|
||||
hashedPassword = "$6$ISAmsPLyFi7idYXr$VmZsq.zMsyh1irSkyDNqtorNXG0oEHbbMVqTii1t8bymvrQ5ZQmbdi4OiBNeNYe/huHGrojXM.3TST2fTLz0T.";
|
||||
homeDirectory = "/home/henrov";
|
||||
stateVersion = "26.05";
|
||||
locale = "nl_NL.UTF-8";
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
inputs,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
user = import ./henrov.nix;
|
||||
in
|
||||
{
|
||||
home-manager.users.${user.username} = {
|
||||
home.stateVersion = "26.05";
|
||||
home.username = user.username;
|
||||
home.homeDirectory = user.homeDirectory;
|
||||
};
|
||||
|
||||
# Ensure the user is in the necessary groups
|
||||
users.users.${config.users.users.${user.username}.username} = {
|
||||
extraGroups = [ "wheel" "networkmanager" ];
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
{ config, pkgs, ... }:
|
||||
{
|
||||
xdg.portal = {
|
||||
enable = true;
|
||||
config.system.default = [ "hyprland" "gtk" ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user