From 3e6e706f3be9ff632cbc00a209cf3295d1aaa2b4 Mon Sep 17 00:00:00 2001 From: Alex Stan <90788596+Ultra980@users.noreply.github.com> Date: Mon, 14 Aug 2023 16:23:18 +0300 Subject: [PATCH] bluetooth Signed-off-by: Alex Stan <90788596+Ultra980@users.noreply.github.com> --- flake.nix | 3 +-- hosts/titan/configuration.nix | 24 ++++++++++++++++++++++-- users/ultra/home.nix | 15 +++++++-------- 3 files changed, 30 insertions(+), 12 deletions(-) diff --git a/flake.nix b/flake.nix index 489c15c..4deadff 100644 --- a/flake.nix +++ b/flake.nix @@ -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}"; diff --git a/hosts/titan/configuration.nix b/hosts/titan/configuration.nix index fb37d19..b4ac24c 100644 --- a/hosts/titan/configuration.nix +++ b/hosts/titan/configuration.nix @@ -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; + }; }; } diff --git a/users/ultra/home.nix b/users/ultra/home.nix index 2b3e709..d540c51 100644 --- a/users/ultra/home.nix +++ b/users/ultra/home.nix @@ -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