From 8ec6ada4b1fb7c10b5abda1216daa4502b01ada3 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Wed, 18 Aug 2021 18:46:32 +0200 Subject: Set default derivation, update README --- flake.nix | 39 ++++++++++++++++++++++----------------- 1 file changed, 22 insertions(+), 17 deletions(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index 7388919..1581269 100644 --- a/flake.nix +++ b/flake.nix @@ -23,27 +23,32 @@ config = { allowUnfree = true; }; }; - in { - homeManagerConfigurations = { - common = home-manager.lib.homeManagerConfiguration { - configuration = { pkgs, ... }: { - _module.args = { - pkgs-personal = import personal { }; - pkgs-unstable = import nixpkgs-unstable { - inherit system; - config = { allowUnfree = true; }; - overlays = [ emacs.overlay ]; - }; - }; - imports = [ ./home.nix ]; - nixpkgs = { + home = home-manager.lib.homeManagerConfiguration { + configuration = { pkgs, ... }: { + _module.args = { + pkgs-personal = import personal { }; + pkgs-unstable = import nixpkgs-unstable { + inherit system; config = { allowUnfree = true; }; + overlays = [ emacs.overlay ]; }; }; - system = system; - homeDirectory = "/home/common"; - username = "common"; + imports = [ ./home.nix ]; + nixpkgs = { + config = { allowUnfree = true; }; + }; }; + system = system; + homeDirectory = "/home/common"; + username = "common"; + }; + + in { + defaultPackage.x86_64-linux = home.activationPackage; + + defaultApp.x86_64-linux = { + type = "app"; + program = "${home.activationPackage}/activate"; }; }; } -- cgit v1.2.3