migration guide
This commit is contained in:
parent
424c9b91f4
commit
0416ecf1eb
8 changed files with 226 additions and 266 deletions
24
flake.nix
24
flake.nix
|
|
@ -11,13 +11,9 @@
|
|||
neovim-nightly.url = "github:nix-community/neovim-nightly-overlay";
|
||||
zen-browser.url = "github:0xc000022070/zen-browser-flake";
|
||||
claude-code.url = "github:ryoppippi/claude-code-overlay";
|
||||
fonts = {
|
||||
url = "git+ssh://git@github.com/barrettruth/fonts.git";
|
||||
flake = false;
|
||||
};
|
||||
};
|
||||
|
||||
outputs = { nixpkgs, home-manager, nixos-hardware, neovim-nightly, zen-browser, claude-code, fonts, ... }:
|
||||
outputs = { nixpkgs, home-manager, nixos-hardware, neovim-nightly, zen-browser, claude-code, ... }:
|
||||
let
|
||||
system = "x86_64-linux";
|
||||
pkgs = import nixpkgs {
|
||||
|
|
@ -41,13 +37,27 @@
|
|||
modules = [
|
||||
nixos-hardware.nixosModules.dell-xps-15-9500-nvidia
|
||||
./hosts/xps15/configuration.nix
|
||||
{
|
||||
nixpkgs.overlays = [
|
||||
neovim-nightly.overlays.default
|
||||
claude-code.overlays.default
|
||||
];
|
||||
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (nixpkgs.lib.getName pkg) [
|
||||
"slack"
|
||||
"claude-code"
|
||||
"claude"
|
||||
"nvidia-x11"
|
||||
"nvidia-settings"
|
||||
"apple_cursor"
|
||||
];
|
||||
}
|
||||
home-manager.nixosModules.home-manager
|
||||
{
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.users.barrett = import ./home/home.nix;
|
||||
home-manager.extraSpecialArgs = {
|
||||
inherit zen-browser fonts system;
|
||||
inherit zen-browser system;
|
||||
};
|
||||
}
|
||||
];
|
||||
|
|
@ -59,7 +69,7 @@
|
|||
homeConfigurations.barrett = home-manager.lib.homeManagerConfiguration {
|
||||
inherit pkgs;
|
||||
extraSpecialArgs = {
|
||||
inherit zen-browser fonts system;
|
||||
inherit zen-browser system;
|
||||
};
|
||||
modules = [ ./home/home.nix ];
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue