diff --git a/baseconfiguration.nix b/baseconfiguration.nix index d072df3..4549a66 100644 --- a/baseconfiguration.nix +++ b/baseconfiguration.nix @@ -76,6 +76,7 @@ clang rnix-lsp procs + comma ]; sessionVariables = rec { XDG_CACHE_HOME = "\${HOME}/.cache"; diff --git a/default.nix b/default.nix index 4b23405..95e762f 100644 --- a/default.nix +++ b/default.nix @@ -5,7 +5,7 @@ let name = if builtins.isString args then args else args.name; system = if args ? system then args.system else "x86_64-linux"; extraModules = if args ? extraModules then args.extraModules else [ ]; - extraOverlays = if args ? extraOverlays then args.extraOverlays else [ overlay-unstable ]; + extraOverlays = if args ? extraOverlays then args.extraOverlays else [ overlay-unstable overlay-comma ]; pkgs = flakes.nixpkgs; configuration = if args ? configuration then args.configuration else import ./baseconfiguration.nix {inherit extraOverlays system pkgs name flakes flakeOutputs;} ; overlay-unstable = final: prev: { @@ -14,6 +14,12 @@ let config.allowUnfree=true; }; }; + + overlay-comma = final: prev: { + comma = import flakes.comma { + system = "${system}"; + }; + }; in { inherit name; diff --git a/flake.lock b/flake.lock index 72ef303..cbeb12f 100644 --- a/flake.lock +++ b/flake.lock @@ -16,6 +16,29 @@ "type": "gitlab" } }, + "comma": { + "inputs": { + "flake-compat": "flake-compat", + "naersk": "naersk", + "nixpkgs": [ + "nixpkgs" + ], + "utils": "utils" + }, + "locked": { + "lastModified": 1650481854, + "narHash": "sha256-CZQLigKovJbMoTbPuWT3SBSMymjD58m72O/oy+HilQg=", + "owner": "nix-community", + "repo": "comma", + "rev": "034a9ca440370fc1eccbed43ff345fb6ea1f0d27", + "type": "github" + }, + "original": { + "owner": "nix-community", + "repo": "comma", + "type": "github" + } + }, "emacs-overlay": { "locked": { "lastModified": 1651465270, @@ -31,6 +54,22 @@ "type": "github" } }, + "flake-compat": { + "flake": false, + "locked": { + "lastModified": 1648199409, + "narHash": "sha256-JwPKdC2PoVBkG6E+eWw3j6BMR6sL3COpYWfif7RVb8Y=", + "owner": "edolstra", + "repo": "flake-compat", + "rev": "64a525ee38886ab9028e6f61790de0832aa3ef03", + "type": "github" + }, + "original": { + "owner": "edolstra", + "repo": "flake-compat", + "type": "github" + } + }, "home-manager": { "inputs": { "nixpkgs": [ @@ -52,6 +91,25 @@ "type": "github" } }, + "naersk": { + "inputs": { + "nixpkgs": "nixpkgs" + }, + "locked": { + "lastModified": 1650101877, + "narHash": "sha256-IYxYc5Z1ZHQDTQbTWsOZ9HlZepsVjgV5oZwmbKzxSJs=", + "owner": "nix-community", + "repo": "naersk", + "rev": "8cc379478819e6a22ce7595a761fe1e17c8d7458", + "type": "github" + }, + "original": { + "owner": "nix-community", + "ref": "master", + "repo": "naersk", + "type": "github" + } + }, "nixos-hardware": { "locked": { "lastModified": 1650522846, @@ -72,16 +130,13 @@ "locked": { "lastModified": 1651310835, "narHash": "sha256-MLk/zsLlbPhwFucxL64Fr+oIrvQC2/76Ap2F7ekbPNI=", - "owner": "NixOS", - "repo": "nixpkgs", + "path": "/nix/store/fj0r6l3gglr0k0b4dxn3hm8drcwclm36-source", "rev": "fd3e33d696b81e76b30160dfad2efb7ac1f19879", - "type": "github" + "type": "path" }, "original": { - "owner": "NixOS", - "ref": "nixos-21.11", - "repo": "nixpkgs", - "type": "github" + "id": "nixpkgs", + "type": "indirect" } }, "nixpkgs-21_05": { @@ -131,6 +186,22 @@ } }, "nixpkgs_2": { + "locked": { + "lastModified": 1651310835, + "narHash": "sha256-MLk/zsLlbPhwFucxL64Fr+oIrvQC2/76Ap2F7ekbPNI=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "fd3e33d696b81e76b30160dfad2efb7ac1f19879", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-21.11", + "repo": "nixpkgs", + "type": "github" + } + }, + "nixpkgs_3": { "locked": { "lastModified": 1626852498, "narHash": "sha256-lOXUJvi0FJUXHTVSiC5qsMRtEUgqM4mGZpMESLuGhmo=", @@ -147,10 +218,11 @@ }, "root": { "inputs": { + "comma": "comma", "emacs-overlay": "emacs-overlay", "home-manager": "home-manager", "nixos-hardware": "nixos-hardware", - "nixpkgs": "nixpkgs", + "nixpkgs": "nixpkgs_2", "nixpkgs-unstable": "nixpkgs-unstable", "simple-nixos-mailserver": "simple-nixos-mailserver", "sops-nix": "sops-nix" @@ -159,10 +231,10 @@ "simple-nixos-mailserver": { "inputs": { "blobs": "blobs", - "nixpkgs": "nixpkgs_2", + "nixpkgs": "nixpkgs_3", "nixpkgs-21_05": "nixpkgs-21_05", "nixpkgs-21_11": "nixpkgs-21_11", - "utils": "utils" + "utils": "utils_2" }, "locked": { "lastModified": 1638911354, @@ -201,6 +273,21 @@ } }, "utils": { + "locked": { + "lastModified": 1649676176, + "narHash": "sha256-OWKJratjt2RW151VUlJPRALb7OU2S5s+f0vLj4o1bHM=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "a4b154ebbdc88c8498a5c7b01589addc9e9cb678", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, + "utils_2": { "locked": { "lastModified": 1605370193, "narHash": "sha256-YyMTf3URDL/otKdKgtoMChu4vfVL3vCMkRqpGifhUn0=", diff --git a/flake.nix b/flake.nix index 72c63e1..064fcb1 100644 --- a/flake.nix +++ b/flake.nix @@ -11,6 +11,11 @@ inputs.nixpkgs.follows = "nixpkgs"; }; + comma = { + url = "github:nix-community/comma"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + home-manager = { url = "github:nix-community/home-manager/release-21.11"; inputs.nixpkgs.follows = "nixpkgs";