From 1dd61b98e1b429d107d4292d13955f26f0104642 Mon Sep 17 00:00:00 2001 From: Aditya Date: Sat, 1 Jul 2023 12:21:12 +0530 Subject: [PATCH] use flakes --- flake-home-manager.nix | 4 ++-- flake-nixos.nix | 10 ---------- flake.lock | 27 +++++++++++++++++++++++++++ flake.nix | 4 ++-- 4 files changed, 31 insertions(+), 14 deletions(-) delete mode 100644 flake-nixos.nix create mode 100644 flake.lock diff --git a/flake-home-manager.nix b/flake-home-manager.nix index 1b78da5..a30d3c9 100644 --- a/flake-home-manager.nix +++ b/flake-home-manager.nix @@ -3,9 +3,9 @@ inputs = { # Specify the source of Home Manager and Nixpkgs. - nixpkgs.url = "github:nixos/nixpkgs/nixos-23.05"; + nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; home-manager = { - url = "github:nix-community/home-manager/release-23.05"; + url = "github:nix-community/home-manager/master"; inputs.nixpkgs.follows = "nixpkgs"; }; }; diff --git a/flake-nixos.nix b/flake-nixos.nix deleted file mode 100644 index 7734c0d..0000000 --- a/flake-nixos.nix +++ /dev/null @@ -1,10 +0,0 @@ -{ - inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.05"; - - outputs = { self, nixpkgs }: { - nixosConfigurations.bridge = nixpkgs.lib.nixosSystem { - system = "x86_64-linux"; - modules = [ ./configuration.nix ]; - }; - }; -} diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..ca24c33 --- /dev/null +++ b/flake.lock @@ -0,0 +1,27 @@ +{ + "nodes": { + "nixpkgs": { + "locked": { + "lastModified": 1688049487, + "narHash": "sha256-100g4iaKC9MalDjUW9iN6Jl/OocTDtXdeAj7pEGIRh4=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "4bc72cae107788bf3f24f30db2e2f685c9298dc9", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix index 7734c0d..07c56c6 100644 --- a/flake.nix +++ b/flake.nix @@ -1,8 +1,8 @@ { - inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.05"; + inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; outputs = { self, nixpkgs }: { - nixosConfigurations.bridge = nixpkgs.lib.nixosSystem { + nixosConfigurations.nixos = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; modules = [ ./configuration.nix ]; };