test
This commit is contained in:
parent
6f72587227
commit
428fc03330
3 changed files with 6 additions and 5 deletions
|
@ -15,8 +15,7 @@
|
||||||
let
|
let
|
||||||
inherit (self) outputs;
|
inherit (self) outputs;
|
||||||
stateVersion = "unstable";
|
stateVersion = "unstable";
|
||||||
hmStateVersion = "23.05";
|
libx = import ./lib { inherit inputs outputs stateVersion; };
|
||||||
libx = import ./lib { inherit inputs outputs hmStateVersion stateVersion; };
|
|
||||||
in {
|
in {
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
nixos-laptop = libx.mkHost { hostname = "nixos-laptop"; username = "albert"; desktop = "gnome"; };
|
nixos-laptop = libx.mkHost { hostname = "nixos-laptop"; username = "albert"; desktop = "gnome"; };
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
{ lib, config, pkgs, hostname, username, desktop, stateVersion, ... }: {
|
{ lib, config, pkgs, hostname, username, desktop, hmStateVersion, ... }: {
|
||||||
|
|
||||||
home = {
|
home = {
|
||||||
inherit stateVersion;
|
stateVersion = hmStateVersion;
|
||||||
inherit username;
|
inherit username;
|
||||||
|
inherit desktop;
|
||||||
|
inherit hostname;
|
||||||
};
|
};
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ inputs, outputs, hmStateVersion, stateVersion, ... }: {
|
{ inputs, outputs, stateVersion, hmStateVersion, ... }: {
|
||||||
# Helper function for generating home-manager configs
|
# Helper function for generating home-manager configs
|
||||||
mkHome = { hostname, username, desktop ? null, platform ? "x86_64-linux" }: inputs.home-manager.lib.homeManagerConfiguration {
|
mkHome = { hostname, username, desktop ? null, platform ? "x86_64-linux" }: inputs.home-manager.lib.homeManagerConfiguration {
|
||||||
pkgs = inputs.nixpkgs.legacyPackages.${platform};
|
pkgs = inputs.nixpkgs.legacyPackages.${platform};
|
||||||
|
|
Loading…
Reference in a new issue