Compare commits

..

No commits in common. "3c3b192f35d87aebb5ef79fa9bccdc4d176a835f" and "d78c2e3f67d37b2731abd2413edb2599bc1cb554" have entirely different histories.

4 changed files with 4 additions and 35 deletions

16
flake.lock generated
View file

@ -299,21 +299,6 @@
"type": "indirect" "type": "indirect"
} }
}, },
"nur": {
"locked": {
"lastModified": 1705847594,
"narHash": "sha256-YtoT6OoTIkYcwm+VPeqn+cJhyacd/WIMtBoBEvRDYVY=",
"owner": "nix-community",
"repo": "NUR",
"rev": "2b4a30cde35eb5b7813c731aa26fc475a27c723e",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "NUR",
"type": "github"
}
},
"plasma-manager": { "plasma-manager": {
"inputs": { "inputs": {
"home-manager": [ "home-manager": [
@ -351,7 +336,6 @@
"nixos-hardware": "nixos-hardware", "nixos-hardware": "nixos-hardware",
"nixpkgs-raw": "nixpkgs-raw", "nixpkgs-raw": "nixpkgs-raw",
"nixpkgs-unstable-raw": "nixpkgs-unstable-raw", "nixpkgs-unstable-raw": "nixpkgs-unstable-raw",
"nur": "nur",
"plasma-manager": "plasma-manager", "plasma-manager": "plasma-manager",
"vscode-extensions": "vscode-extensions" "vscode-extensions": "vscode-extensions"
} }

View file

@ -63,8 +63,6 @@
}; };
nix-flatpak.url = github:gmodena/nix-flatpak/main; nix-flatpak.url = github:gmodena/nix-flatpak/main;
nur.url = "github:nix-community/NUR";
}; };
outputs = { ... } @inputs: with inputs; outputs = { ... } @inputs: with inputs;

View file

@ -1,25 +1,16 @@
# Do not modify this file! It was generated by nixos-generate-config # Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes # and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead. # to /etc/nixos/configuration.nix instead.
{ config, lib, flakeSelf, modulesPath, ... }: { config, lib, pkgs, modulesPath, ... }:
let let
# \x20 is the escape code for a space # \x20 is the escape code for a space
ssdLabel = ''Win\\x20Max\\x202\\x20SSD''; ssdLabel = ''Win\\x20Max\\x202\\x20SSD'';
# You need to do fucky shit to import modules from the NUR
# https://github.com/nix-community/NUR#using-the-flake-in-nixos
nur = import flakeSelf.inputs.nur {
nurpkgs = import flakeSelf.inputs.nixpkgs-unstable-raw {
system = "x86_64-linux";
};
};
in in
{ {
imports = [ imports =
(modulesPath + "/installer/scan/not-detected.nix") [ (modulesPath + "/installer/scan/not-detected.nix")
nur.repos.cryolitia.modules.bmi260
]; ];
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "thunderbolt" "usbhid" "sdhci_pci" ]; boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "thunderbolt" "usbhid" "sdhci_pci" ];
@ -75,8 +66,5 @@ in
swapDevices = [ ]; swapDevices = [ ];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware = { hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
sensor.iio.bmi260.enable = true;
};
} }

View file

@ -1,7 +1,6 @@
{ config, lib, pkgs, flakeSelf, ... }: { config, lib, pkgs, flakeSelf, ... }:
{ {
imports = [ flakeSelf.inputs.nur.nixosModules.nur ];
environment = { environment = {
# As of the 1st of May 2023, the default packages are nano, perl, rsync and strace # As of the 1st of May 2023, the default packages are nano, perl, rsync and strace
# I don't need any of them, so I just empty the list # I don't need any of them, so I just empty the list