summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorLeonardo <noreply@leoflo.me>2025-11-03 22:16:55 +0100
committerLeonardo <noreply@leoflo.me>2025-11-03 22:16:55 +0100
commit3925cf2bb704645de9d00d2131ddb08712d4f620 (patch)
treeae5f85f160d8b65a6eac9625752ae15ee5be530e /flake.nix
downloadnixos-3925cf2bb704645de9d00d2131ddb08712d4f620.tar.gz
nixos-3925cf2bb704645de9d00d2131ddb08712d4f620.zip
primo commit
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix37
1 files changed, 37 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
new file mode 100644
index 0000000..5d6a616
--- /dev/null
+++ b/flake.nix
@@ -0,0 +1,37 @@
+{
+ inputs = {
+ nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
+ nixos-hardware.url = "github:nixos/nixos-hardware/master";
+ home-manager.url = "github:nix-community/home-manager/master";
+
+ home-manager.inputs.nixpkgs.follows = "nixpkgs";
+ };
+
+ outputs = {nixpkgs, home-manager, ...} @ inputs:
+ let
+ system = "x86_64-linux";
+ pkgs = nixpkgs.legacyPackages.${system};
+ in {
+ nixosConfigurations."hermes" = nixpkgs.lib.nixosSystem {
+ specialArgs = { inherit inputs system; };
+ modules = [ ./hermes/nixos ];
+ };
+
+ nixosConfigurations."odino" = nixpkgs.lib.nixosSystem {
+ specialArgs = { inherit inputs system; };
+ modules = [ ./odino/nixos ];
+ };
+
+ homeConfigurations."hermes" = home-manager.lib.homeManagerConfiguration {
+ extraSpecialArgs = { inherit inputs; };
+ pkgs = pkgs;
+ modules = [ ./hermes/home-manager ];
+ };
+
+ homeConfigurations."odino" = home-manager.lib.homeManagerConfiguration {
+ extraSpecialArgs = { inherit inputs; };
+ pkgs = pkgs;
+ modules = [ ./odino/home-manager ];
+ };
+ };
+}