Compare commits
No commits in common. "42b2706505cf776ee4cbe05813bfee9eceb0a1c5" and "e0bf6e4467d91cfb50f3742dc07f6d2882a36a40" have entirely different histories.
42b2706505
...
e0bf6e4467
4 changed files with 16 additions and 301 deletions
69
flake.lock
generated
69
flake.lock
generated
|
|
@ -17,22 +17,6 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"flake-compat": {
|
|
||||||
"flake": false,
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1747046372,
|
|
||||||
"narHash": "sha256-CIVLLkVgvHYbgI2UpXvIIBJ12HWgX+fjA8Xf8PUmqCY=",
|
|
||||||
"owner": "edolstra",
|
|
||||||
"repo": "flake-compat",
|
|
||||||
"rev": "9100a0f413b0c601e0533d1d94ffd501ce2e7885",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "edolstra",
|
|
||||||
"repo": "flake-compat",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"home-manager": {
|
"home-manager": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
|
|
@ -40,11 +24,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1759853171,
|
"lastModified": 1759573136,
|
||||||
"narHash": "sha256-uqbhyXtqMbYIiMqVqUhNdSuh9AEEkiasoK3mIPIVRhk=",
|
"narHash": "sha256-ILSPD0Dm8p0w0fCVzOx98ZH8yFDrR75GmwmH3fS2VnE=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "1a09eb84fa9e33748432a5253102d01251f72d6d",
|
"rev": "5f06ceafc6c9b773a776b9195c3f47bbe1defa43",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -72,11 +56,11 @@
|
||||||
"homebrew-cask": {
|
"homebrew-cask": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1759948268,
|
"lastModified": 1759591268,
|
||||||
"narHash": "sha256-PKfR49kBk6QWICMiiAZ1gTA6ns2AgJ4PR54POhApPEQ=",
|
"narHash": "sha256-vHzv4pDydTo44Gk4B13zxHrVhafPwdH2mzwiLjn6q3g=",
|
||||||
"owner": "homebrew",
|
"owner": "homebrew",
|
||||||
"repo": "homebrew-cask",
|
"repo": "homebrew-cask",
|
||||||
"rev": "5fd3508b3552a5c0c28fb4a625b94c6e16253f45",
|
"rev": "80214ca44411421f49c4dd76864b88e87028b8a3",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -88,11 +72,11 @@
|
||||||
"homebrew-core": {
|
"homebrew-core": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1759949937,
|
"lastModified": 1759590675,
|
||||||
"narHash": "sha256-XWl8nOFNrjJlYE7MjI1kI3u4X58cV+4JZ8KJr32E3RM=",
|
"narHash": "sha256-GOt8U25/XPaSs7G/IurYt8/wsJeoN2WmGUHG6tb12/o=",
|
||||||
"owner": "homebrew",
|
"owner": "homebrew",
|
||||||
"repo": "homebrew-core",
|
"repo": "homebrew-core",
|
||||||
"rev": "b6adad21707caea42597e617f676d19a83f05bb9",
|
"rev": "c620dc89083ad752a024e41aa0c3e2b4d500ce3d",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -140,35 +124,13 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixos-wsl": {
|
|
||||||
"inputs": {
|
|
||||||
"flake-compat": "flake-compat",
|
|
||||||
"nixpkgs": [
|
|
||||||
"nixpkgs"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1759833546,
|
|
||||||
"narHash": "sha256-rOfkgIiiZNPUbf61OqEym60wXEODeDG8XH+gV/SUoUc=",
|
|
||||||
"owner": "nix-community",
|
|
||||||
"repo": "NixOS-WSL",
|
|
||||||
"rev": "7c0c0f4c3a51761434f18209fa9499b8579ff730",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "nix-community",
|
|
||||||
"ref": "main",
|
|
||||||
"repo": "NixOS-WSL",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1759831965,
|
"lastModified": 1759381078,
|
||||||
"narHash": "sha256-vgPm2xjOmKdZ0xKA6yLXPJpjOtQPHfaZDRtH+47XEBo=",
|
"narHash": "sha256-gTrEEp5gEspIcCOx9PD8kMaF1iEmfBcTbO0Jag2QhQs=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "c9b6fb798541223bbb396d287d16f43520250518",
|
"rev": "7df7ff7d8e00218376575f0acdcc5d66741351ee",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -186,7 +148,6 @@
|
||||||
"homebrew-core": "homebrew-core",
|
"homebrew-core": "homebrew-core",
|
||||||
"nix-darwin": "nix-darwin",
|
"nix-darwin": "nix-darwin",
|
||||||
"nix-homebrew": "nix-homebrew",
|
"nix-homebrew": "nix-homebrew",
|
||||||
"nixos-wsl": "nixos-wsl",
|
|
||||||
"nixpkgs": "nixpkgs",
|
"nixpkgs": "nixpkgs",
|
||||||
"sops-nix": "sops-nix"
|
"sops-nix": "sops-nix"
|
||||||
}
|
}
|
||||||
|
|
@ -198,11 +159,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1759635238,
|
"lastModified": 1759188042,
|
||||||
"narHash": "sha256-UvzKi02LMFP74csFfwLPAZ0mrE7k6EiYaKecplyX9Qk=",
|
"narHash": "sha256-f9QC2KKiNReZDG2yyKAtDZh0rSK2Xp1wkPzKbHeQVRU=",
|
||||||
"owner": "Mic92",
|
"owner": "Mic92",
|
||||||
"repo": "sops-nix",
|
"repo": "sops-nix",
|
||||||
"rev": "6e5a38e08a2c31ae687504196a230ae00ea95133",
|
"rev": "9fcfabe085281dd793589bdc770a2e577a3caa5d",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
||||||
24
flake.nix
24
flake.nix
|
|
@ -8,10 +8,6 @@
|
||||||
url = "github:nix-darwin/nix-darwin/master";
|
url = "github:nix-darwin/nix-darwin/master";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
nixos-wsl = {
|
|
||||||
url = "github:nix-community/NixOS-WSL/main";
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
};
|
|
||||||
homebrew-core = {
|
homebrew-core = {
|
||||||
url = "github:homebrew/homebrew-core";
|
url = "github:homebrew/homebrew-core";
|
||||||
flake = false;
|
flake = false;
|
||||||
|
|
@ -34,7 +30,7 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = inputs@{ self, nixpkgs, nix-darwin, nixos-wsl, nix-homebrew, homebrew-core, homebrew-cask, homebrew-bundle, home-manager, sops-nix }: {
|
outputs = inputs@{ self, nixpkgs, nix-darwin, nix-homebrew, homebrew-core, homebrew-cask, homebrew-bundle, home-manager, sops-nix }: {
|
||||||
darwinConfigurations."Dens-MacBook" = nix-darwin.lib.darwinSystem {
|
darwinConfigurations."Dens-MacBook" = nix-darwin.lib.darwinSystem {
|
||||||
system = "aarch64-darwin";
|
system = "aarch64-darwin";
|
||||||
modules = [
|
modules = [
|
||||||
|
|
@ -63,23 +59,5 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
darwinPackages = self.darwinConfigurations."Dens-MacBook".pkgs;
|
darwinPackages = self.darwinConfigurations."Dens-MacBook".pkgs;
|
||||||
|
|
||||||
nixosConfigurations = {
|
|
||||||
nixos = nixpkgs.lib.nixosSystem {
|
|
||||||
system = "x86_64-linux";
|
|
||||||
modules = [
|
|
||||||
nixos-wsl.nixosModules.default {
|
|
||||||
system.stateVersion = "25.05";
|
|
||||||
wsl.enable = true;
|
|
||||||
}
|
|
||||||
/home/duumxh/Nix/wsl/configuration.nix
|
|
||||||
home-manager.nixosModules.home-manager {
|
|
||||||
home-manager.useGlobalPkgs = true;
|
|
||||||
home-manager.useUserPackages = true;
|
|
||||||
home-manager.users.duumxh = /home/duumxh/Nix/wsl/home.nix;
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,29 +0,0 @@
|
||||||
# Edit this configuration file to define what should be installed on
|
|
||||||
# your system. Help is available in the configuration.nix(5) man page, on
|
|
||||||
# https://search.nixos.org/options and in the NixOS manual (`nixos-help`).
|
|
||||||
|
|
||||||
# NixOS-WSL specific options are documented on the NixOS-WSL repository:
|
|
||||||
# https://github.com/nix-community/NixOS-WSL
|
|
||||||
|
|
||||||
{ config, lib, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
|
||||||
wsl.defaultUser = "duumxh";
|
|
||||||
wsl.interop.register = true;
|
|
||||||
|
|
||||||
programs.zsh.enable = true;
|
|
||||||
|
|
||||||
users.users.duumxh = {
|
|
||||||
isNormalUser = true;
|
|
||||||
shell = pkgs.zsh;
|
|
||||||
};
|
|
||||||
|
|
||||||
# This value determines the NixOS release from which the default
|
|
||||||
# settings for stateful data, like file locations and database versions
|
|
||||||
# on your system were taken. It's perfectly fine and recommended to leave
|
|
||||||
# this value at the release version of the first install of this system.
|
|
||||||
# Before changing this value read the documentation for this option
|
|
||||||
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
|
||||||
system.stateVersion = "25.05"; # Did you read the comment?
|
|
||||||
}
|
|
||||||
195
wsl/home.nix
195
wsl/home.nix
|
|
@ -1,195 +0,0 @@
|
||||||
{ config, pkgs, lib, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
|
|
||||||
home = {
|
|
||||||
packages = with pkgs; [
|
|
||||||
rclone
|
|
||||||
talosctl
|
|
||||||
bat
|
|
||||||
teleport
|
|
||||||
ansible
|
|
||||||
kubectl
|
|
||||||
opentofu
|
|
||||||
nerd-fonts.jetbrains-mono
|
|
||||||
age
|
|
||||||
sops
|
|
||||||
deploy-rs
|
|
||||||
kubernetes-helm
|
|
||||||
kubectx
|
|
||||||
fzf-preview
|
|
||||||
zsh-fzf-tab
|
|
||||||
zsh-forgit
|
|
||||||
zsh-fzf-history-search
|
|
||||||
];
|
|
||||||
#sessionVariables = {
|
|
||||||
# SOPS_AGE_KEY_FILE = "/Users/duumxh/.config/sops/age/keys.txt";
|
|
||||||
#};
|
|
||||||
stateVersion = "25.11";
|
|
||||||
};
|
|
||||||
|
|
||||||
programs = {
|
|
||||||
git = {
|
|
||||||
enable = true;
|
|
||||||
userName = "Den Afanasyev";
|
|
||||||
userEmail = "ceo@furry.industries";
|
|
||||||
extraConfig = { core.sshCommand = "ssh.exe"; };
|
|
||||||
};
|
|
||||||
|
|
||||||
zsh = {
|
|
||||||
enable = true;
|
|
||||||
enableCompletion = true;
|
|
||||||
syntaxHighlighting.enable = true;
|
|
||||||
|
|
||||||
prezto = {
|
|
||||||
prompt = {
|
|
||||||
theme = "powerlevel10k";
|
|
||||||
};
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
autosuggestion = {
|
|
||||||
#highlight = "fg=#ff00ff,bg=cyan,bold,underline";
|
|
||||||
#strategy = [ "completion" "history" ];
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
plugins = [
|
|
||||||
{
|
|
||||||
name = "fzf-tab";
|
|
||||||
src = "${pkgs.zsh-fzf-tab}/share/fzf-tab";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
|
|
||||||
history = {
|
|
||||||
append = true;
|
|
||||||
expireDuplicatesFirst = true;
|
|
||||||
};
|
|
||||||
initContent = lib.mkOrder 500 ''
|
|
||||||
source ~/.p10k.zsh
|
|
||||||
export TELEPORT_ADD_KEYS_TO_AGENT=no
|
|
||||||
export K9S_SKIN="transparent"
|
|
||||||
echo "Hey there raccoon!"
|
|
||||||
'';
|
|
||||||
#localVariables = {};
|
|
||||||
|
|
||||||
shellAliases = {
|
|
||||||
ssh-add = "ssh-add.exe";
|
|
||||||
ssh = "ssh-add.exe -l > /dev/null || ssh-add.exe && ssh.exe";
|
|
||||||
ls = "eza";
|
|
||||||
cd = "z";
|
|
||||||
cat = "bat";
|
|
||||||
k = "kubectl";
|
|
||||||
m = "micro";
|
|
||||||
h = "helm";
|
|
||||||
t = "teleport";
|
|
||||||
tctl = "talosctl";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
fzf = {
|
|
||||||
colors = {
|
|
||||||
fg = "-1";
|
|
||||||
"fg+" = "#d0d0d0";
|
|
||||||
bg = "-1";
|
|
||||||
"bg+" = "#262626";
|
|
||||||
hl = "#5f87af";
|
|
||||||
"hl+" = "#5fd7ff";
|
|
||||||
info = "#afaf87";
|
|
||||||
marker = "#87ff00";
|
|
||||||
prompt = "#d7005f";
|
|
||||||
spinner = "#af5fff";
|
|
||||||
pointer = "#af5fff";
|
|
||||||
header = "#87afaf";
|
|
||||||
border = "#262626";
|
|
||||||
label = "#aeaeae";
|
|
||||||
query = "#d9d9d9";
|
|
||||||
};
|
|
||||||
defaultOptions = [
|
|
||||||
"--border=rounded"
|
|
||||||
"--border-label"
|
|
||||||
"--preview-window=border-rounded"
|
|
||||||
"--prompt=> "
|
|
||||||
"--marker=>"
|
|
||||||
"--pointer=◆"
|
|
||||||
"--separator=─"
|
|
||||||
"--scrollbar=│"
|
|
||||||
];
|
|
||||||
enableZshIntegration = true;
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
eza = {
|
|
||||||
enableZshIntegration = true;
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
bat = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
zoxide = {
|
|
||||||
enableZshIntegration = true;
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
micro = {
|
|
||||||
settings = {
|
|
||||||
colorscheme = "simple";
|
|
||||||
scrollbar = true;
|
|
||||||
};
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
k9s = {
|
|
||||||
skins = {
|
|
||||||
transparent = {
|
|
||||||
k9s = {
|
|
||||||
body.bgColor = "default";
|
|
||||||
prompt.bgColor = "default";
|
|
||||||
info.sectionColor = "default";
|
|
||||||
dialog = {
|
|
||||||
bgColor = "default";
|
|
||||||
labelFgColor = "default";
|
|
||||||
fieldFgColor = "default";
|
|
||||||
};
|
|
||||||
frame = {
|
|
||||||
crumbs.bgColor = "default";
|
|
||||||
title = {
|
|
||||||
bgColor = "default";
|
|
||||||
counterColor = "default";
|
|
||||||
};
|
|
||||||
menu.fgColor = "default";
|
|
||||||
};
|
|
||||||
views = {
|
|
||||||
charts.bgColor = "default";
|
|
||||||
table = {
|
|
||||||
bgColor = "default";
|
|
||||||
header = {
|
|
||||||
fgColor = "default";
|
|
||||||
bgColor = "default";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
xray.bgColor = "default";
|
|
||||||
logs = {
|
|
||||||
bgColor = "default";
|
|
||||||
indicator = {
|
|
||||||
bgColor = "default";
|
|
||||||
toggleOnColor = "default";
|
|
||||||
toggleOffColor = "default";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
yaml = {
|
|
||||||
colonColor = "default";
|
|
||||||
valueColor = "default";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
home-manager.enable = true;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue