format with nixfmt to nixpkgs standarts
nix flake show / show-flake (push) Successful in 27s

This commit is contained in:
smayzy
2025-07-24 19:19:46 +02:00
parent 8ce74dd7bf
commit 092579af98
56 changed files with 438 additions and 218 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ in
default = false;
description = "audio settings";
};
config = mkIf config.smayzy.audio.enable {
services.pulseaudio.enable = false;
security.rtkit.enable = true;
+6 -1
View File
@@ -1,4 +1,9 @@
{ config, lib, pkgs, ...}:
{
config,
lib,
pkgs,
...
}:
let
inherit (lib) mkIf mkOption types;
in
+3 -3
View File
@@ -1,4 +1,4 @@
{ config, lib, ...}:
{ config, lib, ... }:
let
inherit (lib) mkIf mkOption types;
in
@@ -12,11 +12,11 @@ in
config = mkIf config.smayzy.nh.enable {
programs.nh = {
enable = true;
clean= {
clean = {
enable = true;
extraArgs = "--keep 10";
dates = "hourly";
};
};
flake = "/home/smayzy/nix-config";
};
};
+14 -9
View File
@@ -1,4 +1,9 @@
{ config, lib, pkgs, ... }:
{
config,
lib,
pkgs,
...
}:
let
inherit (lib) mkIf mkOption types;
in
@@ -8,7 +13,7 @@ in
default = false;
description = "nvf config";
};
config = mkIf config.smayzy.nvf.enable {
programs.nvf = {
enable = true;
@@ -25,14 +30,14 @@ in
clang.enable = true;
rust.enable = true;
};
theme = {
enable = true;
name = lib.mkDefault "dracula";
};
theme = {
enable = true;
name = lib.mkDefault "dracula";
};
treesitter.enable = true;
statusline.lualine.enable = true;
telescope.enable = true;
autocomplete.nvim-cmp.enable = true;
statusline.lualine.enable = true;
telescope.enable = true;
autocomplete.nvim-cmp.enable = true;
};
};
};
+6 -1
View File
@@ -1,4 +1,9 @@
{ config, lib, pkgs, ...}:
{
config,
lib,
pkgs,
...
}:
let
inherit (lib) mkIf mkOption types;
in
+1 -1
View File
@@ -1,4 +1,4 @@
{ lib, config, ... }:
{ lib, config, ... }:
let
inherit (lib) mkIf mkOption types;
in
+1 -1
View File
@@ -1,4 +1,4 @@
{ lib, config, ... }:
{ lib, config, ... }:
let
inherit (lib) mkIf mkOption types;
in
+7 -2
View File
@@ -1,4 +1,9 @@
{ lib, config, pkgs, ... }:
{
lib,
config,
pkgs,
...
}:
let
inherit (lib) mkIf mkOption types;
in
@@ -10,6 +15,6 @@ in
};
config = mkIf config.smayzy.floorp.enable {
environment.systemPackages = with pkgs; [ floorp ];
environment.systemPackages = with pkgs; [ floorp ];
};
}
+7 -2
View File
@@ -1,4 +1,9 @@
{ lib, config, pkgs, ... }:
{
lib,
config,
pkgs,
...
}:
let
inherit (lib) mkIf mkOption types;
in
@@ -10,6 +15,6 @@ in
};
config = mkIf config.smayzy.librewolf.enable {
environment.systemPackages = with pkgs; [ librewolf ];
environment.systemPackages = with pkgs; [ librewolf ];
};
}
+6 -1
View File
@@ -1,4 +1,9 @@
{ lib, config, pkgs, ... }:
{
lib,
config,
pkgs,
...
}:
let
inherit (lib) mkIf mkOption types;
in
+6 -1
View File
@@ -1,4 +1,9 @@
{ lib, config, pkgs, ... }:
{
lib,
config,
pkgs,
...
}:
let
inherit (lib) mkIf mkOption types;
in
+6 -1
View File
@@ -1,4 +1,9 @@
{ lib, config, pkgs, ... }:
{
lib,
config,
pkgs,
...
}:
let
inherit (lib) mkIf mkOption types;
in
+6 -1
View File
@@ -1,4 +1,9 @@
{ lib, config, pkgs, ... }:
{
lib,
config,
pkgs,
...
}:
let
inherit (lib) mkIf mkOption types;
in
+6 -1
View File
@@ -1,4 +1,9 @@
{ lib, config, pkgs, ... }:
{
lib,
config,
pkgs,
...
}:
let
inherit (lib) mkIf mkOption types;
in
+1 -1
View File
@@ -1,4 +1,4 @@
{ lib, config, ... }:
{ lib, config, ... }:
let
inherit (lib) mkIf mkOption types;
in
+15 -10
View File
@@ -28,22 +28,27 @@
i18n.defaultLocale = "en_US.UTF-8";
time.timeZone = "Europe/Paris";
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
"steam"
"steam-original"
"steam-unwrapped"
"steam-run"
"obsidian"
"nvidia-x11"
"nvidia-settings"
];
nixpkgs.config.allowUnfreePredicate =
pkg:
builtins.elem (lib.getName pkg) [
"steam"
"steam-original"
"steam-unwrapped"
"steam-run"
"obsidian"
"nvidia-x11"
"nvidia-settings"
];
services.xserver.xkb = {
layout = "fr";
variant = "";
};
console.keyMap = "fr";
nix.settings.experimental-features = [ "nix-command" "flakes" ];
nix.settings.experimental-features = [
"nix-command"
"flakes"
];
networking.networkmanager.enable = true;
}
+1 -1
View File
@@ -1,4 +1,4 @@
{ lib, config, ... }:
{ lib, config, ... }:
let
inherit (lib) mkIf mkOption types;
in
+6 -1
View File
@@ -1,4 +1,9 @@
{ lib, config, pkgs, ... }:
{
lib,
config,
pkgs,
...
}:
let
inherit (lib) mkIf mkOption types;
in
+9 -9
View File
@@ -1,4 +1,4 @@
{ lib, config, ... }:
{ lib, config, ... }:
let
inherit (lib) mkIf mkOption types;
@@ -21,10 +21,10 @@ let
];
flatpaks =
(if config.smayzy.flatpak.gaming.enable then gaming else [])
++ (if config.smayzy.flatpak.dev.enable then dev else [])
++ (if config.smayzy.flatpak.utils.enable then utils else [])
++ (if config.smayzy.flatpak.media.enable then media else []);
(if config.smayzy.flatpak.gaming.enable then gaming else [ ])
++ (if config.smayzy.flatpak.dev.enable then dev else [ ])
++ (if config.smayzy.flatpak.utils.enable then utils else [ ])
++ (if config.smayzy.flatpak.media.enable then media else [ ]);
in
{
options.smayzy.flatpak = mkOption {
@@ -35,25 +35,25 @@ in
default = false;
description = "enable flatpak support";
};
gaming.enable = mkOption {
type = types.bool;
default = false;
description = "enable gaming flatpaks";
};
dev.enable = mkOption {
type = types.bool;
default = false;
description = "enable dev flatpaks";
};
utils.enable = mkOption {
type = types.bool;
default = true;
description = "enable utils flatpak";
};
media.enable = mkOption {
type = types.bool;
default = false;
+6 -1
View File
@@ -1,4 +1,9 @@
{ lib, config, pkgs, ... }:
{
lib,
config,
pkgs,
...
}:
let
inherit (lib) mkIf mkOption types;
in
+6 -1
View File
@@ -1,4 +1,9 @@
{ lib, config, pkgs, ... }:
{
lib,
config,
pkgs,
...
}:
let
inherit (lib) mkIf mkOption types;
in
+1 -1
View File
@@ -1,4 +1,4 @@
{ lib, config, ... }:
{ lib, config, ... }:
let
inherit (lib) mkIf mkOption types;
in
+1 -1
View File
@@ -1,4 +1,4 @@
{ lib, config, ... }:
{ lib, config, ... }:
let
inherit (lib) mkIf mkOption types;
in
+2 -2
View File
@@ -1,4 +1,4 @@
{ lib, config, ... }:
{ lib, config, ... }:
let
inherit (lib) mkIf mkOption types;
in
@@ -20,7 +20,7 @@ in
floorp.enable = true;
stylix.enable = true;
audio.enable = true;
office.enable= true;
office.enable = true;
webcord.enable = true;
element.enable = true;
sddm.enable = true;
+4 -4
View File
@@ -1,6 +1,6 @@
{ config, lib, ... }:
with lib;
with lib;
{
options.smayzy.grub-on-lap.enable = mkOption {
@@ -8,8 +8,8 @@
default = false;
description = "make grub works on this piece of shit laptop that can't boot normally";
};
config = {
config = {
boot.loader.systemd-boot.enable = false;
boot.loader.grub.enable = true;
boot.loader.grub.efiSupport = true;
@@ -19,4 +19,4 @@
boot.loader.efi.canTouchEfiVariables = mkIf (!config.smayzy.grub-on-lap.enable) true;
};
}
}
+15 -7
View File
@@ -1,7 +1,15 @@
{ config, lib, ... }:
let
inherit (lib) mkIf mkOption types mkMerge;
validOptions = [ "desktop" "laptop" ];
inherit (lib)
mkIf
mkOption
types
mkMerge
;
validOptions = [
"desktop"
"laptop"
];
in
{
options.smayzy.power = mkOption {
@@ -17,8 +25,8 @@ in
enable = true;
settings = {
charger = {
governor = "performance";
turbo = "auto";
governor = "performance";
turbo = "auto";
};
};
};
@@ -32,15 +40,15 @@ in
settings = {
CPU_SCALING_GOVERNOR_ON_AC = "performance";
CPU_SCALING_GOVERNOR_ON_BAT = "powersave";
CPU_ENERGY_PERF_POLICY_ON_BAT = "power";
CPU_ENERGY_PERF_POLICY_ON_AC = "performance";
CPU_MIN_PERF_ON_AC = 0;
CPU_MAX_PERF_ON_AC = 100;
CPU_MIN_PERF_ON_BAT = 0;
CPU_MAX_PERF_ON_BAT = 100;
STOP_CHARGE_THRESH_BAT0 = 95;
};
};
+6 -1
View File
@@ -1,4 +1,9 @@
{ lib, config, pkgs, ... }:
{
lib,
config,
pkgs,
...
}:
let
inherit (lib) mkIf mkOption types;
in
+6 -1
View File
@@ -1,4 +1,9 @@
{ lib, config, pkgs, ... }:
{
lib,
config,
pkgs,
...
}:
let
inherit (lib) mkIf mkOption types;
in
+6 -1
View File
@@ -1,4 +1,9 @@
{ lib, config, pkgs, ... }:
{
lib,
config,
pkgs,
...
}:
let
inherit (lib) mkIf mkOption types;
in
+6 -1
View File
@@ -1,4 +1,9 @@
{ lib, config, pkgs, ... }:
{
lib,
config,
pkgs,
...
}:
let
inherit (lib) mkIf mkOption types;
in
+6 -1
View File
@@ -1,4 +1,9 @@
{ lib, config, pkgs, ... }:
{
lib,
config,
pkgs,
...
}:
let
inherit (lib) mkIf mkOption types;
in
+6 -1
View File
@@ -1,4 +1,9 @@
{ lib, config, pkgs, ... }:
{
lib,
config,
pkgs,
...
}:
let
inherit (lib) mkIf mkOption types;
in
+6 -1
View File
@@ -1,4 +1,9 @@
{ lib, config, pkgs, ... }:
{
lib,
config,
pkgs,
...
}:
let
inherit (lib) mkIf mkOption types;
in
+6 -1
View File
@@ -1,4 +1,9 @@
{ lib, config, pkgs, ... }:
{
lib,
config,
pkgs,
...
}:
let
inherit (lib) mkIf mkOption types;
in
+6 -1
View File
@@ -1,4 +1,9 @@
{ lib, config, pkgs, ... }:
{
lib,
config,
pkgs,
...
}:
let
inherit (lib) mkIf mkOption types;
in
+6 -1
View File
@@ -1,4 +1,9 @@
{ lib, config, pkgs, ... }:
{
lib,
config,
pkgs,
...
}:
let
inherit (lib) mkIf mkOption types;
in
+6 -1
View File
@@ -1,4 +1,9 @@
{ config, lib, pkgs, ... }:
{
config,
lib,
pkgs,
...
}:
let
inherit (lib) mkIf mkOption types;
in
+6 -1
View File
@@ -1,4 +1,9 @@
{ lib, config, pkgs, ... }:
{
lib,
config,
pkgs,
...
}:
let
inherit (lib) mkIf mkOption types;
in
+6 -1
View File
@@ -1,4 +1,9 @@
{ lib, config, pkgs, ... }:
{
lib,
config,
pkgs,
...
}:
let
inherit (lib) mkIf mkOption types;
in
+8 -3
View File
@@ -1,4 +1,9 @@
{ config, lib, pkgs, ... }:
{
config,
lib,
pkgs,
...
}:
let
inherit (lib) mkIf mkOption types;
in
@@ -11,13 +16,13 @@ in
config = mkIf config.smayzy.virt.enable {
programs.virt-manager.enable = true;
users.groups.libvirtd.members = ["smayzy"];
users.groups.libvirtd.members = [ "smayzy" ];
virtualisation.libvirtd.enable = true;
virtualisation.libvirtd.qemu.runAsRoot = false;
virtualisation.libvirtd.qemu.ovmf.enable = true;
environment.systemPackages = with pkgs; [
qemu_kvm
qemu_kvm
];
# https://wiki.nixos.org/wiki/QEMU
+6 -1
View File
@@ -1,4 +1,9 @@
{ lib, config, pkgs, ... }:
{
lib,
config,
pkgs,
...
}:
let
inherit (lib) mkIf mkOption types;
in
+6 -1
View File
@@ -1,4 +1,9 @@
{ lib, config, pkgs, ... }:
{
lib,
config,
pkgs,
...
}:
let
inherit (lib) mkIf mkOption types;
in
+6 -1
View File
@@ -1,4 +1,9 @@
{ lib, config, pkgs, ... }:
{
lib,
config,
pkgs,
...
}:
let
inherit (lib) mkIf mkOption types;
in
+8 -3
View File
@@ -1,4 +1,9 @@
{ lib, config, pkgs, ... }:
{
lib,
config,
pkgs,
...
}:
let
inherit (lib) mkIf mkOption types;
in
@@ -14,10 +19,10 @@ in
enable = true;
xwayland.enable = true;
};
xdg.portal.enable = true;
xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
fonts.packages = with pkgs; [ nerd-fonts.jetbrains-mono ];
environment.systemPackages = with pkgs; [