From f7229cd87555011865a1bfbed9e36230d63d891e Mon Sep 17 00:00:00 2001 From: Jacob Janzen Date: Fri, 27 Sep 2024 18:27:52 -0500 Subject: move nixos to org --- nixos/.flake/flake.org | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 nixos/.flake/flake.org (limited to 'nixos/.flake/flake.org') diff --git a/nixos/.flake/flake.org b/nixos/.flake/flake.org new file mode 100644 index 0000000..1e3c71b --- /dev/null +++ b/nixos/.flake/flake.org @@ -0,0 +1,34 @@ +#+title: Flake Root + +I use the unstable branch of =nixpkgs=. This file defines the outputs for my configuration (system and home). +#+begin_src nix :tangle ~/.flake/flake.nix :mkdirp yes + { + description = "My NixOS Configuration"; + + inputs = { + nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; + }; + + outputs = { + self, + nixpkgs, + home-manager, + ... + }@inputs: { + nixosConfigurations.nixos = nixpkgs.lib.nixosSystem { + system = "x86_64-linux"; + specialArgs = { inherit inputs; }; + modules = [ + ./system/core.nix + home-manager.nixosModules.home-manager + { + home-manager.backupFileExtension = "bak"; + home-manager.useGlobalPkgs = true; + home-manager.useUserPackages = true; + home-manager.users.jane = import ./home/core.nix; + } + ]; + }; + }; + } +#+end_src -- cgit v1.2.3