Something went wrong. Try again.
A few dotfiles that I'd want on all my machines
Something went wrong. Try again.
shared-dotfiles flake.nix
822 B · 34 lines
Nix
at main
1234567891011121314151617181920212223242526272829303132333435{ description = "A flake for the dotfiles shared between my PC and my server (usually some common tools that I'd want on both)";
inputs = { nixpkgs.url = "nixpkgs/nixos-unstable"; home-manager = { url = "github:nix-community/home-manager"; inputs.nixpkgs.follows = "nixpkgs"; }; };
outputs = { nixpkgs, home-manager, ... }: let lib = nixpkgs.lib; forAllSystems = function: lib.genAttrs [ "aarch64-darwin" "aarch64-linux" "x86_64-darwin" "x86_64-linux" ] (system: function nixpkgs.legacyPackages.${system}); in { nixosModules.default = _: { imports = [./kernel.nix]; }; homeManagerModules.default = _: { imports = [./helix.nix]; }; formatter = forAllSystems (pkgs: pkgs.alejandra); };}