aboutsummaryrefslogtreecommitdiffhomepage
path: root/flake.nix
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2023-09-01 09:27:05 +0900
committernsfisis <nsfisis@gmail.com>2023-09-02 01:18:23 +0900
commitf8d23391c64acfd9db15816aa2522ce0ef4ad1a5 (patch)
treed455cea2f448f3b0da0673b6e5cc80f0d00cb67a /flake.nix
parentf1e3ca6f971c2c5177174896e1fa3e6f695ca2a1 (diff)
downloaddotfiles-f8d23391c64acfd9db15816aa2522ce0ef4ad1a5.tar.gz
dotfiles-f8d23391c64acfd9db15816aa2522ce0ef4ad1a5.tar.zst
dotfiles-f8d23391c64acfd9db15816aa2522ce0ef4ad1a5.zip
home-manager: introduce nix flake
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix35
1 files changed, 35 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
new file mode 100644
index 0000000..79121d2
--- /dev/null
+++ b/flake.nix
@@ -0,0 +1,35 @@
+########################################################
+# __ __ __ _ _ _ #
+# | \/ |_ _ / _| | __ _| | _____ _ __ (_)_ __ #
+# | |\/| | | | | | |_| |/ _` | |/ / _ \ | '_ \| \ \/ / #
+# | | | | |_| | | _| | (_| | < __/_| | | | |> < #
+# |_| |_|\__, | |_| |_|\__,_|_|\_\___(_)_| |_|_/_/\_\ #
+# |___/ #
+########################################################
+{
+ description = "My flake configuration";
+
+ inputs = {
+ nixpkgs.url = "github:NixOS/nixpkgs/release-23.05";
+
+ home-manager = {
+ url = "github:nix-community/home-manager/release-23.05";
+ inputs.nixpkgs.follows = "nixpkgs";
+ };
+ };
+
+ outputs = { nixpkgs, home-manager, ... } @ inputs: {
+ homeConfigurations.ken = home-manager.lib.homeManagerConfiguration {
+ pkgs = import nixpkgs {
+ system = "x86_64-linux";
+ config.allowUnfree = true;
+ };
+ extraSpecialArgs = {
+ inherit inputs;
+ };
+ modules = [
+ ./home-manager/home.nix
+ ];
+ };
+ };
+}