Compare commits
5 Commits
29c40709fe
...
d444b47af8
| Author | SHA1 | Date | |
|---|---|---|---|
| d444b47af8 | |||
| f398d06399 | |||
| e9af7f9dad | |||
| 25c84f2bdb | |||
| 5af5c5fcda |
@ -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";
|
||||
|
||||
@ -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";
|
||||
};
|
||||
}
|
||||
|
||||
@ -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";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@ -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
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
@ -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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user