Skip to content

Commit

Permalink
Backup old flake.nix file
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafiyq Widianto committed Sep 17, 2020
1 parent aad8168 commit e9a83ae
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions flake-old.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-20.03";
unstable.url = "github:nixos/nixpkgs/nixos-unstable";
home.url = "github:rycee/home-manager/bqv-flakes";
emacs.url = "github:nix-community/emacs-overlay";
hardware.url = "github:NixOS/nixos-hardware";
};

outputs = { self, nix, ... }@inputs: {
nixosConfigurations.nixos = inputs.nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
{
nixpkgs.overlays = [ inputs.emacs.overlay ];
system.configurationRevision =
if self ? rev
then self.rev
else throw "Refusing to build from a dirty Git tree!";
}

inputs.hardware.nixosModules.lenovo-thinkpad-x220
(import ./hosts/thinkpad-x220)

inputs.home.nixosModules.home-manager
(import ./modules/home.nix)

inputs.nixpkgs.nixosModules.notDetected
];
specialArgs = { inherit inputs; };
};
nixos = inputs.self.nixosConfigurations.nixos.config.system.build.toplevel;
};
}

0 comments on commit e9a83ae

Please sign in to comment.