bluetooth

Signed-off-by: Alex Stan <90788596+Ultra980@users.noreply.github.com>
This commit is contained in:
Alex Stan 2023-08-14 16:23:18 +03:00
parent 2810f17f67
commit 3e6e706f3b
3 changed files with 30 additions and 12 deletions

View file

@ -98,9 +98,8 @@
homeConfigurations = {
ultra = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.x86_64-linux;
extraSpecialArgs = { inherit inputs; };
modules = [
./users/ultra/home.nix
( import ./users/ultra/home.nix inputs )
(args: { # https://ayats.org/blog/channels-to-flakes
xdg.configFile."nix/inputs/nixpkgs".source = nixpkgs.outPath;
home.sessionVariables.NIX_PATH = "nixpkgs=${args.config.xdg.configHome}/nix/inputs/nixpkgs$\{NIX_PATH:+:$NIX_PATH}";

View file

@ -194,8 +194,8 @@ in {
# services.openssh.enable = true;
# Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ];
networking.firewall.allowedTCPPorts = [ 21 20 ];
networking.firewall.allowedUDPPorts = [ 21 20 ];
# Or disable the firewall altogether.
# networking.firewall.enable = false;
@ -286,6 +286,21 @@ in {
startWhenNeeded = true;
autoMount = true;
};
# FTP daemon
vsftpd = {
enable = true; # enable the daemon
localUsers = true; # allow local users to use the daemon
# allow anonymous users to log in
anonymousUser = true;
anonymousUserNoPassword = true;
anonymousUploadEnable = false; # Anyone uploading files wouldn't be so secure, would it?
anonymousMkdirEnable = false; # Neither would them creating directories.
writeEnable = false;
};
};
@ -303,6 +318,11 @@ hardware = {
modesetting.enable = true;
};
*/
# bluetooth config
bluetooth = {
enable = true;
};
};
}

View file

@ -1,4 +1,5 @@
{ pkgs, inputs, lib, config, ... }:
inputs:
{ pkgs, lib, config, ... }:
let
nix-software-center = inputs.nix-software-center.packages.${pkgs.system}.nix-software-center;
/*
@ -18,7 +19,6 @@ let
nh = inputs.nix-but-gigachad.packages.${pkgs.system}.default;
in {
imports = [
inputs.nix-doom-emacs.hmModule
inputs.hyprland.homeManagerModules.default
];
# Allow unfree packages
@ -137,17 +137,16 @@ in {
screen
moonlander
amfora
weechat
filezilla
fluffychat
];
};
# ${config.xdg.configFile}."hypr/hyprland.conf".source = ./configs/hyprland/hyprland.conf;
${config.xdg.configFile}."presets/user/everblush.json".source = ./configs/presets/everblush.json;
xdg.configFile."hypr/hyprland.conf".source = ./configs/hyprland/hyprland.conf;
xdg.configFile."presets/user/everblush.json".source = ./configs/presets/everblush.json;
programs = {
home-manager.enable = true;
doom-emacs = {
enable = false; # takes a lot of time to compile
doomPrivateDir = ./doom.d;
};
# fish.enable = true;
# Helix config