import individuals to default.nix

This commit is contained in:
smayzy 2025-07-07 23:58:35 +02:00
parent 95968d0dae
commit 53cad02771
8 changed files with 41 additions and 35 deletions

View File

@ -4,19 +4,13 @@
imports = imports =
[ [
inputs.home-manager.nixosModules.home-manager inputs.home-manager.nixosModules.home-manager
../../modules/nix/audio/pipewire.nix ../../modules/nix/default.nix
../../modules/nix/locales.nix
../../modules/nix/hardware/grub.nix
../../modules/nix/base-cli/nvf.nix
../../modules/nix/base-cli/nh.nix
]; ];
smayzy.virt.enable = true; smayzy.virt.enable = true;
smayzy.nh.enable = true; smayzy.nh.enable = true;
smayzy.locales.enable = true;
smayzy.nvf.enable = true; smayzy.nvf.enable = true;
smayzy.audio.enable = true; smayzy.audio.enable = true;

View File

@ -5,8 +5,6 @@
[ [
../common/common.nix ../common/common.nix
./hardware-configuration.nix ./hardware-configuration.nix
../../modules/nix/hardware/nvidia.nix
../../modules/nix/virt/qemu.nix
]; ];
smayzy.nvidia.enable = true; smayzy.nvidia.enable = true;

View File

@ -0,0 +1,6 @@
{ lib, config, pkgs, ... }:
{
imports = [
./pipewire.nix
];
}

View File

@ -0,0 +1,7 @@
{ lib, config, pkgs, ... }:
{
imports = [
./nh.nix
./nvf.nix
];
}

13
modules/nix/default.nix Normal file
View File

@ -0,0 +1,13 @@
{ lib, config, pkgs, ... }:
{
imports = [
./audio
./base-cli
./hardware
./virt
];
# Timzone and locales (same for all machines so I put it here)
i18n.defaultLocale = "en_US.UTF-8";
time.timeZone = "Europe/Paris";
}

View File

@ -0,0 +1,7 @@
{ lib, config, pkgs, ... }:
{
imports = [
./nvidia.nix
./grub.nix
];
}

View File

@ -1,25 +0,0 @@
{ config, lib, pkgs, ... }:
let
inherit (lib) mkIf mkOption types;
in
{
options.smayzy.locales.enable = mkOption {
type = types.bool;
default = false;
description = "set my locales & TZ";
};
config = mkIf config.smayzy.locales.enable {
i18n.defaultLocale = "en_US.UTF-8";
i18n.extraLocaleSettings = {
LC_ADDRESS = "fr_FR.UTF-8";
LC_IDENTIFICATION = "fr_FR.UTF-8";
LC_MEASUREMENT = "fr_FR.UTF-8";
LC_MONETARY = "fr_FR.UTF-8";
LC_NAME = "fr_FR.UTF-8";
LC_NUMERIC = "fr_FR.UTF-8";
LC_PAPER = "fr_FR.UTF-8";
LC_TELEPHONE = "fr_FR.UTF-8";
};
time.timeZone = "Europe/Paris";
};
}

View File

@ -0,0 +1,6 @@
{ lib, config, pkgs, ... }:
{
imports = [
./qemu.nix
];
}