aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configuration.nix3
-rw-r--r--flake.lock44
-rw-r--r--flake.nix24
3 files changed, 70 insertions, 1 deletions
diff --git a/configuration.nix b/configuration.nix
index bf8b46c..3dbe00c 100644
--- a/configuration.nix
+++ b/configuration.nix
@@ -14,7 +14,8 @@ in
(./hardware + "/${me.name}.nix")
(./machines + "/${me.name}.nix")
];
-
+
+ nix.settings.experimental-features = [ "flakes" "nix-command" ];
nixpkgs = {
config.allowUnfree = true;
overlays = [ (super: final: import ./pkgs final )];
diff --git a/flake.lock b/flake.lock
new file mode 100644
index 0000000..f066aaa
--- /dev/null
+++ b/flake.lock
@@ -0,0 +1,44 @@
+{
+ "nodes": {
+ "nixpkgs": {
+ "locked": {
+ "lastModified": 1725930920,
+ "narHash": "sha256-RVhD9hnlTT2nJzPHlAqrWqCkA7T6CYrP41IoVRkciZM=",
+ "owner": "NixOS",
+ "repo": "nixpkgs",
+ "rev": "44a71ff39c182edaf25a7ace5c9454e7cba2c658",
+ "type": "github"
+ },
+ "original": {
+ "owner": "NixOS",
+ "ref": "nixos-24.05",
+ "repo": "nixpkgs",
+ "type": "github"
+ }
+ },
+ "nixpkgs-unstable": {
+ "locked": {
+ "lastModified": 1726062873,
+ "narHash": "sha256-IiA3jfbR7K/B5+9byVi9BZGWTD4VSbWe8VLpp9B/iYk=",
+ "owner": "NixOS",
+ "repo": "nixpkgs",
+ "rev": "4f807e8940284ad7925ebd0a0993d2a1791acb2f",
+ "type": "github"
+ },
+ "original": {
+ "owner": "NixOS",
+ "ref": "nixos-unstable",
+ "repo": "nixpkgs",
+ "type": "github"
+ }
+ },
+ "root": {
+ "inputs": {
+ "nixpkgs": "nixpkgs",
+ "nixpkgs-unstable": "nixpkgs-unstable"
+ }
+ }
+ },
+ "root": "root",
+ "version": 7
+}
diff --git a/flake.nix b/flake.nix
new file mode 100644
index 0000000..4237c2b
--- /dev/null
+++ b/flake.nix
@@ -0,0 +1,24 @@
+{
+ inputs = {
+ nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
+ nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
+ };
+
+ outputs = inputs @ { self, nixpkgs, nixpkgs-unstable }:
+ let
+ system = "x86_64-linux";
+ in {
+ nixosConfigurations = {
+ lapin = nixpkgs.lib.nixosSystem {
+ inherit system;
+
+ specialArgs = {
+ unstable = import nixpkgs-unstable { inherit system; };
+ inherit inputs;
+ };
+
+ modules = [ ./configuration.nix ];
+ };
+ };
+ };
+}