Compare commits

..

No commits in common. "d444b47af8b9132963fd7feaff173333c212a903" and "29c40709fe3915d3edb43c8926cb77d10e68658c" have entirely different histories.

5 changed files with 48 additions and 99 deletions

View File

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

View File

@ -1,20 +1,9 @@
{ config, lib, pkgs, ...}: { config, lib, pkgs, ...}:
let
inherit (lib) mkIf mkOption types;
in
{ {
options.smayzy.nh.enable = mkOption { programs.nh = {
type = types.bool;
default = false;
description = "use nh";
};
config = mkIf config.smayzy.nh.enable {
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,16 +1,6 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
let
inherit (lib) mkIf mkOption types;
in
{ {
options.smayzy.nvf.enable = mkOption { programs.nvf = {
type = types.bool;
default = false;
description = "nvf config";
};
config = mkIf config.smayzy.nvf.enable {
programs.nvf = {
enable = true; enable = true;
settings = { settings = {
vim = { vim = {
@ -39,5 +29,4 @@ in
environment.systemPackages = [ environment.systemPackages = [
pkgs.nil pkgs.nil
]; ];
};
} }

View File

@ -1,15 +1,5 @@
{ 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 = {
@ -18,5 +8,4 @@ in
alsa.support32Bit = true; alsa.support32Bit = true;
pulse.enable = true; pulse.enable = true;
}; };
};
} }