add network config

This commit is contained in:
jopejoe1 2024-04-26 11:48:07 +02:00
parent ce6ee2d241
commit 2e38451ba7
3 changed files with 69 additions and 44 deletions

View file

@ -36,6 +36,19 @@ let
};
networking.hostName = name;
networking = {
wireless = {
enable = true;
networks = {
};
};
nameservers = [
"2a07:a8c0::fe:e334"
"2a07:a8c1::fe:e334"
];
networkmanager.enable = true;
};
nix = {
settings = {
substituters = lib.mkForce [
@ -94,8 +107,7 @@ let
systemd.services.nix-daemon.serviceConfig.LimitNOFILE = lib.mkForce 1048576000;
networking.hosts = {
};
networking.hosts = { };
hardware.bluetooth.enable = true;
hardware.bluetooth.powerOnBoot = true;

View file

@ -1,4 +1,9 @@
{ pkgs, config, user, home }:
{
pkgs,
config,
user,
home,
}:
{
home = {
username = user.name;

View file

@ -13,54 +13,62 @@
isNormalUser = true;
shell = pkgs.nushell;
description = "Johannes Jöns";
extraGroups = [ "wheel" "networkmanager" "pipewire" "audio" "adbusers" ];
extraGroups = [
"wheel"
"networkmanager"
"pipewire"
"audio"
"adbusers"
];
uid = 1000;
};
home-manager.users.jopejoe1 = import ../. {
inherit pkgs config;
user = config.users.users.jopejoe1;
home = config.home-manager.users.jopejoe1;
} // {
programs = {
nushell = {
enable = true;
extraConfig = ''
let carapace_completer = {|spans|
carapace $spans.0 nushell $spans | from json
}
$env.config = {
show_banner: false,
completions: {
case_sensitive: false
quick: true
partial: true
algorithm: "fuzzy"
external: {
enable: true
max_results: 100
completer: $carapace_completer
home-manager.users.jopejoe1 =
import ../. {
inherit pkgs config;
user = config.users.users.jopejoe1;
home = config.home-manager.users.jopejoe1;
}
// {
programs = {
nushell = {
enable = true;
extraConfig = ''
let carapace_completer = {|spans|
carapace $spans.0 nushell $spans | from json
}
}
}
'';
shellAliases = {
vi = "nvim";
vim = "nvim";
$env.config = {
show_banner: false,
completions: {
case_sensitive: false
quick: true
partial: true
algorithm: "fuzzy"
external: {
enable: true
max_results: 100
completer: $carapace_completer
}
}
}
'';
shellAliases = {
vi = "nvim";
vim = "nvim";
};
};
};
carapace.enable = true;
carapace.enableNushellIntegration = true;
carapace.enable = true;
carapace.enableNushellIntegration = true;
starship = {
enable = true;
settings = {
add_newline = true;
character = {
success_symbol = "[](bold green)";
error_symbol = "[](bold red)";
starship = {
enable = true;
settings = {
add_newline = true;
character = {
success_symbol = "[](bold green)";
error_symbol = "[](bold red)";
};
};
};
};
};
};
}