Compare commits

...

3 Commits

6 changed files with 77 additions and 9 deletions

62
flake.lock generated
View File

@ -139,7 +139,7 @@
}, },
"flake-utils": { "flake-utils": {
"inputs": { "inputs": {
"systems": "systems" "systems": "systems_2"
}, },
"locked": { "locked": {
"lastModified": 1731533236, "lastModified": 1731533236,
@ -313,6 +313,28 @@
"type": "github" "type": "github"
} }
}, },
"nbfc-linux": {
"inputs": {
"nixpkgs": [
"nixpkgs"
],
"utils": "utils"
},
"locked": {
"lastModified": 1739813393,
"narHash": "sha256-esM0rtMLSQHfz5Odqy2Du5aXoxQKAfrVIJ7gRQ7syRs=",
"owner": "cronyakatsuki",
"repo": "nbfc-linux",
"rev": "8328fd92d2064fc1756f2621abdebb17cca4dda9",
"type": "github"
},
"original": {
"owner": "cronyakatsuki",
"ref": "a715-41g",
"repo": "nbfc-linux",
"type": "github"
}
},
"nil": { "nil": {
"inputs": { "inputs": {
"flake-utils": [ "flake-utils": [
@ -393,7 +415,7 @@
"nixpkgs" "nixpkgs"
], ],
"nmd": "nmd", "nmd": "nmd",
"systems": "systems_2" "systems": "systems_3"
}, },
"locked": { "locked": {
"lastModified": 1739361262, "lastModified": 1739361262,
@ -413,6 +435,7 @@
"inputs": { "inputs": {
"auto-cpufreq": "auto-cpufreq", "auto-cpufreq": "auto-cpufreq",
"home-manager": "home-manager", "home-manager": "home-manager",
"nbfc-linux": "nbfc-linux",
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs",
"nvf": "nvf", "nvf": "nvf",
"stylix": "stylix" "stylix": "stylix"
@ -455,7 +478,7 @@
"nixpkgs": [ "nixpkgs": [
"nixpkgs" "nixpkgs"
], ],
"systems": "systems_3", "systems": "systems_4",
"tinted-foot": "tinted-foot", "tinted-foot": "tinted-foot",
"tinted-kitty": "tinted-kitty", "tinted-kitty": "tinted-kitty",
"tinted-schemes": "tinted-schemes", "tinted-schemes": "tinted-schemes",
@ -521,6 +544,21 @@
"type": "github" "type": "github"
} }
}, },
"systems_4": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
},
"tinted-foot": { "tinted-foot": {
"flake": false, "flake": false,
"locked": { "locked": {
@ -602,6 +640,24 @@
"repo": "base16-zed", "repo": "base16-zed",
"type": "github" "type": "github"
} }
},
"utils": {
"inputs": {
"systems": "systems"
},
"locked": {
"lastModified": 1710146030,
"narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
} }
}, },
"root": "root", "root": "root",

View File

@ -28,6 +28,12 @@
url = "github:AdnanHodzic/auto-cpufreq"; url = "github:AdnanHodzic/auto-cpufreq";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
# use custom nbfc that has the config for my laptop
nbfc-linux = {
url = "github:cronyakatsuki/nbfc-linux/a715-41g";
inputs.nixpkgs.follows = "nixpkgs";
};
}; };
outputs = { outputs = {

View File

@ -25,6 +25,9 @@
# Disable plasma # Disable plasma
crony.plasma.enable = false; crony.plasma.enable = false;
# Disable amdgpu
crony.amdgpu.enable = false;
# Setup gpu # Setup gpu
hardware.graphics = { hardware.graphics = {
enable = true; enable = true;

View File

@ -467,7 +467,8 @@ in {
# Allow tearing for sifu # Allow tearing for sifu
"immediate, class:^(steam_app_2138710)$" "immediate, class:^(steam_app_2138710)$"
"immediate, class:^(Graveyard Keeper.x86_64)" "immediate, class:^(Graveyard Keeper.x86_64)$"
"immediate, class:^(gamescope)$"
# Make workspace 6 a floating layout # Make workspace 6 a floating layout
"float, workspace:6" "float, workspace:6"

View File

@ -1,7 +1,8 @@
{ {
config, config,
lib, inputs,
pkgs, pkgs,
lib,
... ...
}: { }: {
options = { options = {
@ -10,8 +11,8 @@
config = lib.mkIf config.crony.nbfc.enable { config = lib.mkIf config.crony.nbfc.enable {
# Install nbfc-linux # Install nbfc-linux
environment.systemPackages = with pkgs; [ environment.systemPackages = [
nbfc-linux inputs.nbfc-linux.packages.x86_64-linux.default
]; ];
# Setup nbfc package # Setup nbfc package
@ -21,7 +22,7 @@
serviceConfig.Type = "simple"; serviceConfig.Type = "simple";
path = [pkgs.kmod]; path = [pkgs.kmod];
script = "${pkgs.nbfc-linux}/bin/nbfc_service --config-file '/home/crony/.config/nbfc.json'"; script = "${inputs.nbfc-linux.packages.x86_64-linux.default}/bin/nbfc_service --config-file '/home/crony/.config/nbfc.json'";
wantedBy = ["multi-user.target"]; wantedBy = ["multi-user.target"];
}; };

View File

@ -23,9 +23,10 @@
powerManagement.enable = true; powerManagement.enable = true;
nvidiaSettings = true; nvidiaSettings = true;
prime = { prime = {
reverseSync.enable = true;
offload = { offload = {
enableOffloadCmd = true; enableOffloadCmd = true;
enable = true; enable = false;
}; };
nvidiaBusId = "PCI:1:0:0"; nvidiaBusId = "PCI:1:0:0";