modularize config
This commit is contained in:
parent
09c4625fbb
commit
7a4e46e04f
33 changed files with 230 additions and 168 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue