Compare commits

...

3 commits

Author SHA1 Message Date
xqtc ee2a2fcd95
Some more hardware stuff 2024-11-22 18:40:08 +01:00
xqtc a144a5205d
Some hardware stuff 2024-11-22 18:39:29 +01:00
xqtc cf2853c03e
lexi hat schon wieder magie gewirkt 2024-11-22 18:22:29 +01:00
9 changed files with 44 additions and 18 deletions

View file

@ -8,6 +8,7 @@
imports = [
./modules
./system.nix
./host.nix
];
home.username = "xqtc";
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; [
nh
bat
ncspot
wakatime-cli

View file

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

View file

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

View file

@ -54,6 +54,11 @@
driSupport32Bit = true;
};
hardware.cpu.amd.updateMicrocode = true;
hardware.enableAllFirmware = true;
services.fwupd.enable = true;
hardware.opengl.extraPackages = with pkgs; [
vaapiVdpau
];
@ -61,14 +66,14 @@
hardware.nvidia = {
modesetting.enable = true;
open = true;
powerManagement.enable = false;
powerManagement.finegrained = false;
open = false;
nvidiaSettings = true;
package = config.boot.kernelPackages.nvidiaPackages.stable;
package = config.boot.kernelPackages.nvidiaPackages.production;
};
# Use the systemd-boot EFI boot loader.

View file

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

View file

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