dotfiles-guix/home/nix/flake.nix

47 lines
1.1 KiB
Nix
Raw Normal View History

2024-11-03 18:28:10 +00:00
{
description = "Freya Nix Flake";
inputs = {
# nixpkgs
2025-01-03 02:48:08 +00:00
nixpkgs.url = "github:nixos/nixpkgs/88195a94f390381c6afcdaa933c2f6ff93959cb4";
2024-11-03 18:28:10 +00:00
# home manager
2025-01-03 02:48:08 +00:00
home-manager.url = "github:nix-community/home-manager/5f6aa268e419d053c3d5025da740e390b12ac936";
2024-11-03 18:28:10 +00:00
home-manager.inputs.nixpkgs.follows = "nixpkgs";
2024-11-09 23:16:54 +00:00
# nixgl
nixgl.url = "github:nix-community/nixGL/310f8e49a149e4c9ea52f1adf70cdc768ec53f8a";
nixgl.inputs.nixpkgs.follows = "nixpkgs";
2024-11-03 18:28:10 +00:00
};
outputs = {
nixpkgs,
home-manager,
2024-11-09 23:16:54 +00:00
nixgl,
2024-11-03 18:28:10 +00:00
...
2025-01-03 14:21:31 +00:00
}:
let
2024-11-03 18:28:10 +00:00
system = "x86_64-linux";
2025-01-03 14:21:31 +00:00
username = "freya";
2024-11-03 18:28:10 +00:00
in {
2025-01-03 14:21:31 +00:00
homeConfigurations.${username} =
2024-11-03 18:28:10 +00:00
home-manager.lib.homeManagerConfiguration {
2025-01-03 14:21:31 +00:00
pkgs = nixpkgs.legacyPackages.${system};
2024-11-09 23:16:54 +00:00
modules = [
./home.nix
2025-01-03 14:21:31 +00:00
({
2024-11-09 23:16:54 +00:00
_module.args = {
inherit nixgl;
};
2025-01-03 14:21:31 +00:00
nixpkgs.overlays = [ nixgl.overlay ];
home = {
inherit username;
homeDirectory = "/home/${username}";
stateVersion = "25.05";
};
})
2024-11-09 23:16:54 +00:00
];
2024-11-03 18:28:10 +00:00
};
};
}