Switch to home-manager.

This commit is contained in:
Tom Alexander 2025-02-10 01:17:58 -05:00
parent 53caf8bc81
commit 0bec3dbe63
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
2 changed files with 69 additions and 17 deletions

View File

@ -1,6 +1,55 @@
{ {
"nodes": { "nodes": {
"flake-utils": {
"locked": {
"lastModified": 1659877975,
"narHash": "sha256-zllb8aq3YO3h8B/U0/J1WBgAL8EX5yWf5pMj3G0NAmc=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "c0e246b9b83f637f4681389ecabcb2681b4f3af0",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"nixgl": {
"inputs": {
"flake-utils": "flake-utils",
"nixpkgs": "nixpkgs"
},
"locked": {
"lastModified": 1713543440,
"narHash": "sha256-lnzZQYG0+EXl/6NkGpyIz+FEOc/DSEG57AP1VsdeNrM=",
"owner": "nix-community",
"repo": "nixGL",
"rev": "310f8e49a149e4c9ea52f1adf70cdc768ec53f8a",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "nixGL",
"type": "github"
}
},
"nixpkgs": { "nixpkgs": {
"locked": {
"lastModified": 1660551188,
"narHash": "sha256-a1LARMMYQ8DPx1BgoI/UN4bXe12hhZkCNqdxNi6uS0g=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "441dc5d512153039f19ef198e662e4f3dbb9fd65",
"type": "github"
},
"original": {
"owner": "nixos",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1739019272, "lastModified": 1739019272,
"narHash": "sha256-7Fu7oazPoYCbDzb9k8D/DdbKrC3aU1zlnc39Y8jy/s8=", "narHash": "sha256-7Fu7oazPoYCbDzb9k8D/DdbKrC3aU1zlnc39Y8jy/s8=",
@ -18,7 +67,8 @@
}, },
"root": { "root": {
"inputs": { "inputs": {
"nixpkgs": "nixpkgs" "nixgl": "nixgl",
"nixpkgs": "nixpkgs_2"
} }
} }
}, },

View File

@ -3,10 +3,17 @@
inputs = { inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable"; nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
# nixgl.url = "github:nix-community/nixGL";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
}; };
outputs = outputs =
{ {
nixpkgs, nixpkgs,
# nixgl,
home-manager,
... ...
}: }:
let let
@ -14,23 +21,18 @@
pkgs = nixpkgs.legacyPackages.${system}; pkgs = nixpkgs.legacyPackages.${system};
in in
{ {
packages.${system}.default = pkgs.buildEnv { defaultPackage.${system} = home-manager.defaultPackage.${system};
name = "default"; homeConfigurations."deck" = home-manager.lib.homeManagerConfiguration {
paths = [ inherit pkgs;
pkgs.emacs
pkgs.mg
pkgs.steam-rom-manager
];
};
formatter.${system} = pkgs.nixfmt-rfc-style; modules = [ ./home.nix ];
# formatter.${system} = pkgs.alejandra; };
}; };
# nixConfig = { nixConfig = {
# experimental-features = [ experimental-features = [
# "nix-command" "nix-command"
# "flakes" "flakes"
# ]; ];
# }; };
} }