modularize config

This commit is contained in:
DashieTM 2024-07-10 17:03:31 +02:00
parent 09c4625fbb
commit 7a4e46e04f
33 changed files with 230 additions and 168 deletions

View file

@ -8,5 +8,5 @@
# all others
",highrr,auto,1"
];
programs.ironbar.monitor = "DP-1";
conf.monitor = "DP-1";
}

View file

@ -1,17 +1,14 @@
{ pkgs, ... }:
{
imports = [
../../modules/gamemode.nix
../../modules/boot_params.nix
../../modules/ironbar_config.nix
../../modules/conf.nix
];
boot.kernelPackages = pkgs.linuxPackages_zen;
programs.boot.boot_params = [
"amdgpu.ppfeaturemask=0xffffffff"
];
networking.hostName = "marmo";
programs.ironbar.monitor = "DP-1";
programs.gamemode = {
device = 1;
# variables for system
conf = {
monitor = "DP-1";
gaming = {
enable = true;
device = 1;
};
hostname = "marmo";
};
}

View file

@ -9,9 +9,11 @@
# all others
",highres,auto,1"
];
programs.ironbar.monitor = "eDP-1";
programs.ironbar.battery = [
{ type = "upower"; class = "memory-usage"; }
];
conf = {
monitor = "eDP-1";
battery = [
{ type = "upower"; class = "memory-usage"; }
];
};
programs.hyprland.extra_autostart = [ "hyprdock --server" ];
}

View file

@ -1,16 +1,16 @@
{ pkgs, ... }:
{
imports = [
../../modules/ironbar_config.nix
../../modules/boot_params.nix
../../modules/conf.nix
./dsdt.nix
./firmware.nix
];
boot.kernelPackages = pkgs.linuxPackages_latest;
networking.hostName = "overheating";
programs.ironbar.monitor = "eDP-1";
programs.ironbar.scale = "2.0";
programs.boot.boot_params = [ "rtc_cmos.use_acpi_alarm=1" ];
conf = {
monitor = "eDP-1";
scale = "2.0";
hostname = "overheating";
boot_params = [ "rtc_cmos.use_acpi_alarm=1" ];
};
hardware.bluetooth.enable = true;
hardware.bluetooth.powerOnBoot = true;

View file

@ -1,4 +1,4 @@
{ pkgs, config, lib, modulesPath, ... }:
{ config, lib, modulesPath, ... }:
{
imports =
[

View file

@ -1,4 +1,8 @@
{ username, ... }: {
{ config, ... }:
let
username = config.conf.username;
in
{
imports = [
../../modules
];
@ -30,7 +34,7 @@
# monitor right
"3,monitor:HDMI-A-1, default:true"
];
programs.ironbar.monitor = "DP-1";
conf.monitor = "DP-1";
programs.hyprland.hyprpaper = ''
#load
preload = /home/${username}/Pictures/backgrounds/shinobu_2k.jpg

View file

@ -1,19 +1,19 @@
{ pkgs, lib, ... }:
{
imports = [
../../modules/gamemode.nix
../../modules/boot_params.nix
../../modules/ironbar_config.nix
../../modules/conf.nix
];
boot.kernelPackages = pkgs.linuxPackages_xanmod_latest;
programs.boot.boot_params = [
"amdgpu.ppfeaturemask=0xffffffff"
];
networking.hostName = "spaceship";
programs.gamemode = {
device = 0;
# config variables
conf = {
monitor = "DP-1";
gaming = {
enable = true;
};
streamdeck.enable = true;
hostname = "spaceship";
};
virtualisation.virtualbox.host.enable = true;
# enable hardware acceleration and rocm
@ -28,6 +28,12 @@
enable = true;
enable32Bit = lib.mkDefault true;
};
boot.initrd.kernelModules = [ "amdgpu" ];
programs.ironbar.monitor = "DP-1";
networking.firewall = {
allowedTCPPortRanges = [
{ from = 1714; to = 1764; } # KDE Connect
];
allowedUDPPortRanges = [
{ from = 1714; to = 1764; } # KDE Connect
];
};
}

View file

@ -1,6 +0,0 @@
{
#programs.streamdeck-ui = {
# enable = true;
# autoStart = false; # optional
#};
}