mirror of
https://github.com/tuxdotrs/nix-config.git
synced 2026-06-21 03:36:32 +05:30
Compare commits
8 Commits
b649b974fa
...
dev
| Author | SHA1 | Date | |
|---|---|---|---|
|
5a4483b615
|
|||
|
c3adf234f7
|
|||
|
7f74855511
|
|||
|
383bc98052
|
|||
|
828ca02935
|
|||
|
6438a98d18
|
|||
|
6b09bf0e7e
|
|||
|
cd4e81178d
|
@@ -25,6 +25,7 @@
|
|||||||
|
|
||||||
home = {
|
home = {
|
||||||
directories = [
|
directories = [
|
||||||
|
"Distrobox"
|
||||||
".steam"
|
".steam"
|
||||||
".cache/awww"
|
".cache/awww"
|
||||||
".config/BraveSoftware"
|
".config/BraveSoftware"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ config, ... }:
|
{ inputs, config, ... }:
|
||||||
{
|
{
|
||||||
flake.modules.nixos.canopus =
|
flake.modules.nixos.canopus =
|
||||||
{
|
{
|
||||||
@@ -7,9 +7,12 @@
|
|||||||
...
|
...
|
||||||
}@innerArgs:
|
}@innerArgs:
|
||||||
{
|
{
|
||||||
imports = with config.flake.modules.nixos; [
|
imports =
|
||||||
hardware
|
with config.flake.modules.nixos;
|
||||||
];
|
[
|
||||||
|
hardware
|
||||||
|
]
|
||||||
|
++ [ inputs.nixos-hardware.nixosModules.asus-zephyrus-ga503 ];
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [
|
boot.initrd.availableKernelModules = [
|
||||||
"nvme"
|
"nvme"
|
||||||
@@ -25,6 +28,106 @@
|
|||||||
|
|
||||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault innerArgs.config.hardware.enableRedistributableFirmware;
|
hardware.cpu.amd.updateMicrocode = lib.mkDefault innerArgs.config.hardware.enableRedistributableFirmware;
|
||||||
|
|
||||||
|
services = {
|
||||||
|
power-profiles-daemon.enable = true;
|
||||||
|
upower.enable = true;
|
||||||
|
|
||||||
|
supergfxd = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
mode = "Integrated";
|
||||||
|
vfio_enable = false;
|
||||||
|
vfio_save = false;
|
||||||
|
always_reboot = false;
|
||||||
|
no_logind = false;
|
||||||
|
logout_timeout_s = 180;
|
||||||
|
hotplug_type = "None";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
asusd = {
|
||||||
|
enable = true;
|
||||||
|
asusdConfig.text = ''
|
||||||
|
(
|
||||||
|
charge_control_end_threshold: 80,
|
||||||
|
disable_nvidia_powerd_on_battery: true,
|
||||||
|
ac_command: "",
|
||||||
|
bat_command: "",
|
||||||
|
|
||||||
|
platform_profile_linked_epp: true,
|
||||||
|
platform_profile_on_battery: Quiet,
|
||||||
|
platform_profile_on_ac: Performance,
|
||||||
|
|
||||||
|
change_platform_profile_on_battery: true,
|
||||||
|
change_platform_profile_on_ac: true,
|
||||||
|
|
||||||
|
profile_quiet_epp: Power,
|
||||||
|
profile_balanced_epp: BalancePower,
|
||||||
|
profile_custom_epp: Performance,
|
||||||
|
profile_performance_epp: Performance,
|
||||||
|
|
||||||
|
ac_profile_tunings: {},
|
||||||
|
dc_profile_tunings: {},
|
||||||
|
armoury_settings: {},
|
||||||
|
)
|
||||||
|
'';
|
||||||
|
profileConfig.text = ''
|
||||||
|
(
|
||||||
|
active_profile: Quiet,
|
||||||
|
)
|
||||||
|
'';
|
||||||
|
fanCurvesConfig.text = ''
|
||||||
|
(
|
||||||
|
profiles: (
|
||||||
|
balanced: [
|
||||||
|
(
|
||||||
|
fan: CPU,
|
||||||
|
pwm: (2, 22, 45, 68, 91, 153, 153, 153),
|
||||||
|
temp: (55, 62, 66, 70, 74, 78, 78, 78),
|
||||||
|
enabled: false,
|
||||||
|
),
|
||||||
|
(
|
||||||
|
fan: GPU,
|
||||||
|
pwm: (2, 25, 48, 71, 94, 165, 165, 165),
|
||||||
|
temp: (55, 62, 66, 70, 74, 78, 78, 78),
|
||||||
|
enabled: false,
|
||||||
|
),
|
||||||
|
],
|
||||||
|
performance: [
|
||||||
|
(
|
||||||
|
fan: CPU,
|
||||||
|
pwm: (35, 68, 79, 91, 114, 175, 175, 175),
|
||||||
|
temp: (58, 62, 66, 70, 74, 78, 78, 78),
|
||||||
|
enabled: false,
|
||||||
|
),
|
||||||
|
(
|
||||||
|
fan: GPU,
|
||||||
|
pwm: (35, 71, 84, 94, 119, 188, 188, 188),
|
||||||
|
temp: (58, 62, 66, 70, 74, 78, 78, 78),
|
||||||
|
enabled: false,
|
||||||
|
),
|
||||||
|
],
|
||||||
|
quiet: [
|
||||||
|
(
|
||||||
|
fan: CPU,
|
||||||
|
pwm: (2, 12, 22, 35, 45, 58, 79, 79),
|
||||||
|
temp: (55, 62, 66, 70, 74, 78, 82, 82),
|
||||||
|
enabled: true,
|
||||||
|
),
|
||||||
|
(
|
||||||
|
fan: GPU,
|
||||||
|
pwm: (2, 12, 25, 35, 48, 61, 84, 84),
|
||||||
|
temp: (55, 62, 66, 70, 74, 78, 82, 82),
|
||||||
|
enabled: true,
|
||||||
|
),
|
||||||
|
],
|
||||||
|
custom: [],
|
||||||
|
),
|
||||||
|
)
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
networking.useDHCP = lib.mkDefault true;
|
networking.useDHCP = lib.mkDefault true;
|
||||||
nixpkgs.hostPlatform = lib.mkDefault system;
|
nixpkgs.hostPlatform = lib.mkDefault system;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -25,6 +25,7 @@
|
|||||||
|
|
||||||
home = {
|
home = {
|
||||||
directories = [
|
directories = [
|
||||||
|
"Distrobox"
|
||||||
".steam"
|
".steam"
|
||||||
".cache/awww"
|
".cache/awww"
|
||||||
".config/BraveSoftware"
|
".config/BraveSoftware"
|
||||||
|
|||||||
@@ -34,7 +34,11 @@
|
|||||||
|
|
||||||
cpu.amd.updateMicrocode = lib.mkDefault innerArgs.config.hardware.enableRedistributableFirmware;
|
cpu.amd.updateMicrocode = lib.mkDefault innerArgs.config.hardware.enableRedistributableFirmware;
|
||||||
};
|
};
|
||||||
services.xserver.videoDrivers = [ "nvidia" ];
|
|
||||||
|
services = {
|
||||||
|
xserver.videoDrivers = [ "nvidia" ];
|
||||||
|
power-profiles-daemon.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
networking.useDHCP = lib.mkDefault true;
|
networking.useDHCP = lib.mkDefault true;
|
||||||
nixpkgs.config.cudaSupport = true;
|
nixpkgs.config.cudaSupport = true;
|
||||||
|
|||||||
7
modules/nixos/desktop/misc.nix
Normal file
7
modules/nixos/desktop/misc.nix
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
flake.modules.nixos.desktop =
|
||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
environment.systemPackages = with pkgs; [ brightnessctl ];
|
||||||
|
};
|
||||||
|
}
|
||||||
18
modules/nixos/desktop/thunar.nix
Normal file
18
modules/nixos/desktop/thunar.nix
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
{
|
||||||
|
flake.modules.nixos.desktop =
|
||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
services = {
|
||||||
|
gvfs.enable = true;
|
||||||
|
tumbler.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
programs.thunar = {
|
||||||
|
enable = true;
|
||||||
|
plugins = with pkgs; [
|
||||||
|
thunar-archive-plugin
|
||||||
|
thunar-volman
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -1,8 +1,11 @@
|
|||||||
{
|
{
|
||||||
flake.modules.nixos.gaming = {
|
flake.modules.nixos.gaming =
|
||||||
programs.steam = {
|
{ pkgs, ... }:
|
||||||
enable = true;
|
{
|
||||||
protontricks.enable = true;
|
programs.steam = {
|
||||||
|
enable = true;
|
||||||
|
protontricks.enable = true;
|
||||||
|
extraCompatPackages = with pkgs; [ proton-ge-bin ];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user