import individuals to default.nix
This commit is contained in:
parent
95968d0dae
commit
53cad02771
@ -4,19 +4,13 @@
|
||||
imports =
|
||||
[
|
||||
inputs.home-manager.nixosModules.home-manager
|
||||
../../modules/nix/audio/pipewire.nix
|
||||
../../modules/nix/locales.nix
|
||||
../../modules/nix/hardware/grub.nix
|
||||
../../modules/nix/base-cli/nvf.nix
|
||||
../../modules/nix/base-cli/nh.nix
|
||||
];
|
||||
../../modules/nix/default.nix
|
||||
];
|
||||
|
||||
smayzy.virt.enable = true;
|
||||
|
||||
smayzy.nh.enable = true;
|
||||
|
||||
smayzy.locales.enable = true;
|
||||
|
||||
smayzy.nvf.enable = true;
|
||||
|
||||
smayzy.audio.enable = true;
|
||||
|
||||
@ -5,8 +5,6 @@
|
||||
[
|
||||
../common/common.nix
|
||||
./hardware-configuration.nix
|
||||
../../modules/nix/hardware/nvidia.nix
|
||||
../../modules/nix/virt/qemu.nix
|
||||
];
|
||||
|
||||
smayzy.nvidia.enable = true;
|
||||
|
||||
6
modules/nix/audio/default.nix
Normal file
6
modules/nix/audio/default.nix
Normal file
@ -0,0 +1,6 @@
|
||||
{ lib, config, pkgs, ... }:
|
||||
{
|
||||
imports = [
|
||||
./pipewire.nix
|
||||
];
|
||||
}
|
||||
7
modules/nix/base-cli/default.nix
Normal file
7
modules/nix/base-cli/default.nix
Normal file
@ -0,0 +1,7 @@
|
||||
{ lib, config, pkgs, ... }:
|
||||
{
|
||||
imports = [
|
||||
./nh.nix
|
||||
./nvf.nix
|
||||
];
|
||||
}
|
||||
13
modules/nix/default.nix
Normal file
13
modules/nix/default.nix
Normal 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";
|
||||
}
|
||||
7
modules/nix/hardware/default.nix
Normal file
7
modules/nix/hardware/default.nix
Normal file
@ -0,0 +1,7 @@
|
||||
{ lib, config, pkgs, ... }:
|
||||
{
|
||||
imports = [
|
||||
./nvidia.nix
|
||||
./grub.nix
|
||||
];
|
||||
}
|
||||
@ -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";
|
||||
};
|
||||
}
|
||||
6
modules/nix/virt/default.nix
Normal file
6
modules/nix/virt/default.nix
Normal file
@ -0,0 +1,6 @@
|
||||
{ lib, config, pkgs, ... }:
|
||||
{
|
||||
imports = [
|
||||
./qemu.nix
|
||||
];
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user