aboutsummaryrefslogtreecommitdiffstats
path: root/flake.nix
diff options
context:
space:
mode:
authorgrm@eyesin.space <grm@eyesin.space>2025-09-02 23:04:24 +0000
committergrm@eyesin.space <grm@eyesin.space>2025-09-02 23:04:24 +0000
commit47ef05ab310bb466300e93d1459370450414fbc4 (patch)
tree808f155d2871f831af743509de982c4c9789357c /flake.nix
downloadnixos-config-47ef05ab310bb466300e93d1459370450414fbc4.tar.gz
nixos-config-47ef05ab310bb466300e93d1459370450414fbc4.tar.bz2
nixos-config-47ef05ab310bb466300e93d1459370450414fbc4.zip
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix36
1 files changed, 36 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
new file mode 100644
index 0000000..c187e12
--- /dev/null
+++ b/flake.nix
@@ -0,0 +1,36 @@
+{
+ description = "NixOS configuration";
+
+ inputs = {
+ # default to nixpkgs-unstable
+ nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
+
+ home-manager = {
+ url = "github:nix-community/home-manager";
+ inputs.nixpkgs.follows = "nixpkgs";
+ };
+ };
+
+ outputs = inputs @ {
+ nixpkgs,
+ home-manager,
+ ...
+ }: {
+ nixosConfigurations = {
+ eye = nixpkgs.lib.nixosSystem {
+ system = "x86_64-linux";
+ modules = [
+ ./hosts/eye/configuration.nix
+ home-manager.nixosModules.home-manager
+ {
+ home-manager = {
+ useGlobalPkgs = true;
+ useUserPackages = true;
+ users.grm = import ./hosts/eye/home.nix;
+ };
+ }
+ ];
+ };
+ };
+ };
+}