From 151790a591fc9a6c9b153b1d514610e26d6bc87e Mon Sep 17 00:00:00 2001 From: Akshay Date: Sat, 21 Jan 2023 20:04:37 +0530 Subject: 6.1.7 working --- flake.nix | 38 ++++++++++++++++++++++++++++++-------- 1 file changed, 30 insertions(+), 8 deletions(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index 8293654..0d9692c 100644 --- a/flake.nix +++ b/flake.nix @@ -2,19 +2,19 @@ description = "nerdypepper's nixos config"; inputs = { - nixpkgs.url = "github:NixOS/nixpkgs/nixos-22.05"; + nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; nixos-hardware.url = "github:nixos/nixos-hardware"; home-manager = { - url = "github:nix-community/home-manager/release-22.05"; + url = "github:nix-community/home-manager/release-22.11"; inputs.nixpkgs.follows = "nixpkgs"; }; - statix = { - url = "git+https://git.peppe.rs/languages/statix"; - inputs.nixpkgs.follows = "nixpkgs"; - }; + # statix = { + # url = "git+https://git.peppe.rs/languages/statix"; + # inputs.nixpkgs.follows = "nixpkgs"; + # }; prompt = { url = "git+https://git.peppe.rs/cli/prompt"; @@ -28,13 +28,13 @@ , nixpkgs , nixos-hardware , home-manager - , statix + # , statix , prompt , ... } @ inputs: { overlays = { - statix = statix.overlay; + # statix = statix.overlay; prompt = prompt.overlay; }; @@ -60,6 +60,28 @@ } ]; }; + + myrtle = nixpkgs.lib.nixosSystem { + system = "x86_64-linux"; + modules = [ + ({ config = { nix.registry.nixpkgs.flake = nixpkgs; }; }) + { + imports = [ ./hosts/myrtle/configuration.nix ]; + _module.args.self = self; + } + home-manager.nixosModules.home-manager + { + home-manager.useGlobalPkgs = true; + home-manager.useUserPackages = true; + home-manager.users.np = { + imports = [ ./home.nix ]; + _module.args.self = self; + _module.args.inputs = inputs; + _module.args.theme = import ./theme; + }; + } + ]; + }; }; }; -- cgit v1.2.3