nix fmt rfc
This commit is contained in:
parent
70c2531a96
commit
4f7d3dd44e
10
flake.nix
10
flake.nix
|
@ -37,7 +37,9 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = inputs: let
|
outputs =
|
||||||
|
inputs:
|
||||||
|
let
|
||||||
lib = inputs.snowfall-lib.mkLib {
|
lib = inputs.snowfall-lib.mkLib {
|
||||||
inherit inputs;
|
inherit inputs;
|
||||||
src = ./.;
|
src = ./.;
|
||||||
|
@ -53,9 +55,11 @@
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
lib.mkFlake {
|
lib.mkFlake {
|
||||||
channels-config = {allowUnfree = true;};
|
channels-config = {
|
||||||
|
allowUnfree = true;
|
||||||
|
};
|
||||||
|
|
||||||
outputs-builder = channels: {formatter = channels.nixpkgs.alejandra;};
|
outputs-builder = channels: { formatter = channels.nixpkgs.nixfmt-rfc-style; };
|
||||||
|
|
||||||
overlays = with inputs; [
|
overlays = with inputs; [
|
||||||
snowfall-flake.overlays.default
|
snowfall-flake.overlays.default
|
||||||
|
|
|
@ -6,7 +6,8 @@
|
||||||
format ? "unknown",
|
format ? "unknown",
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib.wyrdgard; {
|
with lib.wyrdgard;
|
||||||
|
{
|
||||||
wyrdgard = {
|
wyrdgard = {
|
||||||
apps = {
|
apps = {
|
||||||
kitty = enabled;
|
kitty = enabled;
|
||||||
|
|
|
@ -6,7 +6,8 @@
|
||||||
format ? "unknown",
|
format ? "unknown",
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib.wyrdgard; {
|
with lib.wyrdgard;
|
||||||
|
{
|
||||||
wyrdgard = {
|
wyrdgard = {
|
||||||
apps = {
|
apps = {
|
||||||
kitty = enabled;
|
kitty = enabled;
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
{ lib, ... }:
|
{ lib, ... }:
|
||||||
with lib; rec {
|
with lib;
|
||||||
|
rec {
|
||||||
## Create a NixOS module option.
|
## Create a NixOS module option.
|
||||||
##
|
##
|
||||||
## ```nix
|
## ```nix
|
||||||
|
@ -7,7 +8,8 @@ with lib; rec {
|
||||||
## ```
|
## ```
|
||||||
##
|
##
|
||||||
#@ Type -> Any -> String
|
#@ Type -> Any -> String
|
||||||
mkOpt = type: default: description:
|
mkOpt =
|
||||||
|
type: default: description:
|
||||||
mkOption { inherit type default description; };
|
mkOption { inherit type default description; };
|
||||||
|
|
||||||
## Create a NixOS module option without a description.
|
## Create a NixOS module option without a description.
|
||||||
|
|
|
@ -6,15 +6,16 @@
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib;
|
with lib;
|
||||||
with lib.wyrdgard; let
|
with lib.wyrdgard;
|
||||||
|
let
|
||||||
cfg = config.wyrdgard.apps.cli-apps.fish;
|
cfg = config.wyrdgard.apps.cli-apps.fish;
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
options.wyrdgard.apps.cli-apps.fish = with types; {
|
options.wyrdgard.apps.cli-apps.fish = with types; {
|
||||||
enable = mkBoolOpt true "Whether or not to enable the fish shell";
|
enable = mkBoolOpt true "Whether or not to enable the fish shell";
|
||||||
};
|
};
|
||||||
|
|
||||||
config =
|
config = mkIf cfg.enable {
|
||||||
mkIf cfg.enable {
|
|
||||||
home.packages = with pkgs.fishPlugins; [
|
home.packages = with pkgs.fishPlugins; [
|
||||||
forgit
|
forgit
|
||||||
sponge
|
sponge
|
||||||
|
@ -40,9 +41,7 @@ in {
|
||||||
|
|
||||||
zoxide = {
|
zoxide = {
|
||||||
enable = true;
|
enable = true;
|
||||||
options = [
|
options = [ "--cmd cd" ];
|
||||||
"--cmd cd"
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,17 +1,13 @@
|
||||||
{
|
{ lib, config, ... }:
|
||||||
lib,
|
|
||||||
config,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
with lib;
|
with lib;
|
||||||
with lib.wyrdgard; let
|
with lib.wyrdgard;
|
||||||
|
let
|
||||||
cfg = config.wyrdgard.apps.cli-apps.home-manager;
|
cfg = config.wyrdgard.apps.cli-apps.home-manager;
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
options.wyrdgard.apps.cli-apps.home-manager = {
|
options.wyrdgard.apps.cli-apps.home-manager = {
|
||||||
enable = mkBoolOpt true "Enable home-manager";
|
enable = mkBoolOpt true "Enable home-manager";
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable { programs.home-manager = enabled; };
|
||||||
programs.home-manager = enabled;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,15 +6,16 @@
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib;
|
with lib;
|
||||||
with lib.wyrdgard; let
|
with lib.wyrdgard;
|
||||||
|
let
|
||||||
cfg = config.wyrdgard.apps.cli-apps.starship;
|
cfg = config.wyrdgard.apps.cli-apps.starship;
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
options.wyrdgard.apps.cli-apps.starship = with types; {
|
options.wyrdgard.apps.cli-apps.starship = with types; {
|
||||||
enable = mkBoolOpt true "Whether or not to enable starship shell";
|
enable = mkBoolOpt true "Whether or not to enable starship shell";
|
||||||
};
|
};
|
||||||
|
|
||||||
config =
|
config = mkIf cfg.enable {
|
||||||
mkIf cfg.enable {
|
|
||||||
programs = {
|
programs = {
|
||||||
fish.shellInit = "
|
fish.shellInit = "
|
||||||
|
|
||||||
|
|
|
@ -5,17 +5,17 @@
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib;
|
with lib;
|
||||||
with lib.wyrdgard; let
|
with lib.wyrdgard;
|
||||||
|
let
|
||||||
cfg = config.wyrdgard.apps.graphviz;
|
cfg = config.wyrdgard.apps.graphviz;
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
options.wyrdgard.apps.graphviz = {
|
options.wyrdgard.apps.graphviz = {
|
||||||
enable = mkBoolOpt true "Whether or not you want to install graphviz";
|
enable = mkBoolOpt true "Whether or not you want to install graphviz";
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [ graphviz ];
|
||||||
graphviz
|
|
||||||
];
|
|
||||||
|
|
||||||
home.shellAliases = {
|
home.shellAliases = {
|
||||||
nixsize = "nix-du -n=50 | dot -Tsvg > ~/Pictures/store.svg";
|
nixsize = "nix-du -n=50 | dot -Tsvg > ~/Pictures/store.svg";
|
||||||
|
|
|
@ -5,17 +5,17 @@
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib;
|
with lib;
|
||||||
with lib.wyrdgard; let
|
with lib.wyrdgard;
|
||||||
|
let
|
||||||
cfg = config.wyrdgard.apps.kitty;
|
cfg = config.wyrdgard.apps.kitty;
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
options.wyrdgard.apps.kitty = {
|
options.wyrdgard.apps.kitty = {
|
||||||
enable = mkEnableOption "Kity";
|
enable = mkEnableOption "Kity";
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [ kitty ];
|
||||||
kitty
|
|
||||||
];
|
|
||||||
|
|
||||||
programs.kitty = {
|
programs.kitty = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
@ -6,9 +6,11 @@
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib;
|
with lib;
|
||||||
with lib.wyrdgard; let
|
with lib.wyrdgard;
|
||||||
|
let
|
||||||
cfg = config.wyrdgard.tools.direnv;
|
cfg = config.wyrdgard.tools.direnv;
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
options.wyrdgard.tools.direnv = with types; {
|
options.wyrdgard.tools.direnv = with types; {
|
||||||
enable = mkBoolOpt false "Whether or not to enable direnv.";
|
enable = mkBoolOpt false "Whether or not to enable direnv.";
|
||||||
};
|
};
|
||||||
|
|
|
@ -6,10 +6,12 @@
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib;
|
with lib;
|
||||||
with lib.wyrdgard; let
|
with lib.wyrdgard;
|
||||||
|
let
|
||||||
cfg = config.wyrdgard.tools.git;
|
cfg = config.wyrdgard.tools.git;
|
||||||
user = config.wyrdgard.user;
|
user = config.wyrdgard.user;
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
options.wyrdgard.tools.git = {
|
options.wyrdgard.tools.git = {
|
||||||
enable = mkBoolOpt true "Enable Git (Default true)";
|
enable = mkBoolOpt true "Enable Git (Default true)";
|
||||||
userName = mkOpt types.str user.fullName "The name to configure git with.";
|
userName = mkOpt types.str user.fullName "The name to configure git with.";
|
||||||
|
@ -22,9 +24,15 @@ in {
|
||||||
inherit (cfg) userName userEmail;
|
inherit (cfg) userName userEmail;
|
||||||
lfs = enabled;
|
lfs = enabled;
|
||||||
extraConfig = {
|
extraConfig = {
|
||||||
init = {defaultBranch = "main";};
|
init = {
|
||||||
pull = {rebase = false;};
|
defaultBranch = "main";
|
||||||
push = {autoSetupRemote = true;};
|
};
|
||||||
|
pull = {
|
||||||
|
rebase = false;
|
||||||
|
};
|
||||||
|
push = {
|
||||||
|
autoSetupRemote = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -4,8 +4,14 @@
|
||||||
pkgs,
|
pkgs,
|
||||||
osConfig ? { },
|
osConfig ? { },
|
||||||
...
|
...
|
||||||
}: let
|
}:
|
||||||
inherit (lib) types mkIf mkDefault mkMerge;
|
let
|
||||||
|
inherit (lib)
|
||||||
|
types
|
||||||
|
mkIf
|
||||||
|
mkDefault
|
||||||
|
mkMerge
|
||||||
|
;
|
||||||
inherit (lib.wyrdgard) mkOpt;
|
inherit (lib.wyrdgard) mkOpt;
|
||||||
|
|
||||||
cfg = config.wyrdgard.user;
|
cfg = config.wyrdgard.user;
|
||||||
|
@ -14,15 +20,18 @@
|
||||||
is-darwin = pkgs.stdenv.isDarwin;
|
is-darwin = pkgs.stdenv.isDarwin;
|
||||||
|
|
||||||
home-directory =
|
home-directory =
|
||||||
if cfg.name == null
|
if cfg.name == null then
|
||||||
then null
|
null
|
||||||
else if is-darwin
|
else if is-darwin then
|
||||||
then "/Users/${cfg.name}"
|
"/Users/${cfg.name}"
|
||||||
else "/home/${cfg.name}";
|
else
|
||||||
in {
|
"/home/${cfg.name}";
|
||||||
|
in
|
||||||
|
{
|
||||||
options.wyrdgard.user = {
|
options.wyrdgard.user = {
|
||||||
enable = mkOpt types.bool true "Whether to configure the user account.";
|
enable = mkOpt types.bool true "Whether to configure the user account.";
|
||||||
name = mkOpt (types.nullOr types.str) (config.snowfallorg.user.name or "cholli") "The user account.";
|
name = mkOpt (types.nullOr types.str) (config.snowfallorg.user.name or "cholli"
|
||||||
|
) "The user account.";
|
||||||
|
|
||||||
fullName = mkOpt types.str "Christoph Hollizeck" "The full name of the user.";
|
fullName = mkOpt types.str "Christoph Hollizeck" "The full name of the user.";
|
||||||
email = mkOpt types.str "christoph.hollizeck@hey.com" "The email of the user.";
|
email = mkOpt types.str "christoph.hollizeck@hey.com" "The email of the user.";
|
||||||
|
|
|
@ -6,9 +6,11 @@
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib;
|
with lib;
|
||||||
with lib.wyrdgard; let
|
with lib.wyrdgard;
|
||||||
|
let
|
||||||
cfg = config.wyrdgard.apps._1password;
|
cfg = config.wyrdgard.apps._1password;
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
options.wyrdgard.apps._1password = with types; {
|
options.wyrdgard.apps._1password = with types; {
|
||||||
enable = mkBoolOpt true "Enable 1Password";
|
enable = mkBoolOpt true "Enable 1Password";
|
||||||
};
|
};
|
||||||
|
|
|
@ -6,14 +6,19 @@
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib;
|
with lib;
|
||||||
with lib.wyrdgard; let
|
with lib.wyrdgard;
|
||||||
|
let
|
||||||
cfg = config.wyrdgard.apps.cli-apps.nixvim;
|
cfg = config.wyrdgard.apps.cli-apps.nixvim;
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
options.wyrdgard.apps.cli-apps.nixvim = with types; {
|
options.wyrdgard.apps.cli-apps.nixvim = with types; {
|
||||||
enable = mkBoolOpt true "Whether to enable nixvim or not (Default true)";
|
enable = mkBoolOpt true "Whether to enable nixvim or not (Default true)";
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
environment.systemPackages = with pkgs; [less wyrdgard.neovim];
|
environment.systemPackages = with pkgs; [
|
||||||
|
less
|
||||||
|
wyrdgard.neovim
|
||||||
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,16 +6,14 @@
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib;
|
with lib;
|
||||||
with lib.wyrdgard; let
|
with lib.wyrdgard;
|
||||||
|
let
|
||||||
cfg = config.wyrdgard.apps.discord;
|
cfg = config.wyrdgard.apps.discord;
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
options.wyrdgard.apps.discord = with types; {
|
options.wyrdgard.apps.discord = with types; {
|
||||||
enable = mkBoolOpt false "Whether or not to enable basic configuration";
|
enable = mkBoolOpt false "Whether or not to enable basic configuration";
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable { environment.systemPackages = with pkgs; [ discord ]; };
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
discord
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,9 +6,11 @@
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib;
|
with lib;
|
||||||
with lib.wyrdgard; let
|
with lib.wyrdgard;
|
||||||
|
let
|
||||||
cfg = config.wyrdgard.apps.steam;
|
cfg = config.wyrdgard.apps.steam;
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
options.wyrdgard.apps.steam = with types; {
|
options.wyrdgard.apps.steam = with types; {
|
||||||
enable = mkBoolOpt false "Whether or not to enable support for Steam.";
|
enable = mkBoolOpt false "Whether or not to enable support for Steam.";
|
||||||
};
|
};
|
||||||
|
@ -17,8 +19,6 @@ in {
|
||||||
programs.steam.enable = true;
|
programs.steam.enable = true;
|
||||||
programs.steam.remotePlay.openFirewall = true;
|
programs.steam.remotePlay.openFirewall = true;
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [ steam ];
|
||||||
steam
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,9 +6,11 @@
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib;
|
with lib;
|
||||||
with lib.wyrdgard; let
|
with lib.wyrdgard;
|
||||||
|
let
|
||||||
cfg = config.wyrdgard.apps.vivaldi;
|
cfg = config.wyrdgard.apps.vivaldi;
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
options.wyrdgard.apps.vivaldi = with types; {
|
options.wyrdgard.apps.vivaldi = with types; {
|
||||||
enable = mkBoolOpt false "Whether or not to enable vivaldi browser";
|
enable = mkBoolOpt false "Whether or not to enable vivaldi browser";
|
||||||
};
|
};
|
||||||
|
|
|
@ -6,9 +6,11 @@
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib;
|
with lib;
|
||||||
with lib.wyrdgard; let
|
with lib.wyrdgard;
|
||||||
|
let
|
||||||
cfg = config.wyrdgard.archetypes.gaming;
|
cfg = config.wyrdgard.archetypes.gaming;
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
options.wyrdgard.archetypes.gaming = with types; {
|
options.wyrdgard.archetypes.gaming = with types; {
|
||||||
enable = mkBoolOpt false "Whether or not to enable the gaming archetype.";
|
enable = mkBoolOpt false "Whether or not to enable the gaming archetype.";
|
||||||
};
|
};
|
||||||
|
|
|
@ -7,16 +7,16 @@
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib;
|
with lib;
|
||||||
with lib.wyrdgard; let
|
with lib.wyrdgard;
|
||||||
|
let
|
||||||
cfg = config.wyrdgard.home;
|
cfg = config.wyrdgard.home;
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
options.wyrdgard.home = with types; {
|
options.wyrdgard.home = with types; {
|
||||||
file =
|
file = mkOpt attrs { } (mdDoc "A set of files to be managed by home-manager's `home.file`.");
|
||||||
mkOpt attrs {}
|
configFile = mkOpt attrs { } (
|
||||||
(mdDoc "A set of files to be managed by home-manager's `home.file`.");
|
mdDoc "A set of files to be managed by home-manager's `xdg.configFile`."
|
||||||
configFile =
|
);
|
||||||
mkOpt attrs {}
|
|
||||||
(mdDoc "A set of files to be managed by home-manager's `xdg.configFile`.");
|
|
||||||
extraOptions = mkOpt attrs { } "Options to pass directly to home-manager.";
|
extraOptions = mkOpt attrs { } "Options to pass directly to home-manager.";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -7,35 +7,39 @@
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib;
|
with lib;
|
||||||
with lib.wyrdgard; let
|
with lib.wyrdgard;
|
||||||
|
let
|
||||||
cfg = config.wyrdgard.nix;
|
cfg = config.wyrdgard.nix;
|
||||||
|
|
||||||
substituters-submodule = types.submodule ({name, ...}: {
|
substituters-submodule = types.submodule (
|
||||||
|
{ name, ... }:
|
||||||
|
{
|
||||||
options = with types; {
|
options = with types; {
|
||||||
key = mkOpt (nullOr str) null "The trusted public key for this substituter.";
|
key = mkOpt (nullOr str) null "The trusted public key for this substituter.";
|
||||||
};
|
};
|
||||||
});
|
}
|
||||||
in {
|
);
|
||||||
|
in
|
||||||
|
{
|
||||||
options.wyrdgard.nix = with types; {
|
options.wyrdgard.nix = with types; {
|
||||||
enable = mkBoolOpt true "Whether or not to manage nix configuration.";
|
enable = mkBoolOpt true "Whether or not to manage nix configuration.";
|
||||||
package = mkOpt package pkgs.nixUnstable "Which nix package to use.";
|
package = mkOpt package pkgs.nixUnstable "Which nix package to use.";
|
||||||
|
|
||||||
default-substituter = {
|
default-substituter = {
|
||||||
url = mkOpt str "https://cache.nixos.org" "The url for the substituter.";
|
url = mkOpt str "https://cache.nixos.org" "The url for the substituter.";
|
||||||
key = mkOpt str "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=" "The trusted public key for the substituter.";
|
key =
|
||||||
|
mkOpt str "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
|
||||||
|
"The trusted public key for the substituter.";
|
||||||
};
|
};
|
||||||
|
|
||||||
extra-substituters = mkOpt (attrsOf substituters-submodule) { } "Extra substituters to configure.";
|
extra-substituters = mkOpt (attrsOf substituters-submodule) { } "Extra substituters to configure.";
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
assertions =
|
assertions = mapAttrsToList (name: value: {
|
||||||
mapAttrsToList
|
|
||||||
(name: value: {
|
|
||||||
assertion = value.key != null;
|
assertion = value.key != null;
|
||||||
message = "wyrdgard.nix.extra-substituters.${name}.key must be set";
|
message = "wyrdgard.nix.extra-substituters.${name}.key must be set";
|
||||||
})
|
}) cfg.extra-substituters;
|
||||||
cfg.extra-substituters;
|
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
snowfallorg.flake
|
snowfallorg.flake
|
||||||
|
@ -44,11 +48,14 @@ in {
|
||||||
nix-du
|
nix-du
|
||||||
];
|
];
|
||||||
|
|
||||||
nix = let
|
nix =
|
||||||
users =
|
let
|
||||||
["root" config.wyrdgard.user.name]
|
users = [
|
||||||
++ optional config.services.hydra.enable "hydra";
|
"root"
|
||||||
in {
|
config.wyrdgard.user.name
|
||||||
|
] ++ optional config.services.hydra.enable "hydra";
|
||||||
|
in
|
||||||
|
{
|
||||||
package = cfg.package;
|
package = cfg.package;
|
||||||
|
|
||||||
settings =
|
settings =
|
||||||
|
@ -62,12 +69,12 @@ in {
|
||||||
trusted-users = users;
|
trusted-users = users;
|
||||||
allowed-users = users;
|
allowed-users = users;
|
||||||
|
|
||||||
substituters =
|
substituters = [
|
||||||
[cfg.default-substituter.url]
|
cfg.default-substituter.url
|
||||||
++ (mapAttrsToList (name: value: name) cfg.extra-substituters);
|
] ++ (mapAttrsToList (name: value: name) cfg.extra-substituters);
|
||||||
trusted-public-keys =
|
trusted-public-keys = [
|
||||||
[cfg.default-substituter.key]
|
cfg.default-substituter.key
|
||||||
++ (mapAttrsToList (name: value: value.key) cfg.extra-substituters);
|
] ++ (mapAttrsToList (name: value: value.key) cfg.extra-substituters);
|
||||||
}
|
}
|
||||||
// (lib.optionalAttrs config.wyrdgard.tools.direnv.enable {
|
// (lib.optionalAttrs config.wyrdgard.tools.direnv.enable {
|
||||||
keep-outputs = true;
|
keep-outputs = true;
|
||||||
|
|
|
@ -6,9 +6,11 @@
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib;
|
with lib;
|
||||||
with lib.wyrdgard; let
|
with lib.wyrdgard;
|
||||||
|
let
|
||||||
cfg = config.wyrdgard.submodules.basics;
|
cfg = config.wyrdgard.submodules.basics;
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
options.wyrdgard.submodules.basics = with types; {
|
options.wyrdgard.submodules.basics = with types; {
|
||||||
enable = mkBoolOpt false "Whether or not to enable basic configuration.";
|
enable = mkBoolOpt false "Whether or not to enable basic configuration.";
|
||||||
};
|
};
|
||||||
|
|
|
@ -6,17 +6,17 @@
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib;
|
with lib;
|
||||||
with lib.wyrdgard; let
|
with lib.wyrdgard;
|
||||||
|
let
|
||||||
cfg = config.wyrdgard.submodules.games;
|
cfg = config.wyrdgard.submodules.games;
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
options.wyrdgard.submodules.games = with types; {
|
options.wyrdgard.submodules.games = with types; {
|
||||||
enable = mkBoolOpt false "Whether or not you want to enable steam and other games";
|
enable = mkBoolOpt false "Whether or not you want to enable steam and other games";
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [ prismlauncher ];
|
||||||
prismlauncher
|
|
||||||
];
|
|
||||||
|
|
||||||
wyrdgard = {
|
wyrdgard = {
|
||||||
apps = {
|
apps = {
|
||||||
|
|
|
@ -6,9 +6,11 @@
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib;
|
with lib;
|
||||||
with lib.wyrdgard; let
|
with lib.wyrdgard;
|
||||||
|
let
|
||||||
cfg = config.wyrdgard.submodules.socials;
|
cfg = config.wyrdgard.submodules.socials;
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
options.wyrdgard.submodules.socials = with types; {
|
options.wyrdgard.submodules.socials = with types; {
|
||||||
enable = mkBoolOpt false "Whether to enable social apps";
|
enable = mkBoolOpt false "Whether to enable social apps";
|
||||||
};
|
};
|
||||||
|
|
|
@ -6,9 +6,11 @@
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib;
|
with lib;
|
||||||
with lib.wyrdgard; let
|
with lib.wyrdgard;
|
||||||
|
let
|
||||||
cfg = config.wyrdgard.system.boot;
|
cfg = config.wyrdgard.system.boot;
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
options.wyrdgard.system.boot = with types; {
|
options.wyrdgard.system.boot = with types; {
|
||||||
enable = mkBoolOpt false "Whether or not to enable booting.";
|
enable = mkBoolOpt false "Whether or not to enable booting.";
|
||||||
};
|
};
|
||||||
|
|
|
@ -6,9 +6,11 @@
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib;
|
with lib;
|
||||||
with lib.wyrdgard; let
|
with lib.wyrdgard;
|
||||||
|
let
|
||||||
cfg = config.wyrdgard.system.fonts;
|
cfg = config.wyrdgard.system.fonts;
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
options.wyrdgard.system.fonts = with types; {
|
options.wyrdgard.system.fonts = with types; {
|
||||||
enable = mkBoolOpt false "Whether or not to manage fonts.";
|
enable = mkBoolOpt false "Whether or not to manage fonts.";
|
||||||
fonts = mkOpt (listOf package) [ ] "Custom font packages to install.";
|
fonts = mkOpt (listOf package) [ ] "Custom font packages to install.";
|
||||||
|
@ -20,13 +22,17 @@ in {
|
||||||
LOG_ICONS = "true";
|
LOG_ICONS = "true";
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [ font-manager ];
|
||||||
font-manager
|
|
||||||
];
|
|
||||||
|
|
||||||
fonts.packages = with pkgs;
|
fonts.packages =
|
||||||
|
with pkgs;
|
||||||
[
|
[
|
||||||
(nerdfonts.override {fonts = ["CodeNewRoman" "NerdFontsSymbolsOnly"];})
|
(nerdfonts.override {
|
||||||
|
fonts = [
|
||||||
|
"CodeNewRoman"
|
||||||
|
"NerdFontsSymbolsOnly"
|
||||||
|
];
|
||||||
|
})
|
||||||
font-awesome
|
font-awesome
|
||||||
powerline-fonts
|
powerline-fonts
|
||||||
powerline-symbols
|
powerline-symbols
|
||||||
|
|
|
@ -6,17 +6,17 @@
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib;
|
with lib;
|
||||||
with lib.wyrdgard; let
|
with lib.wyrdgard;
|
||||||
|
let
|
||||||
cfg = config.wyrdgard.system.hardware.audio;
|
cfg = config.wyrdgard.system.hardware.audio;
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
options.wyrdgard.system.hardware.audio = with types; {
|
options.wyrdgard.system.hardware.audio = with types; {
|
||||||
enable = mkBoolOpt false "Whether or not to enable audio";
|
enable = mkBoolOpt false "Whether or not to enable audio";
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [ noisetorch ];
|
||||||
noisetorch
|
|
||||||
];
|
|
||||||
|
|
||||||
programs.noisetorch.enable = true;
|
programs.noisetorch.enable = true;
|
||||||
|
|
||||||
|
|
|
@ -6,17 +6,17 @@
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib;
|
with lib;
|
||||||
with lib.wyrdgard; let
|
with lib.wyrdgard;
|
||||||
|
let
|
||||||
cfg = config.wyrdgard.system.hardware.bluetooth;
|
cfg = config.wyrdgard.system.hardware.bluetooth;
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
options.wyrdgard.system.hardware.bluetooth = with types; {
|
options.wyrdgard.system.hardware.bluetooth = with types; {
|
||||||
enable = mkBoolOpt false "Whether or not to enable bluetooth";
|
enable = mkBoolOpt false "Whether or not to enable bluetooth";
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [ libsForQt5.bluez-qt ];
|
||||||
libsForQt5.bluez-qt
|
|
||||||
];
|
|
||||||
|
|
||||||
hardware.bluetooth = {
|
hardware.bluetooth = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -31,7 +31,11 @@ in {
|
||||||
|
|
||||||
fileSystems."/var/lib/bluetooth" = {
|
fileSystems."/var/lib/bluetooth" = {
|
||||||
device = "/persist/var/lib/bluetooth";
|
device = "/persist/var/lib/bluetooth";
|
||||||
options = ["bind" "noauto" "x-systemd.automount"];
|
options = [
|
||||||
|
"bind"
|
||||||
|
"noauto"
|
||||||
|
"x-systemd.automount"
|
||||||
|
];
|
||||||
noCheck = true;
|
noCheck = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -6,9 +6,11 @@
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib;
|
with lib;
|
||||||
with lib.wyrdgard; let
|
with lib.wyrdgard;
|
||||||
|
let
|
||||||
cfg = config.wyrdgard.system.hardware.gpu.nvidia;
|
cfg = config.wyrdgard.system.hardware.gpu.nvidia;
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
options.wyrdgard.system.hardware.gpu.nvidia = with types; {
|
options.wyrdgard.system.hardware.gpu.nvidia = with types; {
|
||||||
enable = mkEnableOption "Enable Nvidia GPU";
|
enable = mkEnableOption "Enable Nvidia GPU";
|
||||||
};
|
};
|
||||||
|
|
|
@ -6,14 +6,14 @@
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib;
|
with lib;
|
||||||
with lib.wyrdgard; let
|
with lib.wyrdgard;
|
||||||
|
let
|
||||||
cfg = config.wyrdgard.system.hardware.networking;
|
cfg = config.wyrdgard.system.hardware.networking;
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
options.wyrdgard.system.hardware.networking = with types; {
|
options.wyrdgard.system.hardware.networking = with types; {
|
||||||
enable = mkBoolOpt false "Whether or not to enable networking";
|
enable = mkBoolOpt false "Whether or not to enable networking";
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable { networking.networkmanager.enable = true; };
|
||||||
networking.networkmanager.enable = true;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,9 +6,11 @@
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib;
|
with lib;
|
||||||
with lib.wyrdgard; let
|
with lib.wyrdgard;
|
||||||
|
let
|
||||||
cfg = config.wyrdgard.system.locale;
|
cfg = config.wyrdgard.system.locale;
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
options.wyrdgard.system.locale = with types; {
|
options.wyrdgard.system.locale = with types; {
|
||||||
enable = mkBoolOpt false "Whether or not to manage locale settings.";
|
enable = mkBoolOpt false "Whether or not to manage locale settings.";
|
||||||
};
|
};
|
||||||
|
|
|
@ -6,15 +6,14 @@
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib;
|
with lib;
|
||||||
with lib.wyrdgard; let
|
with lib.wyrdgard;
|
||||||
|
let
|
||||||
cfg = config.wyrdgard.system.time;
|
cfg = config.wyrdgard.system.time;
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
options.wyrdgard.system.time = with types; {
|
options.wyrdgard.system.time = with types; {
|
||||||
enable =
|
enable = mkBoolOpt false "Whether or not to configure timezone information.";
|
||||||
mkBoolOpt false "Whether or not to configure timezone information.";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable { time.timeZone = "Europe/Berlin"; };
|
||||||
time.timeZone = "Europe/Berlin";
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,9 +5,11 @@
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib;
|
with lib;
|
||||||
with lib.wyrdgard; let
|
with lib.wyrdgard;
|
||||||
|
let
|
||||||
cfg = config.wyrdgard.system.xkb;
|
cfg = config.wyrdgard.system.xkb;
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
options.wyrdgard.system.xkb = with types; {
|
options.wyrdgard.system.xkb = with types; {
|
||||||
enable = mkBoolOpt false "Whether or not to configure xkb.";
|
enable = mkBoolOpt false "Whether or not to configure xkb.";
|
||||||
};
|
};
|
||||||
|
|
|
@ -6,9 +6,11 @@
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib;
|
with lib;
|
||||||
with lib.wyrdgard; let
|
with lib.wyrdgard;
|
||||||
|
let
|
||||||
cfg = config.wyrdgard.tools.direnv;
|
cfg = config.wyrdgard.tools.direnv;
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
options.wyrdgard.tools.direnv = with types; {
|
options.wyrdgard.tools.direnv = with types; {
|
||||||
enable = mkBoolOpt false "Whether or not to enable direnv.";
|
enable = mkBoolOpt false "Whether or not to enable direnv.";
|
||||||
};
|
};
|
||||||
|
|
|
@ -6,10 +6,12 @@
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib;
|
with lib;
|
||||||
with lib.wyrdgard; let
|
with lib.wyrdgard;
|
||||||
|
let
|
||||||
cfg = config.wyrdgard.tools.git;
|
cfg = config.wyrdgard.tools.git;
|
||||||
user = config.wyrdgard.user;
|
user = config.wyrdgard.user;
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
options.wyrdgard.tools.git = with types; {
|
options.wyrdgard.tools.git = with types; {
|
||||||
enable = mkBoolOpt true "Wether or not to enable git (Default enabled)";
|
enable = mkBoolOpt true "Wether or not to enable git (Default enabled)";
|
||||||
userName = mkOpt types.str user.fullName "The name to use git with";
|
userName = mkOpt types.str user.fullName "The name to use git with";
|
||||||
|
@ -26,9 +28,15 @@ in {
|
||||||
enable = true;
|
enable = true;
|
||||||
lfs.enable = true;
|
lfs.enable = true;
|
||||||
config = {
|
config = {
|
||||||
init = {defaultBranch = "main";};
|
init = {
|
||||||
pull = {rebase = false;};
|
defaultBranch = "main";
|
||||||
push = {autoSetupRemote = true;};
|
};
|
||||||
|
pull = {
|
||||||
|
rebase = false;
|
||||||
|
};
|
||||||
|
push = {
|
||||||
|
autoSetupRemote = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -6,14 +6,14 @@
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib;
|
with lib;
|
||||||
with lib.wyrdgard; let
|
with lib.wyrdgard;
|
||||||
|
let
|
||||||
cfg = config.wyrdgard.tools.nix-ld;
|
cfg = config.wyrdgard.tools.nix-ld;
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
options.wyrdgard.tools.nix-ld = with types; {
|
options.wyrdgard.tools.nix-ld = with types; {
|
||||||
enable = mkBoolOpt false "Wether or not to enable nix-ld";
|
enable = mkBoolOpt false "Wether or not to enable nix-ld";
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable { programs.nix-ld.enable = true; };
|
||||||
programs.nix-ld.enable = true;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,7 +6,8 @@
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib;
|
with lib;
|
||||||
with lib.wyrdgard; let
|
with lib.wyrdgard;
|
||||||
|
let
|
||||||
cfg = config.wyrdgard.user;
|
cfg = config.wyrdgard.user;
|
||||||
defaultIconFileName = "profile.png";
|
defaultIconFileName = "profile.png";
|
||||||
defaultIcon = pkgs.stdenvNoCC.mkDerivation {
|
defaultIcon = pkgs.stdenvNoCC.mkDerivation {
|
||||||
|
@ -19,37 +20,37 @@ with lib.wyrdgard; let
|
||||||
cp $src $out
|
cp $src $out
|
||||||
'';
|
'';
|
||||||
|
|
||||||
passthru = {fileName = defaultIconFileName;};
|
passthru = {
|
||||||
|
fileName = defaultIconFileName;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
propagatedIcon =
|
propagatedIcon =
|
||||||
pkgs.runCommandNoCC "propagated-icon"
|
pkgs.runCommandNoCC "propagated-icon"
|
||||||
{passthru = {fileName = cfg.icon.fileName;};}
|
{
|
||||||
|
passthru = {
|
||||||
|
fileName = cfg.icon.fileName;
|
||||||
|
};
|
||||||
|
}
|
||||||
''
|
''
|
||||||
local target="$out/share/wyrdgard-icons/user/${cfg.name}"
|
local target="$out/share/wyrdgard-icons/user/${cfg.name}"
|
||||||
mkdir -p "$target"
|
mkdir -p "$target"
|
||||||
|
|
||||||
cp ${cfg.icon} "$target/${cfg.icon.fileName}"
|
cp ${cfg.icon} "$target/${cfg.icon.fileName}"
|
||||||
'';
|
'';
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
options.wyrdgard.user = with types; {
|
options.wyrdgard.user = with types; {
|
||||||
name = mkOpt str "cholli" "The name to use for the user account.";
|
name = mkOpt str "cholli" "The name to use for the user account.";
|
||||||
fullName = mkOpt str "Christoph Hollizeck" "The full name of the user.";
|
fullName = mkOpt str "Christoph Hollizeck" "The full name of the user.";
|
||||||
email = mkOpt str "christoph.hollizeck@hey.com" "The email of the user.";
|
email = mkOpt str "christoph.hollizeck@hey.com" "The email of the user.";
|
||||||
initialPassword =
|
initialPassword = mkOpt str "asdf" "The initial password to use when the user is first created.";
|
||||||
mkOpt str "asdf"
|
icon = mkOpt (nullOr package) defaultIcon "The profile picture to use for the user.";
|
||||||
"The initial password to use when the user is first created.";
|
|
||||||
icon =
|
|
||||||
mkOpt (nullOr package) defaultIcon
|
|
||||||
"The profile picture to use for the user.";
|
|
||||||
extraGroups = mkOpt (listOf str) [ ] "Groups for the user to be assigned.";
|
extraGroups = mkOpt (listOf str) [ ] "Groups for the user to be assigned.";
|
||||||
extraOptions =
|
extraOptions = mkOpt attrs { } (mdDoc "Extra options passed to `users.users.<name>`.");
|
||||||
mkOpt attrs {}
|
|
||||||
(mdDoc "Extra options passed to `users.users.<name>`.");
|
|
||||||
};
|
};
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [ ];
|
||||||
];
|
|
||||||
|
|
||||||
programs.zsh = {
|
programs.zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -67,15 +68,11 @@ in {
|
||||||
"Videos/.keep".text = "";
|
"Videos/.keep".text = "";
|
||||||
"projects/.keep".text = "";
|
"projects/.keep".text = "";
|
||||||
".face".source = cfg.icon;
|
".face".source = cfg.icon;
|
||||||
"Pictures/${
|
"Pictures/${cfg.icon.fileName or (builtins.baseNameOf cfg.icon)}".source = cfg.icon;
|
||||||
cfg.icon.fileName or (builtins.baseNameOf cfg.icon)
|
|
||||||
}".source =
|
|
||||||
cfg.icon;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
users.users.${cfg.name} =
|
users.users.${cfg.name} = {
|
||||||
{
|
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
|
|
||||||
inherit (cfg) name initialPassword;
|
inherit (cfg) name initialPassword;
|
||||||
|
@ -93,7 +90,6 @@ in {
|
||||||
uid = 1000;
|
uid = 1000;
|
||||||
|
|
||||||
extraGroups = [ "steamcmd" ] ++ cfg.extraGroups;
|
extraGroups = [ "steamcmd" ] ++ cfg.extraGroups;
|
||||||
}
|
} // cfg.extraOptions;
|
||||||
// cfg.extraOptions;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ channels, inputs, ... }:
|
{ channels, ... }:
|
||||||
|
|
||||||
final: prev: {
|
final: prev: {
|
||||||
vivaldi = prev.vivaldi.override { commandLineArgs = "--disable-features=AllowQt"; };
|
vivaldi = prev.vivaldi.override { commandLineArgs = "--disable-features=AllowQt"; };
|
||||||
|
|
|
@ -5,14 +5,14 @@
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib;
|
with lib;
|
||||||
with lib.wyrdgard; {
|
with lib.wyrdgard;
|
||||||
|
{
|
||||||
imports = [ ./hardware.nix ];
|
imports = [ ./hardware.nix ];
|
||||||
|
|
||||||
boot.blacklistedKernelModules = [ "hyperv-fb" ];
|
boot.blacklistedKernelModules = [ "hyperv-fb" ];
|
||||||
virtualisation.hypervGuest.videoMode = "1920x1080";
|
virtualisation.hypervGuest.videoMode = "1920x1080";
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [ ];
|
||||||
];
|
|
||||||
|
|
||||||
environment.variables.EDITOR = "nvim";
|
environment.variables.EDITOR = "nvim";
|
||||||
environment.variables.SUDOEDITOR = "nvim";
|
environment.variables.SUDOEDITOR = "nvim";
|
||||||
|
|
|
@ -7,10 +7,14 @@
|
||||||
pkgs,
|
pkgs,
|
||||||
modulesPath,
|
modulesPath,
|
||||||
...
|
...
|
||||||
}: {
|
}:
|
||||||
|
{
|
||||||
imports = [ ];
|
imports = [ ];
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = ["sd_mod" "sr_mod"];
|
boot.initrd.availableKernelModules = [
|
||||||
|
"sd_mod"
|
||||||
|
"sr_mod"
|
||||||
|
];
|
||||||
boot.initrd.kernelModules = [ ];
|
boot.initrd.kernelModules = [ ];
|
||||||
boot.kernelModules = [ ];
|
boot.kernelModules = [ ];
|
||||||
boot.extraModulePackages = [ ];
|
boot.extraModulePackages = [ ];
|
||||||
|
|
|
@ -5,11 +5,11 @@
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib;
|
with lib;
|
||||||
with lib.wyrdgard; {
|
with lib.wyrdgard;
|
||||||
|
{
|
||||||
imports = [ ./hardware.nix ];
|
imports = [ ./hardware.nix ];
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [ ];
|
||||||
];
|
|
||||||
|
|
||||||
environment.pathsToLink = [ "/libexec" ];
|
environment.pathsToLink = [ "/libexec" ];
|
||||||
|
|
||||||
|
|
|
@ -7,14 +7,23 @@
|
||||||
pkgs,
|
pkgs,
|
||||||
modulesPath,
|
modulesPath,
|
||||||
...
|
...
|
||||||
}: {
|
}:
|
||||||
imports = [
|
{
|
||||||
(modulesPath + "/installer/scan/not-detected.nix")
|
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
||||||
];
|
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = ["nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod"];
|
boot.initrd.availableKernelModules = [
|
||||||
|
"nvme"
|
||||||
|
"xhci_pci"
|
||||||
|
"ahci"
|
||||||
|
"usb_storage"
|
||||||
|
"usbhid"
|
||||||
|
"sd_mod"
|
||||||
|
];
|
||||||
boot.initrd.kernelModules = [ ];
|
boot.initrd.kernelModules = [ ];
|
||||||
boot.kernelModules = ["kvm-amd" "btusb"];
|
boot.kernelModules = [
|
||||||
|
"kvm-amd"
|
||||||
|
"btusb"
|
||||||
|
];
|
||||||
boot.extraModulePackages = [ ];
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
fileSystems."/" = {
|
fileSystems."/" = {
|
||||||
|
|
Loading…
Reference in a new issue