Compare commits
No commits in common. "66e7dab5aaca7f35405454765491e648b5053c71" and "11b0bf752297cad1da6f4bb085fbabc0f5a92c3c" have entirely different histories.
66e7dab5aa
...
11b0bf7522
@ -24,7 +24,7 @@
|
|||||||
|
|
||||||
config = {
|
config = {
|
||||||
console = {
|
console = {
|
||||||
font = lib.mkDefault "${pkgs.terminus_font}/share/consolefonts/ter-u28n.psf.gz";
|
font = "Lat2-Terminus16";
|
||||||
keyMap = lib.mkDefault "us";
|
keyMap = lib.mkDefault "us";
|
||||||
useXkbConfig = true;
|
useXkbConfig = true;
|
||||||
};
|
};
|
||||||
|
@ -4,7 +4,8 @@
|
|||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: {
|
}:
|
||||||
|
{
|
||||||
options.snowflake.core.nix = {
|
options.snowflake.core.nix = {
|
||||||
enable = lib.mkEnableOption "Enable core nix configuration";
|
enable = lib.mkEnableOption "Enable core nix configuration";
|
||||||
};
|
};
|
||||||
@ -27,10 +28,7 @@
|
|||||||
nixPath = lib.mapAttrsToList (key: value: "${key}=${value.to.path}") config.nix.registry;
|
nixPath = lib.mapAttrsToList (key: value: "${key}=${value.to.path}") config.nix.registry;
|
||||||
|
|
||||||
# Use the latest, unstable version of nix.
|
# Use the latest, unstable version of nix.
|
||||||
package = pkgs.nixVersions.nix_2_23;
|
package = pkgs.nixVersions.git;
|
||||||
# TODO: switch back to nix git. Current version has a security issue that allows
|
|
||||||
# remote code execution.
|
|
||||||
# package = pkgs.nixVersions.git;
|
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
# Accept flake configuration without prompting.
|
# Accept flake configuration without prompting.
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
|
|
||||||
xserver = {
|
xserver = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
videoDrivers = ["intel"];
|
||||||
};
|
};
|
||||||
displayManager.sddm = {
|
displayManager.sddm = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
_: _self: super: let
|
_: _self: super: let
|
||||||
version = "0.29.4";
|
version = "0.28.8";
|
||||||
in {
|
in {
|
||||||
netbird = super.netbird.override {
|
netbird = super.netbird.override {
|
||||||
buildGoModule = args:
|
buildGoModule = args:
|
||||||
super.buildGo123Module (
|
super.buildGoModule (
|
||||||
args
|
args
|
||||||
// {
|
// {
|
||||||
inherit version;
|
inherit version;
|
||||||
@ -11,9 +11,9 @@ in {
|
|||||||
owner = "netbirdio";
|
owner = "netbirdio";
|
||||||
repo = "netbird";
|
repo = "netbird";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
hash = "sha256-W71CE83r/RcPdBjzfT+FSh72UcKcTmIuagkrC1eaeNk=";
|
hash = "sha256-DfY8CVBHgE/kLALKNzSgmUxM0flWLesU0XAgVsHHLKc=";
|
||||||
};
|
};
|
||||||
vendorHash = "sha256-CD34U+Z8bUKN0Z4nxIVC+mYDp71Q8q1bmUypRDGgb3U=";
|
vendorHash = "sha256-CqknRMijAkWRLXCcIjRBX2wB64+RivD/mXq28TqzNjg=";
|
||||||
ldflags = [
|
ldflags = [
|
||||||
"-s"
|
"-s"
|
||||||
"-w"
|
"-w"
|
||||||
|
@ -6,13 +6,8 @@
|
|||||||
}: {
|
}: {
|
||||||
imports = [./hardware.nix];
|
imports = [./hardware.nix];
|
||||||
|
|
||||||
chaotic.mesa-git.enable = true;
|
|
||||||
|
|
||||||
hardware.cpu.intel.updateMicrocode = true;
|
hardware.cpu.intel.updateMicrocode = true;
|
||||||
hardware.enableRedistributableFirmware = true;
|
hardware.enableRedistributableFirmware = true;
|
||||||
hardware.graphics.extraPackages = with pkgs; [
|
|
||||||
mesa_git.opencl
|
|
||||||
];
|
|
||||||
|
|
||||||
networking.hostName = "thonkpad";
|
networking.hostName = "thonkpad";
|
||||||
networking.interfaces.wlan0.useDHCP = lib.mkDefault false;
|
networking.interfaces.wlan0.useDHCP = lib.mkDefault false;
|
||||||
@ -42,6 +37,7 @@
|
|||||||
extraPackages = with pkgs; [
|
extraPackages = with pkgs; [
|
||||||
easyeffects
|
easyeffects
|
||||||
glibc
|
glibc
|
||||||
|
logseq
|
||||||
obsidian
|
obsidian
|
||||||
piper
|
piper
|
||||||
# terraform
|
# terraform
|
||||||
|
@ -1,8 +1,4 @@
|
|||||||
{
|
_: {
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
boot = {
|
boot = {
|
||||||
initrd = {
|
initrd = {
|
||||||
availableKernelModules = [
|
availableKernelModules = [
|
||||||
@ -13,21 +9,20 @@
|
|||||||
"sd_mod"
|
"sd_mod"
|
||||||
];
|
];
|
||||||
luks.devices."cryptroot".device = "/dev/disk/by-uuid/9de352ea-128f-4d56-a720-36d81dfd9b92";
|
luks.devices."cryptroot".device = "/dev/disk/by-uuid/9de352ea-128f-4d56-a720-36d81dfd9b92";
|
||||||
luks.devices."cryptroot".bypassWorkqueues = true;
|
|
||||||
};
|
};
|
||||||
kernelModules = [
|
kernelModules = [
|
||||||
"kvm-intel"
|
"kvm-intel"
|
||||||
"iwlwifi"
|
"thinkpad_acpi"
|
||||||
|
# "iwlwifi"
|
||||||
"xe"
|
"xe"
|
||||||
];
|
];
|
||||||
kernelPackages = lib.mkDefault pkgs.linuxPackages_testing;
|
|
||||||
kernelParams = [
|
kernelParams = [
|
||||||
# NixOS produces many wakeups per second, which is bad for battery life.
|
"quiet"
|
||||||
# This disables the timer tick on the last 7 cores.
|
|
||||||
"nohz_full=14-21"
|
|
||||||
"i915.force_probe=!7d55"
|
|
||||||
"xe.force_probe=7d55"
|
"xe.force_probe=7d55"
|
||||||
|
"i915.force_probe=!7d55"
|
||||||
# "resume_offset=2465529"
|
# "resume_offset=2465529"
|
||||||
|
"intel_pstate=active"
|
||||||
|
"thinkpad_acpi.fan_control=1"
|
||||||
];
|
];
|
||||||
# resumeDevice = "/dev/disk/by-uuid/870fde90-a91a-4554-8b1c-d5702c789f4d";
|
# resumeDevice = "/dev/disk/by-uuid/870fde90-a91a-4554-8b1c-d5702c789f4d";
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user