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.virt.enable = true;
smayzy.nh.enable = true;
smayzy.locales.enable = true;
smayzy.nvf.enable = true;
smayzy.audio.enable = true;
users.users.smayzy = { users.users.smayzy = {
isNormalUser = true; isNormalUser = true;
description = "smayzy"; description = "smayzy";

View File

@ -1,5 +1,14 @@
{ config, lib, pkgs, ... }: { 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.defaultLocale = "en_US.UTF-8";
i18n.extraLocaleSettings = { i18n.extraLocaleSettings = {
LC_ADDRESS = "fr_FR.UTF-8"; LC_ADDRESS = "fr_FR.UTF-8";
@ -12,4 +21,5 @@
LC_TELEPHONE = "fr_FR.UTF-8"; LC_TELEPHONE = "fr_FR.UTF-8";
}; };
time.timeZone = "Europe/Paris"; time.timeZone = "Europe/Paris";
};
} }

View File

@ -1,9 +1,20 @@
{ config, lib, pkgs, ...}: { 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 = { programs.nh = {
enable = true; enable = true;
clean.enable = true; clean.enable = true;
clean.extraArgs = "--keep 10"; clean.extraArgs = "--keep 10";
flake = "/home/smayzy/nix-config"; flake = "/home/smayzy/nix-config";
}; };
};
} }

View File

@ -1,5 +1,15 @@
{ config, lib, pkgs, ... }: { 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 = { programs.nvf = {
enable = true; enable = true;
settings = { settings = {
@ -29,4 +39,5 @@ programs.nvf = {
environment.systemPackages = [ environment.systemPackages = [
pkgs.nil pkgs.nil
]; ];
};
} }

View File

@ -1,5 +1,15 @@
{ config, lib, pkgs, ... }: { 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; services.pulseaudio.enable = false;
security.rtkit.enable = true; security.rtkit.enable = true;
services.pipewire = { services.pipewire = {
@ -8,4 +18,5 @@
alsa.support32Bit = true; alsa.support32Bit = true;
pulse.enable = true; pulse.enable = true;
}; };
};
} }