Autoformat

This commit is contained in:
GHOSCHT 2024-12-02 23:09:33 +01:00
parent dd5a1d52da
commit 6a4c1b34bf
Signed by: ghoscht
GPG key ID: 2C2C1C62A5388E82
4 changed files with 137 additions and 134 deletions

View file

@ -70,13 +70,12 @@
}; };
}; };
outputs = outputs = {
{ self self,
, nixpkgs nixpkgs,
, home-manager home-manager,
, ... ...
} @ inputs: } @ inputs: let
let
inherit (self) outputs; inherit (self) outputs;
# Supported systems for your flake packages, shell, etc. # Supported systems for your flake packages, shell, etc.
systems = [ systems = [
@ -90,8 +89,7 @@
# pass to it, with each system as an argument # pass to it, with each system as an argument
forAllSystems = nixpkgs.lib.genAttrs systems; forAllSystems = nixpkgs.lib.genAttrs systems;
vars = import ./vars.nix; vars = import ./vars.nix;
in in {
{
# Your custom packages # Your custom packages
# Accessible through 'nix build', 'nix shell', etc # Accessible through 'nix build', 'nix shell', etc
packages = forAllSystems (system: import ./pkgs nixpkgs.legacyPackages.${system}); packages = forAllSystems (system: import ./pkgs nixpkgs.legacyPackages.${system});
@ -100,7 +98,7 @@
formatter = forAllSystems (system: nixpkgs.legacyPackages.${system}.alejandra); formatter = forAllSystems (system: nixpkgs.legacyPackages.${system}.alejandra);
# Your custom packages and modifications, exported as overlays # Your custom packages and modifications, exported as overlays
overlays = import ./overlays { inherit inputs; }; overlays = import ./overlays {inherit inputs;};
# Reusable nixos modules you might want to export # Reusable nixos modules you might want to export
# These are usually stuff you would upstream into nixpkgs # These are usually stuff you would upstream into nixpkgs
nixosModules = import ./modules/nixos; nixosModules = import ./modules/nixos;
@ -112,25 +110,25 @@
# Available through 'nixos-rebuild --flake .#your-hostname' # Available through 'nixos-rebuild --flake .#your-hostname'
nixosConfigurations = { nixosConfigurations = {
adalbert = nixpkgs.lib.nixosSystem { adalbert = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs outputs vars; }; specialArgs = {inherit inputs outputs vars;};
modules = [ modules = [
./hosts/adalbert ./hosts/adalbert
]; ];
}; };
ludwig = nixpkgs.lib.nixosSystem { ludwig = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs outputs vars; }; specialArgs = {inherit inputs outputs vars;};
modules = [ modules = [
./hosts/ludwig ./hosts/ludwig
]; ];
}; };
leopold = nixpkgs.lib.nixosSystem { leopold = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs outputs vars; }; specialArgs = {inherit inputs outputs vars;};
modules = [ modules = [
./hosts/leopold ./hosts/leopold
]; ];
}; };
franz = nixpkgs.lib.nixosSystem { franz = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs outputs vars; }; specialArgs = {inherit inputs outputs vars;};
modules = [ modules = [
./hosts/franz ./hosts/franz
]; ];
@ -155,7 +153,7 @@
homeConfigurations = { homeConfigurations = {
"${vars.user}@adalbert" = home-manager.lib.homeManagerConfiguration { "${vars.user}@adalbert" = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.x86_64-linux; # Home-manager requires 'pkgs' instance pkgs = nixpkgs.legacyPackages.x86_64-linux; # Home-manager requires 'pkgs' instance
extraSpecialArgs = { inherit inputs outputs vars; }; extraSpecialArgs = {inherit inputs outputs vars;};
modules = [ modules = [
./home/adalbert.nix ./home/adalbert.nix
]; ];
@ -163,14 +161,14 @@
}; };
"${vars.user}@ludwig" = home-manager.lib.homeManagerConfiguration { "${vars.user}@ludwig" = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.x86_64-linux; # Home-manager requires 'pkgs' instance pkgs = nixpkgs.legacyPackages.x86_64-linux; # Home-manager requires 'pkgs' instance
extraSpecialArgs = { inherit inputs outputs vars; }; extraSpecialArgs = {inherit inputs outputs vars;};
modules = [ modules = [
./home/ludwig.nix ./home/ludwig.nix
]; ];
}; };
"${vars.user}@franz" = home-manager.lib.homeManagerConfiguration { "${vars.user}@franz" = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.x86_64-linux; # Home-manager requires 'pkgs' instance pkgs = nixpkgs.legacyPackages.x86_64-linux; # Home-manager requires 'pkgs' instance
extraSpecialArgs = { inherit inputs outputs vars; }; extraSpecialArgs = {inherit inputs outputs vars;};
modules = [ modules = [
./home/franz.nix ./home/franz.nix
]; ];

View file

@ -1,4 +1,4 @@
{ pkgs, ... }: { {pkgs, ...}: {
programs.nixvim.plugins = { programs.nixvim.plugins = {
lualine.enable = true; lualine.enable = true;
oil.enable = true; oil.enable = true;
@ -87,12 +87,12 @@
todo-comments = { todo-comments = {
enable = true; enable = true;
settings.colors = { settings.colors = {
error = [ "DiagnosticError" "ErrorMsg" "#DC2626" ]; error = ["DiagnosticError" "ErrorMsg" "#DC2626"];
warning = [ "DiagnosticWarn" "WarningMsg" "#FBBF24" ]; warning = ["DiagnosticWarn" "WarningMsg" "#FBBF24"];
info = [ "DiagnosticInfo" "#2563EB" ]; info = ["DiagnosticInfo" "#2563EB"];
hint = [ "DiagnosticHint" "#10B981" ]; hint = ["DiagnosticHint" "#10B981"];
default = [ "Identifier" "#7C3AED" ]; default = ["Identifier" "#7C3AED"];
test = [ "Identifier" "#FF00FF" ]; test = ["Identifier" "#FF00FF"];
}; };
}; };

View file

@ -1,9 +1,10 @@
{ inputs {
, pkgs inputs,
, vars pkgs,
, ... vars,
...
}: { }: {
imports = [ inputs.arkenfox.hmModules.default ]; imports = [inputs.arkenfox.hmModules.default];
home.file.".mozilla/native-messaging-hosts/org.kde.plasma.browser_integration.json".source = "${pkgs.plasma5Packages.plasma-browser-integration}/lib/mozilla/native-messaging-hosts/org.kde.plasma.browser_integration.json"; home.file.".mozilla/native-messaging-hosts/org.kde.plasma.browser_integration.json".source = "${pkgs.plasma5Packages.plasma-browser-integration}/lib/mozilla/native-messaging-hosts/org.kde.plasma.browser_integration.json";
programs.firefox = { programs.firefox = {
@ -47,7 +48,7 @@
]; ];
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg"; icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
definedAliases = [ "@np" ]; definedAliases = ["@np"];
}; };
"Home Manager" = { "Home Manager" = {
@ -64,7 +65,7 @@
]; ];
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg"; icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
definedAliases = [ "@hm" ]; definedAliases = ["@hm"];
}; };
"Searx" = { "Searx" = {
@ -81,7 +82,7 @@
]; ];
iconUpdateURL = "https://paulgo.io/favicon.ico"; iconUpdateURL = "https://paulgo.io/favicon.ico";
definedAliases = [ "@sx" ]; definedAliases = ["@sx"];
}; };
"Amazon" = { "Amazon" = {
@ -98,7 +99,7 @@
]; ];
iconUpdateURL = "https://amazon.de/favicon.ico"; iconUpdateURL = "https://amazon.de/favicon.ico";
definedAliases = [ "@a" ]; definedAliases = ["@a"];
}; };
"YouTube" = { "YouTube" = {
@ -115,7 +116,7 @@
]; ];
iconUpdateURL = "https://piped.video/favicon.ico"; iconUpdateURL = "https://piped.video/favicon.ico";
definedAliases = [ "yt" ]; definedAliases = ["yt"];
}; };
}; };
search.force = true; search.force = true;
@ -190,9 +191,9 @@
}; };
xdg.mimeApps.defaultApplications = { xdg.mimeApps.defaultApplications = {
"text/html" = [ "firefox.desktop" ]; "text/html" = ["firefox.desktop"];
"text/xml" = [ "firefox.desktop" ]; "text/xml" = ["firefox.desktop"];
"x-scheme-handler/http" = [ "firefox.desktop" ]; "x-scheme-handler/http" = ["firefox.desktop"];
"x-scheme-handler/https" = [ "firefox.desktop" ]; "x-scheme-handler/https" = ["firefox.desktop"];
}; };
} }

View file

@ -1,17 +1,21 @@
# Do not modify this file! It was generated by nixos-generate-config # Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes # and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead. # to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }:
{ {
imports = config,
[ (modulesPath + "/installer/scan/not-detected.nix") lib,
pkgs,
modulesPath,
...
}: {
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
]; ];
boot.initrd.availableKernelModules = [ "xhci_pci" "thunderbolt" "nvme" "usb_storage" "sd_mod" ]; boot.initrd.availableKernelModules = ["xhci_pci" "thunderbolt" "nvme" "usb_storage" "sd_mod"];
boot.initrd.kernelModules = [ "dm-snapshot" ]; boot.initrd.kernelModules = ["dm-snapshot"];
boot.kernelModules = [ "kvm-intel" ]; boot.kernelModules = ["kvm-intel"];
boot.extraModulePackages = [ ]; boot.extraModulePackages = [];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking # Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's # (the default) this is the recommended approach. When using systemd-networkd it's