Compare commits

..

5 Commits

Author SHA1 Message Date
d444b47af8 audio toogle 2025-07-06 19:00:37 +02:00
f398d06399 nvf toogle 2025-07-06 18:55:01 +02:00
e9af7f9dad this too 2025-07-06 18:48:21 +02:00
25c84f2bdb locales toogle 2025-07-06 18:47:40 +02:00
5af5c5fcda nh toogle 2025-07-06 18:41:39 +02:00
5 changed files with 99 additions and 48 deletions

View File

@ -13,6 +13,14 @@
smayzy.virt.enable = true;
smayzy.nh.enable = true;
smayzy.locales.enable = true;
smayzy.nvf.enable = true;
smayzy.audio.enable = true;
users.users.smayzy = {
isNormalUser = true;
description = "smayzy";

View File

@ -1,5 +1,14 @@
{ 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";
@ -12,4 +21,5 @@
LC_TELEPHONE = "fr_FR.UTF-8";
};
time.timeZone = "Europe/Paris";
};
}

View File

@ -1,9 +1,20 @@
{ config, lib, pkgs, ...}:
let
inherit (lib) mkIf mkOption types;
in
{
options.smayzy.nh.enable = mkOption {
type = types.bool;
default = false;
description = "use nh";
};
config = mkIf config.smayzy.nh.enable {
programs.nh = {
enable = true;
clean.enable = true;
clean.extraArgs = "--keep 10";
flake = "/home/smayzy/nix-config";
};
};
}

View File

@ -1,5 +1,15 @@
{ config, lib, pkgs, ... }:
let
inherit (lib) mkIf mkOption types;
in
{
options.smayzy.nvf.enable = mkOption {
type = types.bool;
default = false;
description = "nvf config";
};
config = mkIf config.smayzy.nvf.enable {
programs.nvf = {
enable = true;
settings = {
@ -29,4 +39,5 @@ programs.nvf = {
environment.systemPackages = [
pkgs.nil
];
};
}

View File

@ -1,5 +1,15 @@
{ config, lib, pkgs, ... }:
let
inherit (lib) mkIf mkOption types;
in
{
options.smayzy.audio.enable = mkOption {
type = types.bool;
default = false;
description = "audio settings";
};
config = mkIf config.smayzy.audio.enable {
services.pulseaudio.enable = false;
security.rtkit.enable = true;
services.pipewire = {
@ -8,4 +18,5 @@
alsa.support32Bit = true;
pulse.enable = true;
};
};
}