mirror of
https://github.com/ItsDrike/nixdots
synced 2025-06-29 03:10:43 +00:00
Run alejandra
This commit is contained in:
parent
286920def4
commit
c00134da1c
152 changed files with 827 additions and 721 deletions
|
@ -1,10 +1,9 @@
|
|||
{ lib, ... }: let
|
||||
{lib, ...}: let
|
||||
inherit (lib) mkOption mkEnableOption types;
|
||||
in
|
||||
{
|
||||
in {
|
||||
options.myOptions.device = {
|
||||
cpu.type = mkOption {
|
||||
type = with types; nullOr (enum [ "intel" "amd" ]);
|
||||
type = with types; nullOr (enum ["intel" "amd"]);
|
||||
default = null;
|
||||
description = ''
|
||||
The manifaturer/type of the primary system CPU.
|
||||
|
@ -16,7 +15,7 @@ in
|
|||
};
|
||||
|
||||
gpu.type = mkOption {
|
||||
type = with types; nullOr (enum [ "nvidia" "amd" "intel" "hybrid-nvidia" "hybrid-amd" ]);
|
||||
type = with types; nullOr (enum ["nvidia" "amd" "intel" "hybrid-nvidia" "hybrid-amd"]);
|
||||
default = null;
|
||||
description = ''
|
||||
The manifaturer/type of the primary system GPU.
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
{ lib, config, ... }: let
|
||||
{
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkOption types;
|
||||
|
||||
cfg = config.myOptions.device.roles;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{ lib, ... }: with lib; let
|
||||
{lib, ...}:
|
||||
with lib; let
|
||||
inherit (lib) mkEnableOption mkOption;
|
||||
in
|
||||
{
|
||||
in {
|
||||
imports = [
|
||||
./programs
|
||||
./git.nix
|
||||
|
@ -21,4 +21,3 @@ in
|
|||
};
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{ lib, ... }: with lib; let
|
||||
{lib, ...}:
|
||||
with lib; let
|
||||
inherit (lib) mkEnableOption mkOption;
|
||||
in
|
||||
{
|
||||
in {
|
||||
options.myOptions.home-manager.git = {
|
||||
userName = mkOption {
|
||||
type = types.str;
|
||||
|
|
|
@ -1,24 +1,25 @@
|
|||
{ lib, ... }: let
|
||||
{lib, ...}: let
|
||||
inherit (lib) mkOption types;
|
||||
|
||||
mkPreferenceCmdOption = name: commandDefault: mkOption {
|
||||
type = types.str;
|
||||
description = "The command to start your preferred ${name}.";
|
||||
default = commandDefault;
|
||||
};
|
||||
mkPreferenceCmdOption = name: commandDefault:
|
||||
mkOption {
|
||||
type = types.str;
|
||||
description = "The command to start your preferred ${name}.";
|
||||
default = commandDefault;
|
||||
};
|
||||
|
||||
mkPreferenceDesktopOption = name: desktopDefault: mkOption {
|
||||
type = types.str;
|
||||
description = "The desktop (application) file for your preferred ${name}.";
|
||||
default = desktopDefault;
|
||||
};
|
||||
mkPreferenceDesktopOption = name: desktopDefault:
|
||||
mkOption {
|
||||
type = types.str;
|
||||
description = "The desktop (application) file for your preferred ${name}.";
|
||||
default = desktopDefault;
|
||||
};
|
||||
|
||||
mkPreferenceOptions = name: commandDefault: desktopDefault: {
|
||||
command = mkPreferenceCmdOption name commandDefault;
|
||||
command = mkPreferenceCmdOption name commandDefault;
|
||||
desktop = mkPreferenceDesktopOption name desktopDefault;
|
||||
};
|
||||
in
|
||||
{
|
||||
in {
|
||||
options.myOptions.home-manager.preferences = {
|
||||
browser = mkPreferenceOptions "browser" "firefox" "firefox.desktop";
|
||||
terminalEmulator = mkPreferenceOptions "terminal emulator" "kitty" "kitty.desktop";
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{ lib, ... }: with lib; let
|
||||
{lib, ...}:
|
||||
with lib; let
|
||||
inherit (lib) mkEnableOption mkOption types;
|
||||
in
|
||||
{
|
||||
in {
|
||||
imports = [
|
||||
./iamb.nix
|
||||
];
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{
|
||||
{
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
|
@ -6,8 +6,7 @@
|
|||
inherit (lib) mkEnableOption mkOption types mkIf;
|
||||
|
||||
cfg = config.myOptions.home-manager.programs.applications.iamb;
|
||||
in
|
||||
{
|
||||
in {
|
||||
options.myOptions.home-manager.programs.applications.iamb = {
|
||||
enable = mkEnableOption "iamb (vim-inspired terminal Matrix client)";
|
||||
defaultProfile = mkOption {
|
||||
|
@ -48,4 +47,3 @@ in
|
|||
];
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{ lib, ... }: with lib; let
|
||||
{lib, ...}:
|
||||
with lib; let
|
||||
inherit (lib) mkEnableOption mkOption types;
|
||||
in
|
||||
{
|
||||
in {
|
||||
options.myOptions.home-manager.services = {
|
||||
dunst.enable = mkEnableOption "Dunst (lightweight notification daemon)";
|
||||
hyprpaper = {
|
||||
|
@ -14,4 +14,3 @@ in
|
|||
};
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -1,7 +1,10 @@
|
|||
{ lib, pkgs, ... }: let
|
||||
inherit (lib) mkEnableOption mkOption types;
|
||||
in
|
||||
{
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkEnableOption mkOption types;
|
||||
in {
|
||||
options.myOptions.home-manager.theme = {
|
||||
gtk = {
|
||||
enable = mkEnableOption "GTK theming optionss";
|
||||
|
@ -48,7 +51,7 @@ in
|
|||
size = mkOption {
|
||||
type = types.int;
|
||||
description = "The size of the font";
|
||||
default = 10; # 10
|
||||
default = 10; # 10
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -141,6 +144,5 @@ in
|
|||
description = "The size of the cursor";
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
}
|
||||
|
|
|
@ -11,7 +11,6 @@ in {
|
|||
Hyprland wayland compositor.
|
||||
'';
|
||||
|
||||
|
||||
monitor = mkOption {
|
||||
type = types.listOf types.str;
|
||||
default = [];
|
||||
|
|
|
@ -1,7 +1,11 @@
|
|||
{ lib, config, ... }: with lib; let
|
||||
inherit (lib) mkEnableOption mkOption literalExpression types;
|
||||
in
|
||||
{
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
inherit (lib) mkEnableOption mkOption literalExpression types;
|
||||
in {
|
||||
options.myOptions.security.auditd = {
|
||||
enable = mkEnableOption "the audit daemon.";
|
||||
autoPrune = {
|
||||
|
@ -58,4 +62,3 @@ in
|
|||
};
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -1,4 +1,9 @@
|
|||
{ config, lib, pkgs, ...}: let
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkOption mkEnableOption literalExpression;
|
||||
|
||||
cfg = config.myOptions.system.boot;
|
||||
|
@ -16,17 +21,17 @@ in {
|
|||
description = "The kernel to use for the system.";
|
||||
};
|
||||
|
||||
tmpOnTmpfs =
|
||||
tmpOnTmpfs = mkEnableOption ''
|
||||
`/tmp` living on tmpfs. false means it will be cleared manually on each reboot
|
||||
|
||||
This option defaults to `true` if the host provides patches to the kernel package in
|
||||
`boot.kernelPatches`
|
||||
'';
|
||||
|
||||
silentBoot =
|
||||
mkEnableOption ''
|
||||
`/tmp` living on tmpfs. false means it will be cleared manually on each reboot
|
||||
|
||||
This option defaults to `true` if the host provides patches to the kernel package in
|
||||
`boot.kernelPatches`
|
||||
'';
|
||||
|
||||
silentBoot = mkEnableOption ''
|
||||
almost entirely silent boot process through `quiet` kernel parameter
|
||||
''
|
||||
// { default = cfg.plymouth.enable; };
|
||||
almost entirely silent boot process through `quiet` kernel parameter
|
||||
''
|
||||
// {default = cfg.plymouth.enable;};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{ lib, ... }: with lib; let
|
||||
{lib, ...}:
|
||||
with lib; let
|
||||
inherit (lib) mkEnableOption mkOption types;
|
||||
in
|
||||
{
|
||||
in {
|
||||
options.myOptions.system.boot.plymouth = {
|
||||
enable = mkEnableOption ''
|
||||
Plymouth boot splash.
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
{ lib, ... }: with lib; let
|
||||
{lib, ...}:
|
||||
with lib; let
|
||||
inherit (lib) mkEnableOption;
|
||||
in
|
||||
{
|
||||
in {
|
||||
options.myOptions.system.boot.secure-boot = {
|
||||
enable = mkEnableOption ''
|
||||
enable = mkEnableOption ''
|
||||
secure-boot using lanzaboote.
|
||||
|
||||
Note that you will need to have UEFI firmware, and the rebuild
|
||||
|
@ -18,6 +18,6 @@ in
|
|||
sudo sbctl enroll-keys -m
|
||||
```
|
||||
Then reboot, and secure-boot should be enabled.
|
||||
'';
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{ lib, ... }: with lib; let
|
||||
{lib, ...}:
|
||||
with lib; let
|
||||
inherit (lib) mkOption;
|
||||
in
|
||||
{
|
||||
in {
|
||||
imports = [
|
||||
./boot
|
||||
./impermanence.nix
|
||||
|
|
|
@ -1,9 +1,13 @@
|
|||
{ lib, config, ... }: with lib; let
|
||||
{
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
inherit (lib) mkEnableOption mkOption literalExpression types;
|
||||
|
||||
cfg = config.myOptions.system.impermanence;
|
||||
in
|
||||
{
|
||||
in {
|
||||
options.myOptions.system.impermanence = {
|
||||
root = {
|
||||
enable = mkEnableOption ''
|
||||
|
@ -88,7 +92,7 @@ in
|
|||
This does not create any subdirectories, all of the persistent home files
|
||||
fill be put directly in here. The user should be the owner of this directory.
|
||||
|
||||
If you don't wish to distinguish between data and system / configuration files,
|
||||
If you don't wish to distinguish between data and system / configuration files,
|
||||
you can point this to the same location.
|
||||
'';
|
||||
};
|
||||
|
@ -129,16 +133,16 @@ in
|
|||
};
|
||||
in {
|
||||
enable = mkEnableOption ''
|
||||
automatic wiping of specified BTRFS subvolumes from initrd.
|
||||
automatic wiping of specified BTRFS subvolumes from initrd.
|
||||
|
||||
If you're using BTRFS, you will generally want to enable this, however
|
||||
with a non-BTRFS system, or in case you wish to set up some custom handling
|
||||
which this module doesn't support, you will need to write your own logic
|
||||
for automatic root wiping.
|
||||
If you're using BTRFS, you will generally want to enable this, however
|
||||
with a non-BTRFS system, or in case you wish to set up some custom handling
|
||||
which this module doesn't support, you will need to write your own logic
|
||||
for automatic root wiping.
|
||||
|
||||
One option is is to simply have your root get mounted from tmpfs, making it
|
||||
live in RAM. This does however require dedicating a concrete chunk of RAM.
|
||||
'';
|
||||
One option is is to simply have your root get mounted from tmpfs, making it
|
||||
live in RAM. This does however require dedicating a concrete chunk of RAM.
|
||||
'';
|
||||
|
||||
devices = mkOption {
|
||||
default = {};
|
||||
|
|
|
@ -1,9 +1,13 @@
|
|||
{ lib, config, ... }: with lib; let
|
||||
{
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
inherit (lib) mkEnableOption mkOption literalExpression types;
|
||||
|
||||
cfg = config.myOptions.workstation;
|
||||
in
|
||||
{
|
||||
in {
|
||||
options.myOptions.workstation = {
|
||||
printing = {
|
||||
enable = mkEnableOption ''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue