lexi hat schon wieder magie gewirkt

This commit is contained in:
xqtc 2024-11-22 18:22:29 +01:00
parent 5dd3a2b37c
commit cf2853c03e
Signed by: xqtc
GPG key ID: 2C064D095926D9D1
8 changed files with 36 additions and 15 deletions

View file

@ -8,6 +8,7 @@
imports = [ imports = [
./modules ./modules
./system.nix ./system.nix
./host.nix
]; ];
home.username = "xqtc"; home.username = "xqtc";
home.homeDirectory = home.homeDirectory =

6
home/host.nix Normal file
View file

@ -0,0 +1,6 @@
{lib, ...}: {
options.host = lib.mkOption {
type = lib.types.str;
default = "generic";
};
}

View file

@ -52,6 +52,8 @@ in {
++ (with pkgs; [ ++ (with pkgs; [
nh nh
bat
ncspot ncspot
wakatime-cli wakatime-cli

View file

@ -35,7 +35,7 @@
}; };
}; };
plugins = { plugins = {
neorg = { neorg = {
enable = true; enable = true;
modules = { modules = {
"core.defaults" = { "core.defaults" = {
@ -51,17 +51,16 @@ neorg = {
"core.concealer" = { "core.concealer" = {
__empty = null; __empty = null;
}; };
"core.export" = { "core.export" = {
__empty = null; __empty = null;
}; };
"core.export.markdown" = { "core.export.markdown" = {
__empty = null; __empty = null;
}; };
}; };
}; };
gitblame.enable = true; gitblame.enable = true;
lspkind.enable = true; lspkind.enable = true;
persistence = { persistence = {
enable = true; enable = true;

View file

@ -18,8 +18,14 @@
}; };
initExtraFirst = initExtraFirst =
if !(config.os == "linux") if !(config.os == "linux")
then "export PATH=$PATH:~/.cargo/bin/\n${pkgs.pfetch-rs}/bin/pfetch" then "export PATH=$PATH:~/.cargo/bin/\n${pkgs.pfetch-rs}/bin/pfetch\n"
else "${pkgs.pfetch-rs}/bin/pfetch\n"; else
"${pkgs.pfetch-rs}/bin/pfetch\n"
+ (
if config.host == "asmodeus"
then "comin status\n"
else ""
);
plugins = [ plugins = [
{ {
name = "zsh-autocomplete"; name = "zsh-autocomplete";
@ -36,8 +42,8 @@
enable = true; enable = true;
enableNushellIntegration = true; enableNushellIntegration = true;
settings = { settings = {
style = "compact"; style = "compact";
inline_height = 10; inline_height = 10;
}; };
}; };
eza.enable = true; eza.enable = true;

View file

@ -1,9 +1,14 @@
{pkgs, config, lib, ...}: { {
pkgs,
config,
lib,
...
}: {
services.factorio = { services.factorio = {
enable = true; enable = true;
openFirewall = true; openFirewall = true;
# extraSettingsFile = /etc/factorio_settings.json; # extraSettingsFile = /etc/factorio_settings.json;
admins = [ "frottingqueen" ]; admins = ["frottingqueen"];
}; };
sops.secrets.factorio_server_settings = { sops.secrets.factorio_server_settings = {

View file

@ -1,6 +1,7 @@
{ {
lib, lib,
inputs, inputs,
config,
... ...
}: let }: let
dwl-source = inputs.dwl-source; dwl-source = inputs.dwl-source;
@ -11,7 +12,7 @@ in {
config = { config = {
home-manager.useGlobalPkgs = true; home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true; home-manager.useUserPackages = true;
home-manager.backupFileExtension = "hm_bak"; home-manager.backupFileExtension = "hm_bak";
home-manager.extraSpecialArgs = { home-manager.extraSpecialArgs = {
inherit inputs; inherit inputs;
@ -19,6 +20,7 @@ in {
}; };
home-manager.users.xqtc = {...}: { home-manager.users.xqtc = {...}: {
imports = [ imports = [
{config.host = config.networking.hostName;}
../home ../home
inputs.nixvim.homeManagerModules.nixvim inputs.nixvim.homeManagerModules.nixvim
inputs.sops-nix.homeManagerModules.sops inputs.sops-nix.homeManagerModules.sops