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

View file

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

View file

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