diff options
author | Jacob Janzen <jacob.a.s.janzen@gmail.com> | 2024-09-28 00:01:09 -0500 |
---|---|---|
committer | Jacob Janzen <jacob.a.s.janzen@gmail.com> | 2024-09-28 00:01:09 -0500 |
commit | b7e84fa6048007cda7e6c8226e28bc2db90f792a (patch) | |
tree | 170bcaff17d7aec0c6aac5807c7a5857dbd71def /nixos/.flake/flake.nix.org | |
parent | 7b2986845fde19db57703dad1105359913486abd (diff) |
add file extensions to files
Diffstat (limited to 'nixos/.flake/flake.nix.org')
-rw-r--r-- | nixos/.flake/flake.nix.org | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/nixos/.flake/flake.nix.org b/nixos/.flake/flake.nix.org new file mode 100644 index 0000000..1e3c71b --- /dev/null +++ b/nixos/.flake/flake.nix.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 |