diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..6afa025 --- /dev/null +++ b/flake.lock @@ -0,0 +1,48 @@ +{ + "nodes": { + "home-manager": { + "inputs": { + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1696737557, + "narHash": "sha256-YD/pjDjj/BNmisEvRdM/vspkCU3xyyeGVAUWhvVSi5Y=", + "owner": "nix-community", + "repo": "home-manager", + "rev": "3c1d8758ac3f55ab96dcaf4d271c39da4b6e836d", + "type": "github" + }, + "original": { + "owner": "nix-community", + "repo": "home-manager", + "type": "github" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1696604326, + "narHash": "sha256-YXUNI0kLEcI5g8lqGMb0nh67fY9f2YoJsILafh6zlMo=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "87828a0e03d1418e848d3dd3f3014a632e4a4f64", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "home-manager": "home-manager", + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix index d95885b..18b7539 100644 --- a/flake.nix +++ b/flake.nix @@ -10,7 +10,7 @@ }; }; - outputs = { nixpkgs, home-manager, ... }: + outputs = inputs @ { nixpkgs, home-manager, ... }: let system = "x86_64-linux"; pkgs = nixpkgs.legacyPackages.${system}; @@ -24,6 +24,7 @@ # Optionally use extraSpecialArgs # to pass through arguments to home.nix + extraSpecialArgs = {inherit inputs;}; }; }; } diff --git a/home.nix b/home.nix index 706d339..18f1c10 100644 --- a/home.nix +++ b/home.nix @@ -1,10 +1,19 @@ { config, pkgs, ... }: { + home = { + username = "tacocat"; + homeDirectory = "/home/tacocat"; + stateVersion = "23.11"; + packages = with pkgs; [ + wineWowPackages.unstable + ]; + }; + # Home Manager needs a bit of information about you and the paths it should # manage. - home.username = "tacocat"; - home.homeDirectory = "/home/tacocat"; + # home.username = "tacocat"; + # home.homeDirectory = "/home/tacocat"; # This value determines the Home Manager release that your configuration is # compatible with. This helps avoid breakage when a new Home Manager release @@ -13,11 +22,11 @@ # 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 = "23.05"; # Please read the comment before changing. + # home.stateVersion = "23.05"; # Please read the comment before changing. # The home.packages option allows you to install Nix packages into your # environment. - home.packages = [ + # home.packages = [ # # Adds the 'hello' command to your environment. It prints a friendly # # "Hello, world!" when run. # pkgs.hello @@ -34,11 +43,11 @@ # (pkgs.writeShellScriptBin "my-hello" '' # echo "Hello, ${config.home.username}!" # '') - ]; + # ]; # Home Manager is pretty good at managing dotfiles. The primary way to manage # plain files is through 'home.file'. - home.file = { + # home.file = { # # Building this configuration will create a copy of 'dotfiles/screenrc' in # # the Nix store. Activating the configuration will then make '~/.screenrc' a # # symlink to the Nix store copy. @@ -49,7 +58,7 @@ # org.gradle.console=verbose # org.gradle.daemon.idletimeout=3600000 # ''; - }; + # }; # You can also manage environment variables but you will have to manually # source @@ -61,9 +70,9 @@ # /etc/profiles/per-user/tacocat/etc/profile.d/hm-session-vars.sh # # if you don't want to manage your shell through Home Manager. - home.sessionVariables = { - # EDITOR = "emacs"; - }; + # home.sessionVariables = { + # EDITOR = "lvim"; + # }; # Let Home Manager install and manage itself. programs.home-manager.enable = true;