[feat] Remove useless overlay stuff
This commit is contained in:
@@ -1,194 +1,192 @@
|
|||||||
{ config
|
{
|
||||||
, pkgs
|
config,
|
||||||
, lib
|
pkgs,
|
||||||
, device
|
lib,
|
||||||
, overlays
|
device,
|
||||||
, ...
|
# overlays,
|
||||||
|
...
|
||||||
}:
|
}: let
|
||||||
let
|
|
||||||
start-tmux = (import ../scripts/start-tmux.nix) pkgs;
|
start-tmux = (import ../scripts/start-tmux.nix) pkgs;
|
||||||
in
|
in
|
||||||
# https://mipmip.github.io/home-manager-option-search/
|
# https://mipmip.github.io/home-manager-option-search/
|
||||||
{
|
{
|
||||||
nixpkgs.overlays = [
|
#nixpkgs.overlays = [
|
||||||
(self: super: {
|
# (self: super: {
|
||||||
neovim-nightly = overlays.neovim-nightly;
|
# neovim-nightly = overlays.neovim-nightly;
|
||||||
})
|
# })
|
||||||
];
|
#];
|
||||||
imports = [
|
imports = [
|
||||||
# Include the results of the hardware scan.
|
# Include the results of the hardware scan.
|
||||||
./tmux.nix
|
./tmux.nix
|
||||||
./wezterm.nix
|
./wezterm.nix
|
||||||
../linux/hyprland.nix
|
../linux/hyprland.nix
|
||||||
];
|
|
||||||
|
|
||||||
programs = {
|
|
||||||
fish = {
|
|
||||||
enable = true;
|
|
||||||
shellAbbrs = {
|
|
||||||
vim = "nvim";
|
|
||||||
vi = "nvim";
|
|
||||||
nv = "nvim";
|
|
||||||
g = "git";
|
|
||||||
cd = "z";
|
|
||||||
ls = "exa";
|
|
||||||
t = "${start-tmux}";
|
|
||||||
};
|
|
||||||
interactiveShellInit = ''
|
|
||||||
set fish_greeting
|
|
||||||
${pkgs.macchina.outPath}/bin/macchina
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
nushell = {
|
|
||||||
enable = true;
|
|
||||||
shellAliases = {
|
|
||||||
"cd" = "z";
|
|
||||||
};
|
|
||||||
package = pkgs.nushellFull;
|
|
||||||
configFile.text = ''
|
|
||||||
$env.config = {
|
|
||||||
show_banner: false,
|
|
||||||
}
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
zoxide = {
|
|
||||||
enable = true;
|
|
||||||
enableFishIntegration = true;
|
|
||||||
enableNushellIntegration = true;
|
|
||||||
};
|
|
||||||
starship = {
|
|
||||||
enable = true;
|
|
||||||
enableFishIntegration = true;
|
|
||||||
enableNushellIntegration = true;
|
|
||||||
};
|
|
||||||
eza = {
|
|
||||||
enable = true;
|
|
||||||
enableAliases = true;
|
|
||||||
git = true;
|
|
||||||
icons = true;
|
|
||||||
};
|
|
||||||
carapace = {
|
|
||||||
enable = true;
|
|
||||||
enableFishIntegration = true;
|
|
||||||
enableNushellIntegration = true;
|
|
||||||
};
|
|
||||||
fzf = {
|
|
||||||
enable = true;
|
|
||||||
package = pkgs.fzf;
|
|
||||||
enableFishIntegration = true;
|
|
||||||
tmux.enableShellIntegration = true;
|
|
||||||
};
|
|
||||||
keychain = {
|
|
||||||
enable = true;
|
|
||||||
# keys = [ "id_ed25519" ];
|
|
||||||
enableFishIntegration = true;
|
|
||||||
enableNushellIntegration = true;
|
|
||||||
};
|
|
||||||
yazi = {
|
|
||||||
enable = true;
|
|
||||||
enableFishIntegration = true;
|
|
||||||
enableNushellIntegration = true;
|
|
||||||
};
|
|
||||||
foot = {
|
|
||||||
enable = pkgs.stdenv.isLinux;
|
|
||||||
server.enable = true;
|
|
||||||
settings = {
|
|
||||||
main = {
|
|
||||||
shell = "${pkgs.fish.outPath}/bin/fish";
|
|
||||||
font = "Hasklug Nerd Font Mono:size=13";
|
|
||||||
initial-window-size-pixels = "1440x800";
|
|
||||||
};
|
|
||||||
colors = {
|
|
||||||
foreground = "f8f8f2";
|
|
||||||
background = 000000;
|
|
||||||
alpha = 0.8;
|
|
||||||
|
|
||||||
"136" = "af8700";
|
|
||||||
|
|
||||||
regular0 = "21222c";
|
|
||||||
regular1 = "ff5555";
|
|
||||||
regular2 = "50fa7b";
|
|
||||||
regular3 = "f1fa8c";
|
|
||||||
regular4 = "bd93f9";
|
|
||||||
regular5 = "ff79c6";
|
|
||||||
regular6 = "8be9fd";
|
|
||||||
regular7 = "f8f8f2";
|
|
||||||
|
|
||||||
bright0 = "6272a4";
|
|
||||||
bright1 = "ff6e6e";
|
|
||||||
bright2 = "69ff94";
|
|
||||||
bright3 = "ffffa5";
|
|
||||||
bright4 = "d6acff";
|
|
||||||
bright5 = "ff92df";
|
|
||||||
bright6 = "a4ffff";
|
|
||||||
bright7 = "ffffff";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
# Let Home Manager install and manage itself.
|
|
||||||
home-manager = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
home = {
|
|
||||||
# Home Manager needs a bit of information about you and the paths it should
|
|
||||||
# manage.
|
|
||||||
username = device.user;
|
|
||||||
homeDirectory =
|
|
||||||
if device.system == "x86-64-linux" then
|
|
||||||
lib.mkForce "/home/${device.user}"
|
|
||||||
else
|
|
||||||
lib.mkForce "/Users/${device.user}";
|
|
||||||
|
|
||||||
|
|
||||||
stateVersion = "23.11";
|
|
||||||
|
|
||||||
packages = [
|
|
||||||
pkgs.macchina
|
|
||||||
pkgs.ripgrep
|
|
||||||
pkgs.alejandra
|
|
||||||
# pkgs.neovim-nightly
|
|
||||||
pkgs.cachix
|
|
||||||
# # Adds the 'hello' command to your environment. It prints a friendly
|
|
||||||
# # "Hello, world!" when run.
|
|
||||||
# pkgs.hello
|
|
||||||
|
|
||||||
# # It is sometimes useful to fine-tune packages, for example, by applying
|
|
||||||
# # overrides. You can do that directly here, just don't forget the
|
|
||||||
# # parentheses. Maybe you want to install Nerd Fonts with a limited number of
|
|
||||||
# # fonts?
|
|
||||||
# (pkgs.nerdfonts.override { fonts = [ "FantasqueSansMono" ]; })
|
|
||||||
|
|
||||||
# # You can also create simple shell scripts directly inside your
|
|
||||||
# # configuration. For example, this adds a command 'my-hello' to your
|
|
||||||
# # environment:
|
|
||||||
# (pkgs.writeShellScriptBin "my-hello" ''
|
|
||||||
# echo "Hello, ${config.home.username}!"
|
|
||||||
# '')
|
|
||||||
];
|
];
|
||||||
|
|
||||||
file = {
|
programs = {
|
||||||
".config/tmux/sessions".source = ../../tmux/sessions;
|
fish = {
|
||||||
".config/nvim".source = ../../nvim;
|
enable = true;
|
||||||
|
shellAbbrs = {
|
||||||
|
vim = "nvim";
|
||||||
|
vi = "nvim";
|
||||||
|
nv = "nvim";
|
||||||
|
g = "git";
|
||||||
|
cd = "z";
|
||||||
|
ls = "exa";
|
||||||
|
t = "${start-tmux}";
|
||||||
|
};
|
||||||
|
interactiveShellInit = ''
|
||||||
|
set fish_greeting
|
||||||
|
${pkgs.macchina.outPath}/bin/macchina
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
# # You can also set the file content immediately.
|
nushell = {
|
||||||
# ".gradle/gradle.properties".text = ''
|
enable = true;
|
||||||
# org.gradle.console=verbose
|
shellAliases = {
|
||||||
# org.gradle.daemon.idletimeout=3600000
|
"cd" = "z";
|
||||||
# '';
|
};
|
||||||
|
package = pkgs.nushellFull;
|
||||||
|
configFile.text = ''
|
||||||
|
$env.config = {
|
||||||
|
show_banner: false,
|
||||||
|
}
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
zoxide = {
|
||||||
|
enable = true;
|
||||||
|
enableFishIntegration = true;
|
||||||
|
enableNushellIntegration = true;
|
||||||
|
};
|
||||||
|
starship = {
|
||||||
|
enable = true;
|
||||||
|
enableFishIntegration = true;
|
||||||
|
enableNushellIntegration = true;
|
||||||
|
};
|
||||||
|
eza = {
|
||||||
|
enable = true;
|
||||||
|
enableAliases = true;
|
||||||
|
git = true;
|
||||||
|
icons = true;
|
||||||
|
};
|
||||||
|
carapace = {
|
||||||
|
enable = true;
|
||||||
|
enableFishIntegration = true;
|
||||||
|
enableNushellIntegration = true;
|
||||||
|
};
|
||||||
|
fzf = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.fzf;
|
||||||
|
enableFishIntegration = true;
|
||||||
|
tmux.enableShellIntegration = true;
|
||||||
|
};
|
||||||
|
keychain = {
|
||||||
|
enable = true;
|
||||||
|
# keys = [ "id_ed25519" ];
|
||||||
|
enableFishIntegration = true;
|
||||||
|
enableNushellIntegration = true;
|
||||||
|
};
|
||||||
|
yazi = {
|
||||||
|
enable = true;
|
||||||
|
enableFishIntegration = true;
|
||||||
|
enableNushellIntegration = true;
|
||||||
|
};
|
||||||
|
foot = {
|
||||||
|
enable = pkgs.stdenv.isLinux;
|
||||||
|
server.enable = true;
|
||||||
|
settings = {
|
||||||
|
main = {
|
||||||
|
shell = "${pkgs.fish.outPath}/bin/fish";
|
||||||
|
font = "Hasklug Nerd Font Mono:size=13";
|
||||||
|
initial-window-size-pixels = "1440x800";
|
||||||
|
};
|
||||||
|
colors = {
|
||||||
|
foreground = "f8f8f2";
|
||||||
|
background = 000000;
|
||||||
|
alpha = 0.8;
|
||||||
|
|
||||||
|
"136" = "af8700";
|
||||||
|
|
||||||
|
regular0 = "21222c";
|
||||||
|
regular1 = "ff5555";
|
||||||
|
regular2 = "50fa7b";
|
||||||
|
regular3 = "f1fa8c";
|
||||||
|
regular4 = "bd93f9";
|
||||||
|
regular5 = "ff79c6";
|
||||||
|
regular6 = "8be9fd";
|
||||||
|
regular7 = "f8f8f2";
|
||||||
|
|
||||||
|
bright0 = "6272a4";
|
||||||
|
bright1 = "ff6e6e";
|
||||||
|
bright2 = "69ff94";
|
||||||
|
bright3 = "ffffa5";
|
||||||
|
bright4 = "d6acff";
|
||||||
|
bright5 = "ff92df";
|
||||||
|
bright6 = "a4ffff";
|
||||||
|
bright7 = "ffffff";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
# Let Home Manager install and manage itself.
|
||||||
|
home-manager = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
sessionVariables = {
|
home = {
|
||||||
EDITOR = "nvim";
|
# Home Manager needs a bit of information about you and the paths it should
|
||||||
SHELL = "${pkgs.fish.outPath}/bin/fish";
|
# manage.
|
||||||
|
username = device.user;
|
||||||
|
homeDirectory =
|
||||||
|
if device.system == "x86-64-linux"
|
||||||
|
then lib.mkForce "/home/${device.user}"
|
||||||
|
else lib.mkForce "/Users/${device.user}";
|
||||||
|
|
||||||
|
stateVersion = "23.11";
|
||||||
|
|
||||||
|
packages = with pkgs; [
|
||||||
|
macchina
|
||||||
|
ripgrep
|
||||||
|
fd
|
||||||
|
alejandra
|
||||||
|
neovim-nightly
|
||||||
|
cachix
|
||||||
|
# # Adds the 'hello' command to your environment. It prints a friendly
|
||||||
|
# # "Hello, world!" when run.
|
||||||
|
# pkgs.hello
|
||||||
|
|
||||||
|
# # It is sometimes useful to fine-tune packages, for example, by applying
|
||||||
|
# # overrides. You can do that directly here, just don't forget the
|
||||||
|
# # parentheses. Maybe you want to install Nerd Fonts with a limited number of
|
||||||
|
# # fonts?
|
||||||
|
# (pkgs.nerdfonts.override { fonts = [ "FantasqueSansMono" ]; })
|
||||||
|
|
||||||
|
# # You can also create simple shell scripts directly inside your
|
||||||
|
# # configuration. For example, this adds a command 'my-hello' to your
|
||||||
|
# # environment:
|
||||||
|
# (pkgs.writeShellScriptBin "my-hello" ''
|
||||||
|
# echo "Hello, ${config.home.username}!"
|
||||||
|
# '')
|
||||||
|
];
|
||||||
|
|
||||||
|
file = {
|
||||||
|
".config/tmux/sessions".source = ../../tmux/sessions;
|
||||||
|
".config/nvim".source = ../../nvim;
|
||||||
|
|
||||||
|
# # You can also set the file content immediately.
|
||||||
|
# ".gradle/gradle.properties".text = ''
|
||||||
|
# org.gradle.console=verbose
|
||||||
|
# org.gradle.daemon.idletimeout=3600000
|
||||||
|
# '';
|
||||||
|
};
|
||||||
|
|
||||||
|
sessionVariables = {
|
||||||
|
EDITOR = "nvim";
|
||||||
|
SHELL = "${pkgs.fish.outPath}/bin/fish";
|
||||||
|
};
|
||||||
|
sessionPath = [
|
||||||
|
"${config.home.homeDirectory}/.local/bin"
|
||||||
|
"${config.home.homeDirectory}/.nix-profile/bin"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
sessionPath = [
|
}
|
||||||
"${config.home.homeDirectory}/.local/bin"
|
|
||||||
"${config.home.homeDirectory}/.nix-profile/bin"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|||||||
17
config/nix/flake.lock
generated
17
config/nix/flake.lock
generated
@@ -71,9 +71,8 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "numtide",
|
"id": "flake-utils",
|
||||||
"repo": "flake-utils",
|
"type": "indirect"
|
||||||
"type": "github"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"flake-utils_2": {
|
"flake-utils_2": {
|
||||||
@@ -146,11 +145,11 @@
|
|||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"dir": "contrib",
|
"dir": "contrib",
|
||||||
"lastModified": 1707868264,
|
"lastModified": 1707941489,
|
||||||
"narHash": "sha256-Ewc5fxKb09XQeO6LeKmko0x7MxKmVCGUYwKq7w8sZD0=",
|
"narHash": "sha256-S5KG+iYMFVHIEfeXSWYei2jcHs6kOfhM1pUoVQ9G/Lw=",
|
||||||
"owner": "neovim",
|
"owner": "neovim",
|
||||||
"repo": "neovim",
|
"repo": "neovim",
|
||||||
"rev": "a376d979bda103fa9998d05c3cc4ba56d3c3cece",
|
"rev": "d09957e0a06f350443c750d9838b5f1016c0cccc",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -169,11 +168,11 @@
|
|||||||
"nixpkgs": "nixpkgs"
|
"nixpkgs": "nixpkgs"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1707935913,
|
"lastModified": 1707955468,
|
||||||
"narHash": "sha256-uAkWeyJUNyZS9/u9huCoAJXyTiHw1F+5a91IDujPppk=",
|
"narHash": "sha256-ZVka2bcB1AQTiVWqp2yH9Rnsd4Tvpcf5NXXzJIp7QNE=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "neovim-nightly-overlay",
|
"repo": "neovim-nightly-overlay",
|
||||||
"rev": "b57bf64254630de4920177333f06b341653b1f28",
|
"rev": "0b6b4afc71e14d7f17f4e4a367ce271b9d398432",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|||||||
@@ -13,92 +13,88 @@
|
|||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
neovim-nightly-overlay.url = "github:nix-community/neovim-nightly-overlay";
|
neovim-nightly-overlay.url = "github:nix-community/neovim-nightly-overlay";
|
||||||
flake-utils.url = "github:numtide/flake-utils";
|
# flake-utils.url = "github:numtide/flake-utils";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs =
|
outputs = {
|
||||||
{ nixpkgs
|
nixpkgs,
|
||||||
, home-manager
|
home-manager,
|
||||||
, nix-darwin
|
nix-darwin,
|
||||||
, flake-utils
|
flake-utils,
|
||||||
, ...
|
...
|
||||||
} @ inputs:
|
} @ inputs: let
|
||||||
let
|
devices = [
|
||||||
devices = [
|
{
|
||||||
{
|
name = "mirai";
|
||||||
name = "mirai";
|
system = "x86_64-linux";
|
||||||
system = "x86_64-linux";
|
user = "fs0c131y";
|
||||||
user = "fs0c131y";
|
}
|
||||||
}
|
{
|
||||||
{
|
name = "genzai";
|
||||||
name = "genzai";
|
system = "x86_64-linux";
|
||||||
system = "x86_64-linux";
|
user = "fs0c131y";
|
||||||
user = "fs0c131y";
|
}
|
||||||
}
|
{
|
||||||
{
|
name = "Uttarayans-MacBook-Pro";
|
||||||
name = "Uttarayans-MacBook-Pro";
|
system = "aarch64-darwin";
|
||||||
system = "aarch64-darwin";
|
user = "fs0c131y";
|
||||||
user = "fs0c131y";
|
}
|
||||||
}
|
{
|
||||||
{
|
name = "SteamDeck";
|
||||||
name = "SteamDeck";
|
system = "x86_64-linux";
|
||||||
system = "x86_64-linux";
|
user = "deck";
|
||||||
user = "deck";
|
}
|
||||||
}
|
];
|
||||||
];
|
linux = builtins.filter (x: x.system == "x86_64-linux") devices;
|
||||||
linux = builtins.filter (x: x.system == "x86_64-linux") devices;
|
darwin = builtins.filter (x: x.system == "aarch64-darwin") devices;
|
||||||
darwin = builtins.filter (x: x.system == "aarch64-darwin") devices;
|
in {
|
||||||
in
|
homeConfigurations = builtins.listToAttrs (builtins.map
|
||||||
{
|
(device: {
|
||||||
homeConfigurations = builtins.listToAttrs (builtins.map
|
name = device.user;
|
||||||
|
value = let
|
||||||
|
pkgs = nixpkgs.legacyPackages.${device.system};
|
||||||
|
overlays = [inputs.neovim-nightly-overlay.overlay];
|
||||||
|
in
|
||||||
|
home-manager.lib.homeManagerConfiguration {
|
||||||
|
inherit pkgs;
|
||||||
|
modules = [
|
||||||
|
./common/home.nix
|
||||||
|
{
|
||||||
|
nixpkgs.overlays = overlays;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
})
|
||||||
|
linux);
|
||||||
|
|
||||||
|
darwinConfigurations =
|
||||||
|
builtins.listToAttrs
|
||||||
|
(builtins.map
|
||||||
(device: {
|
(device: {
|
||||||
name = device.user;
|
name = device.name;
|
||||||
value =
|
value = let
|
||||||
let
|
pkgs = nixpkgs.legacyPackages.${device.system};
|
||||||
pkgs = nixpkgs.legacyPackages.${device.system};
|
overlays = [inputs.neovim-nightly-overlay.overlay];
|
||||||
overlays = [ inputs.neovim-nightly-overlay.overlay ];
|
in
|
||||||
in
|
nix-darwin.lib.darwinSystem {
|
||||||
home-manager.lib.homeManagerConfiguration {
|
|
||||||
inherit pkgs;
|
inherit pkgs;
|
||||||
modules = [
|
modules = [
|
||||||
./home.nix
|
./darwin
|
||||||
|
home-manager.darwinModules.home-manager
|
||||||
{
|
{
|
||||||
nixpkgs.overlays = overlays;
|
nixpkgs.overlays = overlays;
|
||||||
|
home-manager = {
|
||||||
|
useGlobalPkgs = true;
|
||||||
|
useUserPackages = true;
|
||||||
|
extraSpecialArgs = {
|
||||||
|
inherit device;
|
||||||
|
};
|
||||||
|
users.${device.user}.imports = [./common/home.nix];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
linux);
|
darwin);
|
||||||
|
};
|
||||||
darwinConfigurations =
|
|
||||||
builtins.listToAttrs
|
|
||||||
(builtins.map
|
|
||||||
(device: {
|
|
||||||
name = device.name;
|
|
||||||
value =
|
|
||||||
let
|
|
||||||
pkgs = nixpkgs.legacyPackages.${device.system};
|
|
||||||
overlays = [ inputs.neovim-nightly-overlay.overlay ];
|
|
||||||
in
|
|
||||||
nix-darwin.lib.darwinSystem {
|
|
||||||
inherit pkgs;
|
|
||||||
modules = [
|
|
||||||
./darwin
|
|
||||||
home-manager.darwinModules.home-manager
|
|
||||||
{
|
|
||||||
home-manager = {
|
|
||||||
useGlobalPkgs = true;
|
|
||||||
useUserPackages = true;
|
|
||||||
extraSpecialArgs = {
|
|
||||||
inherit device;
|
|
||||||
inherit overlays;
|
|
||||||
};
|
|
||||||
users.${device.user}.imports = [ ./common/home.nix ];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
})
|
|
||||||
darwin);
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,4 +6,3 @@ experimental-features = nix-command flakes repl-flake
|
|||||||
bash-prompt-prefix = (nix:$name)\040
|
bash-prompt-prefix = (nix:$name)\040
|
||||||
max-jobs = auto
|
max-jobs = auto
|
||||||
extra-nix-path = nixpkgs=flake:nixpkgs
|
extra-nix-path = nixpkgs=flake:nixpkgs
|
||||||
upgrade-nix-store-path-url = https://install.determinate.systems/nix-upgrade/stable/universal
|
|
||||||
|
|||||||
Reference in New Issue
Block a user