diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b2be92b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +result diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..06b5001 --- /dev/null +++ b/flake.lock @@ -0,0 +1,64 @@ +{ + "nodes": { + "flake-utils": { + "locked": { + "lastModified": 1638122382, + "narHash": "sha256-sQzZzAbvKEqN9s0bzWuYmRaA03v40gaJ4+iL1LXjaeI=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "74f7e4319258e287b0f9cb95426c9853b282730b", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, + "home-manager": { + "inputs": { + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1640417317, + "narHash": "sha256-jT2uMARXs0Xm65ccroFsKyr4LTHSecw+9HAnmBdJO8U=", + "owner": "nix-community", + "repo": "home-manager", + "rev": "48f2b381dd397ec88040d3354ac9c036739ba139", + "type": "github" + }, + "original": { + "owner": "nix-community", + "repo": "home-manager", + "type": "github" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1640418986, + "narHash": "sha256-a8GGtxn2iL3WAkY5H+4E0s3Q7XJt6bTOvos9qqxT5OQ=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "5c37ad87222cfc1ec36d6cd1364514a9efc2f7f2", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixpkgs-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "flake-utils": "flake-utils", + "home-manager": "home-manager", + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..cb5aa9e --- /dev/null +++ b/flake.nix @@ -0,0 +1,51 @@ +{ + description = "walkah's dotfiles"; + + inputs = { + nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable"; + home-manager.url = "github:nix-community/home-manager"; + home-manager.inputs.nixpkgs.follows = "nixpkgs"; + }; + + outputs = { self, nixpkgs, home-manager, flake-utils }: { + homeConfigurations = { + aarch64-darwin = home-manager.lib.homeManagerConfiguration { + system = "aarch64-darwin"; + homeDirectory = "/Users/walkah"; + username = "walkah"; + stateVersion = "21.03"; + configuration = { config, pkgs, ... }: { + imports = [ + ./home.nix + ]; + }; + }; + x86_64-darwin = home-manager.lib.homeManagerConfiguration { + system = "x86_64-darwin"; + homeDirectory = "/Users/walkah"; + username = "walkah"; + stateVersion = "21.03"; + configuration = { config, pkgs, ... }: { + imports = [ + ./home.nix + ]; + }; + }; + x86_64-linux = home-manager.lib.homeManagerConfiguration { + system = "x86_64-linux"; + homeDirectory = "/home/walkah"; + username = "walkah"; + stateVersion = "21.03"; + configuration = { config, pkgs, ... }: { + imports = [ + ./home.nix + ]; + }; + }; + + }; + defaultPackage.aarch64-darwin = self.homeConfigurations.aarch64-darwin.activationPackage; + defaultPackage.x86_64-darwin = self.homeConfigurations.x86_64-darwin.activationPackage; + defaultPackage.x86_64-linux = self.homeConfigurations.x86_64-linux.activationPackage; + }; +}