~ruther/nixos-config

8c38c300bb8a8962b56dc905969e8ccbc22f6bdc — Frantisek Bohacek 1 year, 4 months ago 0052291
feat: add nixos-hardware for laptop
3 files changed, 46 insertions(+), 19 deletions(-)

M flake.lock
M flake.nix
M hosts/default.nix
M flake.lock => flake.lock +35 -18
@@ 56,11 56,11 @@
        ]
      },
      "locked": {
        "lastModified": 1699368917,
        "narHash": "sha256-nUtGIWf86BOkUbtksWtfglvCZ/otP0FTZlQH8Rzc7PA=",
        "lastModified": 1699783872,
        "narHash": "sha256-4zTwLT2LL45Nmo6iwKB3ls3hWodVP9DiSWxki/oewWE=",
        "owner": "nix-community",
        "repo": "home-manager",
        "rev": "6a8444467c83c961e2f5ff64fb4f422e303c98d3",
        "rev": "280721186ab75a76537713ec310306f0eba3e407",
        "type": "github"
      },
      "original": {


@@ 77,11 77,11 @@
        ]
      },
      "locked": {
        "lastModified": 1699156599,
        "narHash": "sha256-Qk9ZE/pG9lNIGUVNArJxL0Hc0Soa92eQPPIhcDwWinU=",
        "lastModified": 1699760693,
        "narHash": "sha256-u/gkNUHQR/q23voqE5J4xmEWQIAqR+g3lUnCtzn0k7Y=",
        "owner": "nix-community",
        "repo": "nix-index-database",
        "rev": "5388a4002179d6778d212dc2fdcc7ac3fdbd5b65",
        "rev": "8aff4ca3dee60d1422489fe8d52c2f837b3ad113",
        "type": "github"
      },
      "original": {


@@ 99,11 99,11 @@
        ]
      },
      "locked": {
        "lastModified": 1699579295,
        "narHash": "sha256-W1HsyOFLmyWw46e+cuAIazQTD6g6dgxLMIIuaBoJzF8=",
        "lastModified": 1699924757,
        "narHash": "sha256-kPEAAJE7bW1d63bh9WM8GJAWc9MkU2TuD052R9HULiU=",
        "owner": "nix-community",
        "repo": "nix-vscode-extensions",
        "rev": "5d33996d98e9ff45a73a6f9ed293d548f6c14a39",
        "rev": "962359139e8f7dd3106c0235b1137c972242bc93",
        "type": "github"
      },
      "original": {


@@ 133,13 133,29 @@
        "type": "github"
      }
    },
    "nixos-hardware": {
      "locked": {
        "lastModified": 1699997707,
        "narHash": "sha256-ugb+1TGoOqqiy3axyEZpfF6T4DQUGjfWZ3Htry1EfvI=",
        "owner": "NixOS",
        "repo": "nixos-hardware",
        "rev": "5689f3ebf899f644a1aabe8774d4f37eb2f6c2f9",
        "type": "github"
      },
      "original": {
        "owner": "NixOS",
        "ref": "master",
        "repo": "nixos-hardware",
        "type": "github"
      }
    },
    "nixpkgs": {
      "locked": {
        "lastModified": 1699099776,
        "narHash": "sha256-X09iKJ27mGsGambGfkKzqvw5esP1L/Rf8H3u3fCqIiU=",
        "lastModified": 1699781429,
        "narHash": "sha256-UYefjidASiLORAjIvVsUHG6WBtRhM67kTjEY4XfZOFs=",
        "owner": "nixos",
        "repo": "nixpkgs",
        "rev": "85f1ba3e51676fa8cc604a3d863d729026a6b8eb",
        "rev": "e44462d6021bfe23dfb24b775cc7c390844f773d",
        "type": "github"
      },
      "original": {


@@ 151,11 167,11 @@
    },
    "nixpkgs-stable": {
      "locked": {
        "lastModified": 1699291058,
        "narHash": "sha256-5ggduoaAMPHUy4riL+OrlAZE14Kh7JWX4oLEs22ZqfU=",
        "lastModified": 1699596684,
        "narHash": "sha256-XSXP8zjBZJBVvpNb2WmY0eW8O2ce+sVyj1T0/iBRIvg=",
        "owner": "nixos",
        "repo": "nixpkgs",
        "rev": "41de143fda10e33be0f47eab2bfe08a50f234267",
        "rev": "da4024d0ead5d7820f6bd15147d3fe2a0c0cec73",
        "type": "github"
      },
      "original": {


@@ 167,11 183,11 @@
    },
    "nur": {
      "locked": {
        "lastModified": 1699645538,
        "narHash": "sha256-CKzsVfYM/9ccp0VDgzB91c33Ts8KSub7q5FWLNJouXk=",
        "lastModified": 1699994922,
        "narHash": "sha256-UMklwAE7pGHp0y4yDshqWu8pIwiD5+osDYnmPmN4ZXg=",
        "owner": "nix-community",
        "repo": "NUR",
        "rev": "9ffcf2dd6ac13cd0469a0ac2664296f45d879ffb",
        "rev": "f8123e008226bbbfd5ad0adbcbac25a08176572d",
        "type": "github"
      },
      "original": {


@@ 186,6 202,7 @@
        "nix-index-database": "nix-index-database",
        "nix-vscode-extensions": "nix-vscode-extensions",
        "nixgl": "nixgl",
        "nixos-hardware": "nixos-hardware",
        "nixpkgs": "nixpkgs",
        "nixpkgs-stable": "nixpkgs-stable",
        "nur": "nur",

M flake.nix => flake.nix +6 -1
@@ 42,9 42,14 @@
        url = "github:nix-community/nix-index-database";
        inputs.nixpkgs.follows = "nixpkgs";
      };

      nixos-hardware = {
        url = "github:NixOS/nixos-hardware/master";
        inputs.nixpkgs.follows = "nixpkgs";
      };
    };

  outputs = inputs @ { self, nixpkgs, nixpkgs-stable, nix-index-database, home-manager, nur, nixgl, ... }:   # Function that tells my flake which to use and what do what to do with the dependencies.
  outputs = inputs @ { self, nixpkgs, nixpkgs-stable, nix-index-database, home-manager, nur, nixgl, nixos-hardware, ... }:   # Function that tells my flake which to use and what do what to do with the dependencies.
    let                                                                     # Variables that can be used in the config files.
      user = "ruther";
      location = "$HOME/.setup";

M hosts/default.nix => hosts/default.nix +5 -0
@@ 37,6 37,11 @@ in
      inherit inputs stable user location;
    };
    modules = [
      inputs.nixos-hardware.common-cpu-intel
      inputs.nixos-hardware.common-gpu-intel
      inputs.nixos-hardware.common-pc-laptop
      inputs.nixos-hardware.common-pc-laptop-acpi_call
      inputs.nixos-hardware.common-pc-laptop-ssd
      nur.nixosModules.nur
      { nixpkgs.overlays = [ nur.overlay ]; }
      ./laptop-iapetus

Do not follow this link