mirror of
https://github.com/thegeneralist01/config.git
synced 2026-03-07 10:59:55 +01:00
chore: add a new host and make a few adjustments
This commit is contained in:
parent
d084d841ce
commit
688acfe889
16 changed files with 195 additions and 65 deletions
|
|
@ -1,11 +1,17 @@
|
|||
{ lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
{ config, lib, pkgs, ... }: let
|
||||
inherit (lib) mkOption types;
|
||||
in {
|
||||
options = {
|
||||
onLinux = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
onLinux = mkOption {
|
||||
type = types.bool;
|
||||
default = pkgs.stdenv.isLinux;
|
||||
description = "Whether the system is running on Linux";
|
||||
};
|
||||
|
||||
isServer = mkOption {
|
||||
type = types.bool;
|
||||
default = config.nixpkgs.hostPlatform.isAarch64;
|
||||
description = "Whether the system is a server. Determined by the processor architecture.";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,30 +1,29 @@
|
|||
{ pkgs, ... }: {
|
||||
# TODO: this
|
||||
# environment.variables = {
|
||||
# TERMINAL = "ghostty";
|
||||
# };
|
||||
#
|
||||
# home-manager.sharedModules = [{
|
||||
# programs.ghostty = {
|
||||
# enable = true;
|
||||
# package = pkgs.ghostty;
|
||||
#
|
||||
# clearDefaultKeybinds = false;
|
||||
# settings = {
|
||||
# theme = "tokyonight";
|
||||
# font-family = "JetBrainsMono NL NFM Medium";
|
||||
# font-size = 16;
|
||||
#
|
||||
# shell-integration-features = "no-cursor";
|
||||
#
|
||||
# cursor-style = "block";
|
||||
# background-opacity = 1;
|
||||
#
|
||||
# background-blur-radius = 0;
|
||||
#
|
||||
# gtk-titlebar = false;
|
||||
# mouse-hide-while-typing = true;
|
||||
# };
|
||||
# };
|
||||
# }];
|
||||
environment.variables = {
|
||||
TERMINAL = "ghostty";
|
||||
};
|
||||
|
||||
home-manager.sharedModules = [{
|
||||
programs.ghostty = {
|
||||
enable = true;
|
||||
package = pkgs.ghostty;
|
||||
|
||||
clearDefaultKeybinds = false;
|
||||
settings = {
|
||||
theme = "tokyonight";
|
||||
font-family = "JetBrainsMono NL NFM Medium";
|
||||
font-size = 16;
|
||||
|
||||
shell-integration-features = "no-cursor";
|
||||
|
||||
cursor-style = "block";
|
||||
background-opacity = 1;
|
||||
|
||||
background-blur-radius = 0;
|
||||
|
||||
gtk-titlebar = false;
|
||||
mouse-hide-while-typing = true;
|
||||
};
|
||||
};
|
||||
}];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,6 +8,10 @@ in {
|
|||
neovim
|
||||
vim
|
||||
home-manager
|
||||
|
||||
gcc
|
||||
gnumake
|
||||
automake
|
||||
;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
networking.hostName = "thegeneralist";
|
||||
{ config, ... }: {
|
||||
networking.hostName = if config.isServer then "thegeneralist-central" else "thegeneralist";
|
||||
networking.networkmanager.enable = true;
|
||||
networking.networkmanager.wifi.powersave = false;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
{
|
||||
{ lib, config, ... }: lib.mkIf (!config.isServer) {
|
||||
hardware.nvidia = {
|
||||
open = true;
|
||||
modesetting.enable = true;
|
||||
|
|
|
|||
|
|
@ -1,16 +1,15 @@
|
|||
{ pkgs, lib, ...}: let
|
||||
{ pkgs, lib, config, ...}: let
|
||||
inherit (lib) attrValues;
|
||||
in {
|
||||
environment.systemPackages = attrValues {
|
||||
inherit (pkgs)
|
||||
protonup-qt
|
||||
pipewire
|
||||
pwvucontrol
|
||||
wireplumber
|
||||
playerctl
|
||||
|
||||
playerctl;
|
||||
} ++ (if (!config.isServer) then (attrValues {
|
||||
inherit (pkgs) protonup-qt
|
||||
xsane
|
||||
simple-scan
|
||||
;
|
||||
};
|
||||
simple-scan;
|
||||
}) else []);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
{ lib, ... }: {
|
||||
{ lib, config, ... }: lib.mkIf (!config.isServer) {
|
||||
programs.steam = {
|
||||
enable = true;
|
||||
remotePlay.openFirewall = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue