From 5aea19e5606f60302c087c1dcb1e76341a63a139 Mon Sep 17 00:00:00 2001 From: Patryk Niedźwiedziński Date: Sat, 5 Oct 2024 20:47:54 +0200 Subject: Add x220 disko --- flake.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index bbabfb3..ed19fcc 100644 --- a/flake.nix +++ b/flake.nix @@ -9,6 +9,8 @@ inputs.nixpkgs.follows = "nixpkgs"; }; nixos-hardware.url = "github:NixOS/nixos-hardware/master"; + disko.url = "github:nix-community/disko"; + disko.inputs.nixpkgs.follows = "nixpkgs"; }; outputs = { self, nixpkgs, ... }@inputs: @@ -50,6 +52,17 @@ home-manager.users.pn = import ./home.nix; } ]; + x220 = nixosSystem "x86_64-linux" "x220" [ + inputs.nixos-hardware.nixosModules.lenovo-thinkpad-x220 + inputs.disko.nixosModules.disko + inputs.home-manager.nixosModules.default + { + home-manager.useGlobalPkgs = true; + home-manager.useUserPackages = true; + home-manager.users.pn = import ./home.nix; + } + + ]; }; }; } -- cgit 1.4.1