From 9396554c2141f3c4e14bcbd71d0f31b9ff7816d6 Mon Sep 17 00:00:00 2001 From: Ryan Schanzenbacher Date: Fri, 16 Feb 2024 20:10:31 -0500 Subject: flakes work! --- home-config/nix-home-manager/flake.lock | 69 +++++++++++++++++++++++++++++++++ home-config/nix-home-manager/flake.nix | 39 +++++++++++++++++++ home-config/nix-home-manager/home.nix | 11 ++---- 3 files changed, 111 insertions(+), 8 deletions(-) create mode 100644 home-config/nix-home-manager/flake.lock create mode 100644 home-config/nix-home-manager/flake.nix (limited to 'home-config/nix-home-manager') diff --git a/home-config/nix-home-manager/flake.lock b/home-config/nix-home-manager/flake.lock new file mode 100644 index 0000000..0356e26 --- /dev/null +++ b/home-config/nix-home-manager/flake.lock @@ -0,0 +1,69 @@ +{ + "nodes": { + "home-manager": { + "inputs": { + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1708031129, + "narHash": "sha256-EH20hJfNnc1/ODdDVat9B7aKm0B95L3YtkIRwKLvQG8=", + "owner": "nix-community", + "repo": "home-manager", + "rev": "3d6791b3897b526c82920a2ab5f61d71985b3cf8", + "type": "github" + }, + "original": { + "owner": "nix-community", + "repo": "home-manager", + "type": "github" + } + }, + "hyprpicker-git": { + "inputs": { + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1703987863, + "narHash": "sha256-MHhAk74uk0qHVwSkLCcXLXMe4478M2oZEFPXwjSoo2E=", + "owner": "hyprwm", + "repo": "hyprpicker", + "rev": "2ef703474fb96e97e03e66e8820f213359f29382", + "type": "github" + }, + "original": { + "owner": "hyprwm", + "repo": "hyprpicker", + "type": "github" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1707956935, + "narHash": "sha256-ZL2TrjVsiFNKOYwYQozpbvQSwvtV/3Me7Zwhmdsfyu4=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "a4d4fe8c5002202493e87ec8dbc91335ff55552c", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "home-manager": "home-manager", + "hyprpicker-git": "hyprpicker-git", + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/home-config/nix-home-manager/flake.nix b/home-config/nix-home-manager/flake.nix new file mode 100644 index 0000000..8e1b937 --- /dev/null +++ b/home-config/nix-home-manager/flake.nix @@ -0,0 +1,39 @@ +{ + description = "Home Manager configuration of ryan"; + + inputs = { + # Specify the source of Home Manager and Nixpkgs. + nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; + home-manager = { + url = "github:nix-community/home-manager"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + hyprpicker-git = { + url = "github:hyprwm/hyprpicker"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + }; + + outputs = { nixpkgs, home-manager, hyprpicker-git, ... }: + let + system = "x86_64-linux"; + pkgs = nixpkgs.legacyPackages.${system}; + overlays = [ + hyprpicker-git.overlays.default + ]; + in { + homeConfigurations."ryan" = home-manager.lib.homeManagerConfiguration { + inherit pkgs; + + # Specify your home configuration modules here, for example, + # the path to your home.nix. + modules = [ + ./home.nix + {nixpkgs.overlays = overlays;} + ]; + + # Optionally use extraSpecialArgs + # to pass through arguments to home.nix + }; + }; +} diff --git a/home-config/nix-home-manager/home.nix b/home-config/nix-home-manager/home.nix index aa90213..9dcdc28 100644 --- a/home-config/nix-home-manager/home.nix +++ b/home-config/nix-home-manager/home.nix @@ -13,18 +13,12 @@ # You should not change this value, even if you update Home Manager. If you do # want to update the value, then make sure to first check the Home Manager # release notes. - home.stateVersion = "22.11"; # Please read the comment before changing. - - # Enable nix flakes - nix = { - package = pkgs.nix; - settings.experimental-features = [ "nix-command" "flakes" ]; - }; + home.stateVersion = "23.11"; # Please read the comment before changing. # This value will set some environment variables to allow home-manager to # function better outside of NixOS nixpkgs.config.allowUnfree = true; - targets.genericLinux.enable = true; + #targets.genericLinux.enable = true; fonts.fontconfig.enable = true; # The home.packages option allows you to install Nix packages into your @@ -47,6 +41,7 @@ waypaper gdu spotify-player + hyprpicker # # It is sometimes useful to fine-tune packages, for example, by applying # # overrides. You can do that directly here, just don't forget the -- cgit v1.2.3