Skip to content

Commit

Permalink
Dont use kernel params for iishin
Browse files Browse the repository at this point in the history
  • Loading branch information
arunoruto committed Sep 20, 2024
1 parent 1d7069b commit 5f5a1d3
Show file tree
Hide file tree
Showing 8 changed files with 41 additions and 19 deletions.
7 changes: 6 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
{
description = "Mirzas Nix Config";

nixConfig = {
extra-substituters = ["https://arunoruto.cachix.org"];
extra-trusted-public-keys = ["arunoruto.cachix.org-1:GQVw1YDtjt0+ElmQifxEI52a0pRVe9/gdcNEr8v8G14="];
};

inputs = {
# Nixpkgs
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
Expand Down Expand Up @@ -169,7 +174,7 @@
./homes
];
};

# Framework Laptop Intel 11th
zangetsu = nixpkgs.lib.nixosSystem {
inherit system;
Expand Down
22 changes: 11 additions & 11 deletions hosts/isshin/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@
amd.enable = true;

# Framework specific kernel Params
boot = {
kernelParams = [
#"quiet"
#"splash"
# "ahci.mobile_lpm_policy=3"
# For Power consumption
# https://kvark.github.io/linux/framework/2021/10/17/framework-nixos.html
# "mem_sleep_default=deep"
];
# initrd.kernelModules = ["i915"];
};
# boot = {
# kernelParams = [
# #"quiet"
# #"splash"
# # "ahci.mobile_lpm_policy=3"
# # For Power consumption
# # https://kvark.github.io/linux/framework/2021/10/17/framework-nixos.html
# # "mem_sleep_default=deep"
# ];
# # initrd.kernelModules = ["i915"];
# };
}
3 changes: 2 additions & 1 deletion modules/home-manager/pc/gui/thunderbird.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
config = lib.mkIf config.thunderbird.enable {
programs.thunderbird = {
enable = true;
package = pkgs.unstable.thunderbird-128;
# package = pkgs.unstable.thunderbird-128;
package = pkgs.thunderbird;
profiles.mirza = {
isDefault = true;
};
Expand Down
2 changes: 1 addition & 1 deletion modules/nixos/environment/amd.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
};

config = lib.mkIf config.amd.enable {
boot.initrd.kernelModules = ["amdgpu"];
# boot.initrd.kernelModules = ["amdgpu"];

services.xserver.videoDrivers = ["amdgpu"];

Expand Down
3 changes: 3 additions & 0 deletions modules/nixos/environment/cachix.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
pkgs,
lib,
config,
username,
...
}: {
options.cachix.enable = lib.mkEnableOption "Use cachix to manage nix caches for packages";
Expand All @@ -10,5 +11,7 @@
environment.systemPackages = with pkgs; [
cachix
];

nix.settings.trusted-users = ["root" username];
};
}
1 change: 1 addition & 0 deletions modules/nixos/services/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@
# oneapi.enable = lib.mkDefault true;
ssh.enable = lib.mkDefault true;
tlp.enable = lib.mkDefault false;
ppd.enable = lib.mkDefault false;
}
17 changes: 17 additions & 0 deletions modules/nixos/services/ppd.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
lib,
config,
...
}: {
options.ppd.enable = lib.mkEnableOption ''
Enable power saving using Power Profiles Deamon.
Needed by AMD framework laptops, since TLP interfers with some process.
https://knowledgebase.frame.work/en_us/optimizing-ubuntu-battery-life-Sye_48Lg3
'';

config = lib.mkIf config.ppd.enable {
services = {
power-profiles-daemon.enable = lib.mkDefault true;
powerManagement.powertop.enable = lib.mkDefault false;
};
}
5 changes: 0 additions & 5 deletions modules/nixos/user.nix
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,6 @@

environment.sessionVariables.FLAKE = "/home/${username}/.config/flake";

# catppuccin = {
# enable = true;
# flavor = "macchiato";
# accent = "green";
# };
imports = [
inputs.stylix.nixosModules.stylix
];
Expand Down

0 comments on commit 5f5a1d3

Please sign in to comment.