added certificate, codeformated
This commit is contained in:
31
home.nix
31
home.nix
@@ -1,18 +1,23 @@
|
||||
{ pkgs, lib, config, ... }:
|
||||
{ pkgs, lib, ... }:
|
||||
let
|
||||
downloadedFile = builtins.fetchurl {
|
||||
url =
|
||||
"https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh";
|
||||
url = "https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh";
|
||||
sha256 = "7ff718f4a06fd0a0be7edfef926abb41b1353c48c1515ad312d226965b74943a";
|
||||
};
|
||||
ProjectRoot = ./.;
|
||||
in {
|
||||
in
|
||||
{
|
||||
# Mandatory WSL settings
|
||||
wsl.enable = true;
|
||||
wsl.defaultUser = "nixos";
|
||||
|
||||
# Enable Flakes and new 'nix' commands
|
||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||
nix.settings.experimental-features = [
|
||||
"nix-command"
|
||||
"flakes"
|
||||
];
|
||||
|
||||
security.pki.certificateFiles = [ ./company-ca.pem ];
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
|
||||
@@ -20,6 +25,7 @@ in {
|
||||
# or not just neovim ...
|
||||
xclip
|
||||
|
||||
tldr
|
||||
# lua-language-server
|
||||
# stylua
|
||||
|
||||
@@ -48,11 +54,16 @@ in {
|
||||
home-manager = {
|
||||
users.nixos = {
|
||||
|
||||
imports = [ ./hm_programs ./packages.nix ];
|
||||
imports = [
|
||||
./hm_programs
|
||||
./packages.nix
|
||||
];
|
||||
|
||||
home = {
|
||||
|
||||
sessionVariables = { POETRY_VIRTUALENVS_IN_PROJECT = "true"; };
|
||||
sessionVariables = {
|
||||
POETRY_VIRTUALENVS_IN_PROJECT = "true";
|
||||
};
|
||||
|
||||
activation.createCustomDir = lib.mkAfter ''
|
||||
mkdir -p ~/.vim-tmp
|
||||
@@ -61,11 +72,9 @@ in {
|
||||
|
||||
file = {
|
||||
|
||||
".local/share/git/contrib/completion/git-prompt.sh".source =
|
||||
downloadedFile;
|
||||
".local/share/git/contrib/completion/git-prompt.sh".source = downloadedFile;
|
||||
|
||||
".config/starship.toml".source =
|
||||
"${ProjectRoot}/config-files/starship.toml";
|
||||
".config/starship.toml".source = "${ProjectRoot}/config-files/starship.toml";
|
||||
|
||||
".tmux.conf".source = "${ProjectRoot}/config-files/tmux.conf";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user