From f9d4d2bbd82bd66bebff85420df6653a6966ee9a Mon Sep 17 00:00:00 2001 From: Tim Keller Date: Sun, 29 Sep 2024 22:54:38 -0500 Subject: initial commit --- flake.nix | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 flake.nix (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..053354f --- /dev/null +++ b/flake.nix @@ -0,0 +1,28 @@ +{ + description = "TimmyOS System Config"; + + inputs = { + nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05"; + + home-manager = { + url = "github:nix-community/home-manager/release-24.05"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + }; + + outputs = { nixpkgs, home-manager, ... }: + # HOSTNAME NIXOS + let + system = "x86_64-linux"; + in { + nixosConfigurations.nixos = nixpkgs.lib.nixosSystem { + inherit system; + modules = [ ./configuration.nix ]; + }; + + homeConfigurations.timmy = home-manager.lib.homeManagerConfiguration { + pkgs = nixpkgs.legacyPackages.${system}; + modules = [ ./home.nix ]; + }; + }; +} -- cgit v1.2.3