This commit is contained in:
Giulio De Pasquale 2022-04-15 12:20:11 +01:00
parent c47d25c943
commit 91dd406c3e
3 changed files with 18 additions and 5 deletions

View File

@ -23,4 +23,14 @@
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;
};
};
} }

View File

@ -1,6 +1,7 @@
{ config, pkgs, unstable, ... }: { config, pkgs, ... }:
{ let unstable = import <nixos-unstable> { };
in {
imports = [ ./zsh.nix ./git.nix ]; imports = [ ./zsh.nix ./git.nix ];
home = { home = {
@ -9,8 +10,6 @@
EDITOR = "nvim"; EDITOR = "nvim";
VISUAL = "nvim"; VISUAL = "nvim";
}; };
packages = with pkgs; [ rizin sshfs nixfmt victor-mono ];
}; };
programs.neovim = { programs.neovim = {
@ -24,6 +23,7 @@
cmake-format cmake-format
clang-tools clang-tools
rustfmt rustfmt
nixfmt
]; ];
extraConfig = '' extraConfig = ''
" syntax " syntax

View File

@ -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
'';
}; };
} }