dotfiles

andersuno dotfiles
git clone git://git.andersuno.nu/dotfiles.git
Log | Files | Refs | README

flake.nix (1385B)


      1 {
      2   description = "Home Manager configuration of anders";
      3 
      4   inputs = {
      5     # Specify the source of Home Manager and Nixpkgs.
      6     nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
      7     home-manager = {
      8       url = "github:nix-community/home-manager/release-24.05";
      9       inputs.nixpkgs.follows = "nixpkgs";
     10     };
     11   };
     12 
     13   outputs =
     14     { nixpkgs, home-manager, ... }:
     15     let
     16       system = "x86_64-linux";
     17       pkgs = nixpkgs.legacyPackages.${system};
     18       user = "anders";
     19       homedir = "/home/${user}";
     20       dotdir = ../..;
     21 
     22     in
     23     {
     24       homeConfigurations."anders@t480s" = home-manager.lib.homeManagerConfiguration {
     25         inherit pkgs;
     26 
     27         # Specify your home configuration modules here, for example,
     28         # the path to your home.nix.
     29         modules = [
     30           ./home.nix
     31           ./t480s.nix
     32         ];
     33 
     34         # Optionally use extraSpecialArgs
     35         # to pass through arguments to home.nix
     36         extraSpecialArgs = {
     37           inherit user;
     38           inherit homedir;
     39           inherit dotdir;
     40         };
     41       };
     42 
     43       homeConfigurations."anders@xps15.andersuno.nu" = home-manager.lib.homeManagerConfiguration {
     44         inherit pkgs;
     45 
     46         modules = [
     47           ./home.nix
     48           ./xps15.nix
     49         ];
     50 
     51         extraSpecialArgs = {
     52           inherit user;
     53           inherit homedir;
     54           inherit dotdir;
     55         };
     56       };
     57 
     58     };
     59 }