Export desk-os as nixosModule

This commit is contained in:
Michael Smith 2024-09-02 23:04:37 +02:00
parent 7a8eec026b
commit 889db08cc5
2 changed files with 10 additions and 0 deletions

View File

@ -41,6 +41,10 @@
}; };
}; };
nixosModules = {
desk-os = import ./modules/desk-os;
};
packages = forAllSystems (system: let packages = forAllSystems (system: let
pkgs = nixpkgsFor.${system}; pkgs = nixpkgsFor.${system};
in { in {

View File

@ -55,16 +55,22 @@ flake = f"""
inputs = {{ inputs = {{
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05"; nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
desk-os = {{
url = "github:nixup-io/desk-os";
inputs.nixpkgs.follows = "nixpkgs";
}};
}}; }};
outputs = {{ outputs = {{
self, self,
nixpkgs, nixpkgs,
desk-os,
}} @ inputs: {{ }} @ inputs: {{
nixosConfigurations.{random_hostname} = nixpkgs.lib.nixosSystem {{ nixosConfigurations.{random_hostname} = nixpkgs.lib.nixosSystem {{
system = "x86_64-linux"; system = "x86_64-linux";
specialArgs = {{inherit inputs;}}; specialArgs = {{inherit inputs;}};
modules = [ modules = [
desk-os.nixosModules.desk-os
./configuration.nix ./configuration.nix
]; ];
}}; }};