From 8e97ca442075f7683ad5914aef8cb3e9c7acf42d Mon Sep 17 00:00:00 2001 From: blitter Date: Sat, 30 Mar 2024 16:08:45 +0100 Subject: [PATCH] fix example --- example/flake.lock | 22 +++++++++++----------- example/flake.nix | 34 +++++++++++++++++++++++----------- 2 files changed, 34 insertions(+), 22 deletions(-) diff --git a/example/flake.lock b/example/flake.lock index be60bf20..9054227e 100644 --- a/example/flake.lock +++ b/example/flake.lock @@ -7,32 +7,32 @@ ] }, "locked": { - "lastModified": 1655880690, - "narHash": "sha256-pO+EqUefNFolIWV1DHXPfI8NuUtD4fd7JFKoaCjVXOs=", + "lastModified": 1710888565, + "narHash": "sha256-s9Hi4RHhc6yut4EcYD50sZWRDKsugBJHSbON8KFwoTw=", "owner": "nix-community", "repo": "home-manager", - "rev": "a839432a5c3d2a762d68168093349097e6affb07", + "rev": "f33900124c23c4eca5831b9b5eb32ea5894375ce", "type": "github" }, "original": { "owner": "nix-community", - "ref": "release-22.05", + "ref": "release-23.11", "repo": "home-manager", "type": "github" } }, "nixpkgs": { "locked": { - "lastModified": 1656007306, - "narHash": "sha256-MsC44YZ6wuBwn5Bu8T+RVoQWlp2l5BR6hhmNoAAHIEw=", + "lastModified": 1711668574, + "narHash": "sha256-u1dfs0ASQIEr1icTVrsKwg2xToIpn7ZXxW3RHfHxshg=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "ccf8bdf72624521358be6bb7d9b524c4cbcf7aff", + "rev": "219951b495fc2eac67b1456824cc1ec1fd2ee659", "type": "github" }, "original": { "owner": "NixOS", - "ref": "nixos-22.05", + "ref": "nixos-23.11", "repo": "nixpkgs", "type": "github" } @@ -47,11 +47,11 @@ ] }, "locked": { - "lastModified": 1656109003, - "narHash": "sha256-UUhp5bBKEL370r5EphALfOrAiBO3w48U1B+97/HPlWY=", + "lastModified": 1711799416, + "narHash": "sha256-BM3aduxJjvSL0jTYG1ixWDhBvIWuouycvprKQYP0FnM=", "owner": "pjones", "repo": "plasma-manager", - "rev": "1492919230b9484f5b91abdf4759bdbbdd7b6aaa", + "rev": "25b222a95a764bb76b7082746e8a1115c46ae2d8", "type": "github" }, "original": { diff --git a/example/flake.nix b/example/flake.nix index 6be26169..e997ddfe 100644 --- a/example/flake.nix +++ b/example/flake.nix @@ -4,12 +4,16 @@ inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11"; - home-manager.url = "github:nix-community/home-manager/release-23.11"; - home-manager.inputs.nixpkgs.follows = "nixpkgs"; + home-manager = { + url = "github:nix-community/home-manager/release-23.11"; + inputs.nixpkgs.follows = "nixpkgs"; + }; - plasma-manager.url = "github:pjones/plasma-manager"; - plasma-manager.inputs.nixpkgs.follows = "nixpkgs"; - plasma-manager.inputs.home-manager.follows = "home-manager"; + plasma-manager = { + url = "github:pjones/plasma-manager"; + inputs.nixpkgs.follows = "nixpkgs"; + inputs.home-manager.follows = "home-manager"; + }; }; outputs = inputs: @@ -21,16 +25,24 @@ # Standalone Home Manager Setup: homeConfigurations.${username} = inputs.home-manager.lib.homeManagerConfiguration { + pkgs = import inputs.nixpkgs { inherit system; }; + # Ensure Plasma Manager is available: - extraModules = [ + modules = [ inputs.plasma-manager.homeManagerModules.plasma-manager - ]; - # Specify the path to your home configuration here: - configuration = import ./home.nix; + # Specify the path to your home configuration here: + ./home.nix + + { + home = { + inherit username; + homeDirectory = "/home/${username}"; + stateVersion = "23.11"; + }; + } + ]; - inherit system username; - homeDirectory = "/home/${username}"; }; # A shell where Home Manager can be used: