wip: still broken
This commit is contained in:
21
flake.nix
21
flake.nix
@@ -34,7 +34,8 @@
|
|||||||
myOverlays = { ... }: {
|
myOverlays = { ... }: {
|
||||||
nixpkgs.overlays = [
|
nixpkgs.overlays = [
|
||||||
rust-overlay.overlays.default
|
rust-overlay.overlays.default
|
||||||
] ++ (nixpkgs.lib.attrValues self.common.overlays);
|
self.common.overlays
|
||||||
|
];
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
meta = import ./meta;
|
meta = import ./meta;
|
||||||
@@ -154,17 +155,23 @@
|
|||||||
# generic non-NixOS Linux machine
|
# generic non-NixOS Linux machine
|
||||||
homeConfigurations."generic" = let
|
homeConfigurations."generic" = let
|
||||||
hostname = builtins.getEnv "HOSTNAME";
|
hostname = builtins.getEnv "HOSTNAME";
|
||||||
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
system = "x86_64-linux";
|
||||||
in home-manager.lib.homeManagerConfiguration {
|
in home-manager.lib.homeManagerConfiguration {
|
||||||
inherit pkgs;
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
# system = "x86_64-linux";
|
|
||||||
extraSpecialArgs = extraSpecialArgs // {
|
extraSpecialArgs = {
|
||||||
|
inherit userName userEmail hostname;
|
||||||
|
ghostty = ghostty.packages.${system}.default;
|
||||||
isNixOS = false;
|
isNixOS = false;
|
||||||
hostname = hostname;
|
|
||||||
role = "workstation";
|
role = "workstation";
|
||||||
};
|
};
|
||||||
modules = [
|
modules = [
|
||||||
myOverlays
|
{
|
||||||
|
nixpkgs.overlays = [
|
||||||
|
rust-overlay.overlays.default
|
||||||
|
self.common.overlays
|
||||||
|
];
|
||||||
|
}
|
||||||
./home
|
./home
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,9 +1,20 @@
|
|||||||
{ pkgs, lib, role, ... }:
|
{ pkgs, lib, role, ... }:
|
||||||
{
|
{
|
||||||
imports =
|
imports =
|
||||||
[ ./common.nix ]
|
[ ./common.nix ];
|
||||||
++ lib.optional pkgs.stdenv.isDarwin ./darwin.nix
|
|
||||||
++ lib.optional pkgs.stdenv.isLinux ./linux.nix
|
config = lib.mkMerge [
|
||||||
++ lib.optional (role == "workstation") ./workstation.nix
|
(lib.mkIf pkgs.stdenv.isDarwin {
|
||||||
++ lib.optional (role == "server") ./server.nix;
|
imports = [ ./darwin.nix ];
|
||||||
|
})
|
||||||
|
(lib.mkIf pkgs.stdenv.isLinux {
|
||||||
|
imports = [ ./linux.nix ];
|
||||||
|
})
|
||||||
|
(lib.mkIf (role == "workstation") {
|
||||||
|
imports = [ ./workstation.nix ];
|
||||||
|
})
|
||||||
|
(lib.mkIf (role == "server") {
|
||||||
|
imports = [ ./server.nix ];
|
||||||
|
})
|
||||||
|
];
|
||||||
}
|
}
|
||||||
@@ -8,7 +8,7 @@
|
|||||||
isNixOS,
|
isNixOS,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
imports = map (module: import module { inherit lib pkgs dirs userName userEmail ghostty isNixOS; }) [
|
imports = [
|
||||||
../terminal.nix
|
../terminal.nix
|
||||||
../broswer.nix
|
../broswer.nix
|
||||||
../zellij.nix
|
../zellij.nix
|
||||||
@@ -16,9 +16,7 @@
|
|||||||
../k9s.nix
|
../k9s.nix
|
||||||
../krew.nix
|
../krew.nix
|
||||||
../direnv.nix
|
../direnv.nix
|
||||||
] ++ lib.optional isNixOS [
|
] ++ lib.optional isNixOS ../sway.nix;
|
||||||
../sway.nix
|
|
||||||
];
|
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
fh
|
fh
|
||||||
|
|||||||
Reference in New Issue
Block a user