revert nix stuff (again)
This commit is contained in:
parent
d2b797a4e3
commit
4bb33c67eb
10 changed files with 44 additions and 116 deletions
4
.gitmodules
vendored
4
.gitmodules
vendored
|
@ -0,0 +1,4 @@
|
||||||
|
[submodule "dotbot"]
|
||||||
|
path = dotbot
|
||||||
|
url = https://github.com/anishathalye/dotbot
|
||||||
|
ignore = dirty
|
|
@ -1 +1 @@
|
||||||
this is my dotfiles managed with [home-manager](https://nix-community.github.io/home-manager/).
|
this is my dotfiles managed with [dotbot](https://github.com/anishathalye/dotbot/). you should be able to replicate it with just `./install`.
|
||||||
|
|
23
conf.yml
Normal file
23
conf.yml
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
- defaults:
|
||||||
|
link:
|
||||||
|
relink: true
|
||||||
|
create: true
|
||||||
|
|
||||||
|
- clean: ['~']
|
||||||
|
|
||||||
|
- link:
|
||||||
|
~/.config/tmux:
|
||||||
|
~/.config/nvim:
|
||||||
|
~/.config/sway:
|
||||||
|
~/.config/kitty:
|
||||||
|
~/.config/aerc:
|
||||||
|
~/.config/mako:
|
||||||
|
~/.config/git:
|
||||||
|
~/.config/waybar:
|
||||||
|
~/.config/i3status-rust:
|
||||||
|
~/.config/rofi:
|
||||||
|
~/.zshrc:
|
||||||
|
~/.p10k.zsh:
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
- [git submodule update --init --recursive, installing submodules]
|
1
dotbot
Submodule
1
dotbot
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 720206578a8daf1e7167200e73e314fc4b8af52e
|
48
flake.lock
generated
48
flake.lock
generated
|
@ -1,48 +0,0 @@
|
||||||
{
|
|
||||||
"nodes": {
|
|
||||||
"home-manager": {
|
|
||||||
"inputs": {
|
|
||||||
"nixpkgs": [
|
|
||||||
"nixpkgs"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1730837930,
|
|
||||||
"narHash": "sha256-0kZL4m+bKBJUBQse0HanewWO0g8hDdCvBhudzxgehqc=",
|
|
||||||
"owner": "nix-community",
|
|
||||||
"repo": "home-manager",
|
|
||||||
"rev": "2f607e07f3ac7e53541120536708e824acccfaa8",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "nix-community",
|
|
||||||
"repo": "home-manager",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nixpkgs": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1730785428,
|
|
||||||
"narHash": "sha256-Zwl8YgTVJTEum+L+0zVAWvXAGbWAuXHax3KzuejaDyo=",
|
|
||||||
"owner": "nixos",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"rev": "4aa36568d413aca0ea84a1684d2d46f55dbabad7",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "nixos",
|
|
||||||
"ref": "nixos-unstable",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"root": {
|
|
||||||
"inputs": {
|
|
||||||
"home-manager": "home-manager",
|
|
||||||
"nixpkgs": "nixpkgs"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"root": "root",
|
|
||||||
"version": 7
|
|
||||||
}
|
|
23
flake.nix
23
flake.nix
|
@ -1,23 +0,0 @@
|
||||||
{
|
|
||||||
description = "Home Manager configuration of yt";
|
|
||||||
|
|
||||||
inputs = {
|
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
||||||
home-manager = {
|
|
||||||
url = "github:nix-community/home-manager";
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
outputs = { nixpkgs, home-manager, ... }:
|
|
||||||
let
|
|
||||||
system = "x86_64-linux";
|
|
||||||
pkgs = nixpkgs.legacyPackages.${system};
|
|
||||||
in {
|
|
||||||
homeConfigurations."yt" = home-manager.lib.homeManagerConfiguration {
|
|
||||||
inherit pkgs;
|
|
||||||
|
|
||||||
modules = [ ./home.nix ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
41
home.nix
41
home.nix
|
@ -1,41 +0,0 @@
|
||||||
{ config, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
home.username = "yt";
|
|
||||||
home.homeDirectory = "/home/yt";
|
|
||||||
home.stateVersion = "24.05";
|
|
||||||
|
|
||||||
home.packages = [
|
|
||||||
pkgs.neovim
|
|
||||||
pkgs.fzf
|
|
||||||
pkgs.eza
|
|
||||||
pkgs.gnupg
|
|
||||||
pkgs.go
|
|
||||||
pkgs.pass
|
|
||||||
pkgs.zsh
|
|
||||||
pkgs.delta
|
|
||||||
pkgs.borgbackup
|
|
||||||
pkgs.rclone
|
|
||||||
];
|
|
||||||
|
|
||||||
home.file = {
|
|
||||||
".zshrc".source = ./zshrc;
|
|
||||||
".p10k.zsh".source = ./p10k.zsh;
|
|
||||||
".config/sway".source = ./sway;
|
|
||||||
".config/nvim".source = ./nvim;
|
|
||||||
".config/aerc".source = ./aerc;
|
|
||||||
".config/git".source = ./git;
|
|
||||||
".config/i3status-rust".source = ./i3status-rust;
|
|
||||||
".config/kitty".source = ./kitty;
|
|
||||||
".config/mako".source = ./mako;
|
|
||||||
".config/rofi".source = ./rofi;
|
|
||||||
".config/tmux".source = ./tmux;
|
|
||||||
".config/waybar".source = ./waybar;
|
|
||||||
};
|
|
||||||
|
|
||||||
home.sessionVariables = {
|
|
||||||
EDITOR = "nvim";
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.home-manager.enable = true;
|
|
||||||
}
|
|
15
install
Executable file
15
install
Executable file
|
@ -0,0 +1,15 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
CONFIG="conf.yml"
|
||||||
|
DOTBOT_DIR="dotbot"
|
||||||
|
|
||||||
|
DOTBOT_BIN="bin/dotbot"
|
||||||
|
BASEDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||||
|
|
||||||
|
cd "${BASEDIR}"
|
||||||
|
git -C "${DOTBOT_DIR}" submodule sync --quiet --recursive
|
||||||
|
git submodule update --init --recursive "${DOTBOT_DIR}"
|
||||||
|
|
||||||
|
"${BASEDIR}/${DOTBOT_DIR}/${DOTBOT_BIN}" -d "${BASEDIR}" -c "${CONFIG}" "${@}"
|
1
result
1
result
|
@ -1 +0,0 @@
|
||||||
/nix/store/jrh65nv8ziax01kw3qpz4k4mk7nia3c9-home-manager-generation
|
|
2
zshrc
2
zshrc
|
@ -1,5 +1,3 @@
|
||||||
source "$HOME/.nix-profile/etc/profile.d/hm-session-vars.sh"
|
|
||||||
|
|
||||||
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
|
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
|
||||||
# Initialization code that may require console input (password prompts, [y/n]
|
# Initialization code that may require console input (password prompts, [y/n]
|
||||||
# confirmations, etc.) must go above this block; everything else may go below.
|
# confirmations, etc.) must go above this block; everything else may go below.
|
||||||
|
|
Loading…
Add table
Reference in a new issue