Compare commits
3 Commits
master
...
laptopshit
Author | SHA1 | Date | |
---|---|---|---|
3a28439153 | |||
2c66c51224 | |||
|
91dd406c3e |
12
lib/user.nix
12
lib/user.nix
@ -22,5 +22,15 @@
|
|||||||
|
|
||||||
home-manager.users.${name}.imports = [ (mkRole "common") ]
|
home-manager.users.${name}.imports = [ (mkRole "common") ]
|
||||||
++ roles_mod;
|
++ roles_mod;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
mkHMUser = { name, roles ? [] }:
|
||||||
|
let
|
||||||
|
mkRole = role: import (../roles/home + "/${role}.nix");
|
||||||
|
in{
|
||||||
|
home-manager.users.${name}.imports = [ (mkRole "common") ]
|
||||||
|
++ roles_mod;
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
@ -1,16 +1,14 @@
|
|||||||
{ config, pkgs, unstable, ... }:
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
{
|
let unstable = import <nixpkgs-unstable> { };
|
||||||
|
in {
|
||||||
imports = [ ./zsh.nix ./git.nix ];
|
imports = [ ./zsh.nix ./git.nix ];
|
||||||
|
|
||||||
home = {
|
home = {
|
||||||
stateVersion = "21.05";
|
|
||||||
sessionVariables = {
|
sessionVariables = {
|
||||||
EDITOR = "nvim";
|
EDITOR = "nvim";
|
||||||
VISUAL = "nvim";
|
VISUAL = "nvim";
|
||||||
};
|
};
|
||||||
|
|
||||||
packages = with pkgs; [ rizin sshfs nixfmt victor-mono ];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.neovim = {
|
programs.neovim = {
|
||||||
@ -24,6 +22,7 @@
|
|||||||
cmake-format
|
cmake-format
|
||||||
clang-tools
|
clang-tools
|
||||||
rustfmt
|
rustfmt
|
||||||
|
nixfmt
|
||||||
];
|
];
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
" syntax
|
" syntax
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
{ pkgs, lib, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
programs.ssh = {
|
programs.ssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@ -166,6 +168,7 @@
|
|||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
IdentitiesOnly yes
|
IdentitiesOnly yes
|
||||||
ServerAliveInterval 3600
|
ServerAliveInterval 3600
|
||||||
'';
|
AddKeysToAgent yes
|
||||||
|
'' + lib.optionalString pkgs.stdenv.isDarwin "UseKeychain yes";
|
||||||
};
|
};
|
||||||
}
|
}
|
@ -7,5 +7,8 @@
|
|||||||
plugins = [ "git" "sudo" "docker" "docker-compose" "adb" "systemd" ];
|
plugins = [ "git" "sudo" "docker" "docker-compose" "adb" "systemd" ];
|
||||||
theme = "bira";
|
theme = "bira";
|
||||||
};
|
};
|
||||||
|
initExtra = ''
|
||||||
|
source ~/.profile
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user