From fc53a225062b1f44312c63734329f94fa4473c83 Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Wed, 5 Jul 2023 21:32:26 +0300 Subject: [PATCH] maybe flakes work now --- configuration.nix | 4 ++-- flake.nix | 22 ++++++++++++++++++++++ 2 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 flake.nix diff --git a/configuration.nix b/configuration.nix index 01c1ba90..d11eb3d8 100644 --- a/configuration.nix +++ b/configuration.nix @@ -1,12 +1,12 @@ # Edit this configuration file to define what should be installed on # your system. Help is available in the configuration.nix(5) man page and in the NixOS manual (accessible by running `nixos-help`). -{ config, pkgs, lib, ... }: +{ config, pkgs, lib, home-manager, ... }: { imports = [ # Include the results of the hardware scan. ./hardware-configuration.nix - + home-manager.nixosModules.default ./modules ]; diff --git a/flake.nix b/flake.nix new file mode 100644 index 00000000..acd38698 --- /dev/null +++ b/flake.nix @@ -0,0 +1,22 @@ +# load stuff + +{ + description = "horrible dotfiles for amazing distro"; + + inputs = { + nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.05"; + home-manager.url = "github:nix-community/home-manager/release-23.05"; + }; + + outputs = { self, nixpkgs }: { + nixosConfigurations = { + # TODO(sako)::rename this + nixos = nixpkgs.lib.nixosSystem { + system = "x86_64-linux"; + modules = [ ./configuration.nix ]; + }; + + }; + + }; +}