Compare commits
No commits in common. "3b27f47cc9a52b2c57f357205a1214eb2bd43a98" and "122bbc22369242f45beb049b552c01db51500bfa" have entirely different histories.
3b27f47cc9
...
122bbc2236
6 changed files with 57 additions and 90 deletions
6
Makefile
Normal file
6
Makefile
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
.PHONY: update clean
|
||||||
|
update:
|
||||||
|
home-manager switch --flake .#functionalhacker
|
||||||
|
|
||||||
|
clean:
|
||||||
|
nix-collect-garbage -d
|
|
@ -64,17 +64,16 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
nativeMessagingHosts.packages = [ pkgs.browserpass ];
|
nativeMessagingHosts.packages = [ pkgs.browserpass ];
|
||||||
};
|
};
|
||||||
zsh.enable = true;
|
zsh = { enable = true; };
|
||||||
};
|
};
|
||||||
|
|
||||||
environment = {
|
environment.systemPackages = with pkgs; [
|
||||||
shells = [ pkgs.zsh ];
|
git
|
||||||
systemPackages = with pkgs;
|
gnumake
|
||||||
[
|
home-manager
|
||||||
neovim
|
neovim
|
||||||
telegram-desktop
|
telegram-desktop
|
||||||
usbutils
|
usbutils
|
||||||
wl-clipboard
|
wl-clipboard
|
||||||
];
|
];
|
||||||
};
|
|
||||||
}
|
}
|
21
flake.nix
21
flake.nix
|
@ -11,21 +11,24 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { nixpkgs, home-manager, ... }:
|
outputs = { nixpkgs, home-manager, ... }:
|
||||||
|
let
|
||||||
|
system = "x86_64-linux";
|
||||||
|
pkgs = import nixpkgs { inherit system; };
|
||||||
|
in
|
||||||
{
|
{
|
||||||
nixosConfigurations.Mirkwood = nixpkgs.lib.nixosSystem {
|
nixosConfigurations.Mirkwood = nixpkgs.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
modules = [
|
modules = [
|
||||||
|
./common.nix
|
||||||
./hosts/Mirkwood/configuration.nix
|
./hosts/Mirkwood/configuration.nix
|
||||||
./nixos_common.nix
|
|
||||||
|
|
||||||
home-manager.nixosModules.home-manager
|
|
||||||
{
|
|
||||||
home-manager.useGlobalPkgs = true;
|
|
||||||
home-manager.useUserPackages = true;
|
|
||||||
home-manager.users.functionalhacker =
|
|
||||||
import ./users/functionalhacker/home.nix;
|
|
||||||
}
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
homeConfigurations = {
|
||||||
|
functionalhacker = home-manager.lib.homeManagerConfiguration {
|
||||||
|
inherit pkgs;
|
||||||
|
modules = [ ./users/functionalhacker/home.nix ];
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
6
gpg.nix
6
gpg.nix
|
@ -15,4 +15,10 @@
|
||||||
pkgs.yubikey-personalization
|
pkgs.yubikey-personalization
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
environment.shellInit = ''
|
||||||
|
gpg-connect-agent /bye
|
||||||
|
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
|
||||||
|
export MARKON_MUUTTUJA="test"
|
||||||
|
'';
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||||
# and may be overwritten by future invocations. Please make changes
|
# and may be overwritten by future invocations. Please make changes
|
||||||
# to /etc/nixos/configuration.nix instead.
|
# to /etc/nixos/configuration.nix instead.
|
||||||
{ config, lib, modulesPath, ... }:
|
{ config, lib, pkgs, modulesPath, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports =
|
imports =
|
||||||
|
|
|
@ -1,64 +1,6 @@
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
home = {
|
|
||||||
username = "functionalhacker";
|
|
||||||
homeDirectory = "/home/functionalhacker";
|
|
||||||
stateVersion = "24.05";
|
|
||||||
|
|
||||||
packages = with pkgs; [
|
|
||||||
bat
|
|
||||||
cargo
|
|
||||||
fd
|
|
||||||
gcc
|
|
||||||
neovide
|
|
||||||
nerdfonts
|
|
||||||
nodejs
|
|
||||||
pass
|
|
||||||
ripgrep
|
|
||||||
tree-sitter
|
|
||||||
yarn
|
|
||||||
];
|
|
||||||
|
|
||||||
sessionVariables = {
|
|
||||||
|
|
||||||
# key timeout
|
|
||||||
KEYTIMEOUT = 1;
|
|
||||||
|
|
||||||
# prompt customization
|
|
||||||
PURE_PROMPT_SYMBOL = "λ";
|
|
||||||
PURE_PROMPT_VICMD_SYMBOL = "y";
|
|
||||||
|
|
||||||
# history settings
|
|
||||||
HISTFILE = "~/.zsh_history";
|
|
||||||
HISTSIZE = 10000;
|
|
||||||
SAVEHIST = 10000;
|
|
||||||
|
|
||||||
# fzf settings
|
|
||||||
FD_COMMAND = "fd -HLt";
|
|
||||||
FZF_DEFAULT_COMMAND = "fd -HLt f";
|
|
||||||
FZF_ALT_C_COMMAND = "fd -HLt d";
|
|
||||||
FZF_ALT_C_OPTS = "--preview 'eza -l {}'";
|
|
||||||
FZF_DEFAULT_OPTS = "-m --ansi --bind ctrl-a:toggle-all,ctrl-d:deselect-all,ctrl-t:toggle-all";
|
|
||||||
FZF_COMPLETION_TRIGGER = "**";
|
|
||||||
FZF_CTRL_T_COMMAND = "fd -HLt f --strip-cwd-prefix";
|
|
||||||
FZF_CTRL_T_OPTS = "--preview 'bat --color=always --style=numbers --line-range=:500 {}'";
|
|
||||||
|
|
||||||
# nvim ftw!
|
|
||||||
PAGER = "nvim -R +\"lua require 'pager'\"";
|
|
||||||
GIT_PAGER = "nvim -c 'set ft=git' -R +\"lua require 'pager'\"";
|
|
||||||
MANPAGER = "nvim +\"lua require 'pager'\" +Man!";
|
|
||||||
SYSTEMD_PAGER = "less";
|
|
||||||
|
|
||||||
MARKON_NIXOS = "cool";
|
|
||||||
};
|
|
||||||
|
|
||||||
# Just symlink neovim configuration for now.
|
|
||||||
# Declarative configuration coming soon™
|
|
||||||
file.".config/nvim".source =
|
|
||||||
config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/git/dotfiles/home/.config/nvim";
|
|
||||||
};
|
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
neovim = {
|
neovim = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -67,8 +9,6 @@
|
||||||
|
|
||||||
zsh = {
|
zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
syntaxHighlighting.enable = true;
|
|
||||||
enableCompletion = false;
|
|
||||||
zplug = {
|
zplug = {
|
||||||
enable = true;
|
enable = true;
|
||||||
plugins = [
|
plugins = [
|
||||||
|
@ -81,20 +21,33 @@
|
||||||
{ name = "zsh-users/zsh-history-substring-search"; }
|
{ name = "zsh-users/zsh-history-substring-search"; }
|
||||||
{ name = "wfxr/forgit"; }
|
{ name = "wfxr/forgit"; }
|
||||||
{ name = "zsh-users/zsh-completions"; }
|
{ name = "zsh-users/zsh-completions"; }
|
||||||
|
{ name = "zdharma-continuum/fast-syntax-highlighting"; }
|
||||||
{ name = "RobSis/zsh-completion-generator"; }
|
{ name = "RobSis/zsh-completion-generator"; }
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
fzf = {
|
home = {
|
||||||
enable = true;
|
username = "functionalhacker";
|
||||||
enableZshIntegration = true;
|
homeDirectory = "/home/functionalhacker";
|
||||||
};
|
stateVersion = "24.05";
|
||||||
|
|
||||||
git = {
|
file.".config/nvim".source =
|
||||||
enable = true;
|
config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/git/dotfiles/home/.config/nvim";
|
||||||
userName = "Marko Korhonen";
|
|
||||||
userEmail = "marko@korhonen.cc";
|
packages = with pkgs; [
|
||||||
};
|
cargo
|
||||||
|
fd
|
||||||
|
fzf
|
||||||
|
gcc
|
||||||
|
neovide
|
||||||
|
nerdfonts
|
||||||
|
nodejs
|
||||||
|
pass
|
||||||
|
ripgrep
|
||||||
|
tree-sitter
|
||||||
|
yarn
|
||||||
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue