Compare commits

..

5 commits

6 changed files with 69 additions and 25 deletions

16
flake.lock generated
View file

@ -23,32 +23,32 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1726592409, "lastModified": 1728041527,
"narHash": "sha256-2Y6CDvD/BD43WLS77PHu6dUHbdUfFhuzkY8oJAecD/U=", "narHash": "sha256-03liqiJtk9UP7YQHW4r8MduKCK242FQzud8iWvvlK+o=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "2ab00f89dd3ecf8012f5090e6d7ca1a7ea30f594", "rev": "509dbf8d45606b618e9ec3bbe4e936b7c5bc6c1e",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "nix-community", "owner": "nix-community",
"ref": "release-24.05", "ref": "master",
"repo": "home-manager", "repo": "home-manager",
"type": "github" "type": "github"
} }
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1726447378, "lastModified": 1728018373,
"narHash": "sha256-2yV8nmYE1p9lfmLHhOCbYwQC/W8WYfGQABoGzJOb1JQ=", "narHash": "sha256-NOiTvBbRLIOe5F6RbHaAh6++BNjsb149fGZd1T4+KBg=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "086b448a5d54fd117f4dc2dee55c9f0ff461bdc1", "rev": "bc947f541ae55e999ffdb4013441347d83b00feb",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "NixOS", "owner": "NixOS",
"ref": "nixos-24.05", "ref": "nixos-unstable",
"repo": "nixpkgs", "repo": "nixpkgs",
"type": "github" "type": "github"
} }

View file

@ -2,11 +2,11 @@
description = "FunctionalHacker's NixOS config"; description = "FunctionalHacker's NixOS config";
inputs = { inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05"; nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
nur.url = "github:nix-community/NUR"; nur.url = "github:nix-community/NUR";
home-manager = { home-manager = {
url = "github:nix-community/home-manager/release-24.05"; url = "github:nix-community/home-manager/master";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };

View file

@ -7,11 +7,5 @@
]; ];
networking.hostName = "Mirkwood"; networking.hostName = "Mirkwood";
boot.initrd.kernelModules = [ "amdgpu" ];
boot = {
initrd = {
luks.devices."luks-cf2ca44e-d8d1-4ec8-a072-921f29ed693d".device = "/dev/disk/by-uuid/cf2ca44e-d8d1-4ec8-a072-921f29ed693d";
kernelModules = [ "amdgpu" ];
};
};
} }

View file

@ -1,4 +1,4 @@
{ config, ... }: { ... }:
{ {
imports = [ imports = [
@ -9,13 +9,13 @@
networking.hostName = "Shire"; networking.hostName = "Shire";
boot = { boot = {
kernelParams = config.boot.kernelParams ++ [ kernelParams = [
"intel_idle.max_cstate=1" "intel_idle.max_cstate=1"
]; ];
initrd.unl0kr.enable = true; initrd = {
# Couldn't get unl0kr working yet
# Does not work with unl0kr now # unl0kr.enable = true;
# https://github.com/NixOS/nixpkgs/issues/291935 # availableKernelModules = [ "hid-multitouch" "i2c-hid" "i2c-hid-acpi" "hid_generic" ];
plymouth.enable = false; };
}; };
} }

View file

@ -0,0 +1,50 @@
{ config, lib, modulesPath, ... }:
{
imports =
[
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [
"xhci_pci"
"usb_storage"
"usbhid"
"sd_mod"
"sdhci_acpi"
"hid-multitouch"
"i2c-hid"
"i2c-hid-acpi"
"hid_generic"
];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{
device = "/dev/disk/by-uuid/973c6741-8cca-4a19-a837-93d192e8c868";
fsType = "ext4";
};
boot.initrd.luks.devices."luks-8b12931e-b40d-4ad7-8cc1-ca25fcceb05b".device = "/dev/disk/by-uuid/8b12931e-b40d-4ad7-8cc1-ca25fcceb05b";
fileSystems."/boot" =
{
device = "/dev/disk/by-uuid/B63A-4E10";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
};
swapDevices = [ ];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's
# still possible to use this option, but it's recommended to use it in conjunction
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true;
# networking.interfaces.wlp1s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}

View file

@ -62,7 +62,7 @@
# Remove grc alias from forgit since it # Remove grc alias from forgit since it
# collides with the grc colorizer # collides with the grc colorizer
unalias grc; #unalias grc;
# Launch or attach zellij to existing session if logging in over ssh # Launch or attach zellij to existing session if logging in over ssh
if [[ -z "$ZELLIJ" && -n "$SSH_CONNECTION" ]]; then if [[ -z "$ZELLIJ" && -n "$SSH_CONNECTION" ]]; then