diff options
| author | anand <anand.panchdhari@gmail.com> | 2025-12-17 15:57:55 +0530 |
|---|---|---|
| committer | anand <anand.panchdhari@gmail.com> | 2025-12-17 15:57:55 +0530 |
| commit | b7ef29a8886a57aadb787807a7c6cf74c1f0ed3a (patch) | |
| tree | 366a68240fbc9da6b1d567bd6c46d1350ad814de /flake.nix | |
Nixos
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..eef56bf --- /dev/null +++ b/flake.nix @@ -0,0 +1,55 @@ +{ + description = "Anand Nix"; + + inputs = { + nixpkgs.url = "nixpkgs/nixos-unstable"; + + home-manager = { + url = "github:nix-community/home-manager"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + + mango = { + url = "github:DreamMaoMao/mango"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + + auto-cpufreq = { + url = "github:AdnanHodzic/auto-cpufreq"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + + }; + outputs = + { + nixpkgs, + home-manager, + auto-cpufreq, + mango, + ... + }: + let + system = "x86_64-linux"; + pkgs = import nixpkgs { + inherit system; + config = { + allowUnfree = true; + }; + }; + in + { + nixosConfigurations.anand-mini = nixpkgs.lib.nixosSystem { + specialArgs = { + inherit home-manager mango; + }; + modules = [ + ./configuration.nix + ./modules/home-manager.nix + # ./modules/mango.nix + ./modules/android.nix + ./modules/lsp.nix + auto-cpufreq.nixosModules.default + ]; + }; + }; +} |
