Add fcc-unlock
This commit is contained in:
parent
98c008fa33
commit
bc1e1731cf
6 changed files with 53 additions and 18 deletions
3
.gitmodules
vendored
3
.gitmodules
vendored
|
@ -6,3 +6,6 @@
|
||||||
path = defaults/threema
|
path = defaults/threema
|
||||||
url = git@github.com:fabianhauser/nixos-config-threema.git
|
url = git@github.com:fabianhauser/nixos-config-threema.git
|
||||||
branch = main
|
branch = main
|
||||||
|
[submodule "fcc-unlock"]
|
||||||
|
path = fcc-unlock
|
||||||
|
url = ./fcc-unlock/
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ config, lib, pkgs, modulesPath, hardwareModules, ... }: {
|
{ config, lib, pkgs, modulesPath, hardwareModules, pkgFccUnlock, ... }: {
|
||||||
|
|
||||||
imports = with hardwareModules; [
|
imports = with hardwareModules; [
|
||||||
(modulesPath + "/installer/scan/not-detected.nix")
|
(modulesPath + "/installer/scan/not-detected.nix")
|
||||||
|
@ -14,6 +14,11 @@
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [ modemmanager libmbim ];
|
environment.systemPackages = with pkgs; [ modemmanager libmbim ];
|
||||||
|
|
||||||
|
|
||||||
|
environment.etc."ModemManager/fcc-unlock.d/1eac:1001" = {
|
||||||
|
source = "${pkgFccUnlock}/bin/fcc-unlock";
|
||||||
|
};
|
||||||
|
|
||||||
# CPU Configuration
|
# CPU Configuration
|
||||||
hardware.cpu.intel.updateMicrocode = true;
|
hardware.cpu.intel.updateMicrocode = true;
|
||||||
services.throttled.enable = true;
|
services.throttled.enable = true;
|
||||||
|
|
1
fcc-unlock
Submodule
1
fcc-unlock
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 2ec601e9851c67913af403162c5346de3702eace
|
47
flake.lock
generated
47
flake.lock
generated
|
@ -1,5 +1,25 @@
|
||||||
{
|
{
|
||||||
"nodes": {
|
"nodes": {
|
||||||
|
"fcc-unlock": {
|
||||||
|
"inputs": {
|
||||||
|
"nixos-stable": [
|
||||||
|
"nixpkgs-stable"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1665140084,
|
||||||
|
"narHash": "sha256-3rDi3/DemRvOzsdracVIiDumg7gq5BkzusNyaJdEA68=",
|
||||||
|
"ref": "HEAD",
|
||||||
|
"rev": "2ec601e9851c67913af403162c5346de3702eace",
|
||||||
|
"revCount": 2,
|
||||||
|
"type": "git",
|
||||||
|
"url": "file:///etc/nixos/fcc-unlock"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "file:///etc/nixos/fcc-unlock"
|
||||||
|
}
|
||||||
|
},
|
||||||
"home-manager": {
|
"home-manager": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
|
@ -23,11 +43,11 @@
|
||||||
},
|
},
|
||||||
"nixos-hardware": {
|
"nixos-hardware": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1668973873,
|
"lastModified": 1669146234,
|
||||||
"narHash": "sha256-DnTrRduUIRgsCBruvUXsaBw2G46JNq6/DtrM5R7VrRc=",
|
"narHash": "sha256-HEby7EG1yaq1oT2Ze6Cvok9CFju1XHkSvVHmkptLW9U=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixos-hardware",
|
"repo": "nixos-hardware",
|
||||||
"rev": "1108c1b8614017c8b52005054fd27a00e4feb51b",
|
"rev": "0099253ad0b5283f06ffe31cf010af3f9ad7837d",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -38,11 +58,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs-stable": {
|
"nixpkgs-stable": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1668984258,
|
"lastModified": 1669378442,
|
||||||
"narHash": "sha256-0gDMJ2T3qf58xgcSbYoXiRGUkPWmKyr5C3vcathWhKs=",
|
"narHash": "sha256-nm+4PN0A4SnV0SzEchxrMyKPvI3Ld/aoom4PnHeHucs=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "cf63ade6f74bbc9d2a017290f1b2e33e8fbfa70a",
|
"rev": "0faaf0a9bb6dedb69bfd43ac06fb27fadc476c51",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -54,11 +74,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs-unstable": {
|
"nixpkgs-unstable": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1668994630,
|
"lastModified": 1669320964,
|
||||||
"narHash": "sha256-1lqx6HLyw6fMNX/hXrrETG1vMvZRGm2XVC9O/Jt0T6c=",
|
"narHash": "sha256-EBFw+ge12Pcr3qCk8If3/eMBAoQLR7ytndXZoRevUtM=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "af50806f7c6ab40df3e6b239099e8f8385f6c78b",
|
"rev": "27ccd29078f974ddbdd7edc8e38c8c8ae003c877",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -78,11 +98,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1668005131,
|
"lastModified": 1668780698,
|
||||||
"narHash": "sha256-wjCtCCrS9RTMgT0ajoik340PcU7ym3p0z6SM66GuFI4=",
|
"narHash": "sha256-XcvgI08rrzA71tXj3JK0ZvEofzLLb2DlQVuVjAtS4Kw=",
|
||||||
"ref": "master",
|
"ref": "master",
|
||||||
"rev": "45ee37cb2f5089f9f6cab410690194ea474286c8",
|
"rev": "fe42502147059db67e6b26b9df6da1ae19caf6b0",
|
||||||
"revCount": 238,
|
"revCount": 241,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "file:///etc/nixos/qois-infrastructure"
|
"url": "file:///etc/nixos/qois-infrastructure"
|
||||||
},
|
},
|
||||||
|
@ -93,6 +113,7 @@
|
||||||
},
|
},
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
|
"fcc-unlock": "fcc-unlock",
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
"nixos-hardware": "nixos-hardware",
|
"nixos-hardware": "nixos-hardware",
|
||||||
"nixpkgs-stable": "nixpkgs-stable",
|
"nixpkgs-stable": "nixpkgs-stable",
|
||||||
|
|
|
@ -17,11 +17,15 @@
|
||||||
};
|
};
|
||||||
threema.url = "git+file:///etc/nixos/defaults/threema";
|
threema.url = "git+file:///etc/nixos/defaults/threema";
|
||||||
threema.inputs.nixpkgs-unstable.follows = "nixpkgs-unstable";
|
threema.inputs.nixpkgs-unstable.follows = "nixpkgs-unstable";
|
||||||
|
fcc-unlock = {
|
||||||
|
url = "git+file:///etc/nixos/fcc-unlock";
|
||||||
|
inputs.nixos-stable.follows = "nixpkgs-stable";
|
||||||
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs-unstable, nixpkgs-stable, home-manager
|
outputs = { self, nixpkgs-unstable, nixpkgs-stable, home-manager
|
||||||
, qois-infrastructure, nixos-hardware, threema, ... }@inputs:
|
, qois-infrastructure, nixos-hardware, threema, fcc-unlock, ... }@inputs:
|
||||||
let
|
let
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
pkgsUnstable = import nixpkgs-unstable {
|
pkgsUnstable = import nixpkgs-unstable {
|
||||||
|
@ -44,6 +48,7 @@
|
||||||
sharedSpecialArgs = {
|
sharedSpecialArgs = {
|
||||||
threemaModules = threema.nixosModules;
|
threemaModules = threema.nixosModules;
|
||||||
inherit pkgsUnstable;
|
inherit pkgsUnstable;
|
||||||
|
pkgFccUnlock = fcc-unlock.packages.${system}.default;
|
||||||
|
|
||||||
};
|
};
|
||||||
home-manager-config = {
|
home-manager-config = {
|
||||||
|
@ -61,7 +66,7 @@
|
||||||
hardwareModules = nixos-hardware.nixosModules;
|
hardwareModules = nixos-hardware.nixosModules;
|
||||||
};
|
};
|
||||||
modules = [
|
modules = [
|
||||||
qois-infrastructure.nixosModule
|
qois-infrastructure.nixosModules.default
|
||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
./host/${host}/default.nix
|
./host/${host}/default.nix
|
||||||
] ++ (if host == "bachtel" then [ ] else [ home-manager-config ]);
|
] ++ (if host == "bachtel" then [ ] else [ home-manager-config ]);
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 45ee37cb2f5089f9f6cab410690194ea474286c8
|
Subproject commit fe42502147059db67e6b26b9df6da1ae19caf6b0
|
Loading…
Add table
Reference in a new issue