Skip to content

Commit

Permalink
Auto lint/format
Browse files Browse the repository at this point in the history
  • Loading branch information
glwbr authored and github-actions[bot] committed May 28, 2024
1 parent 120657d commit 1db22c4
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 48 deletions.
1 change: 1 addition & 0 deletions home/software/terminal/tools/gpg.nix
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,4 @@
};
}
# vim: filetype=nix

40 changes: 22 additions & 18 deletions hosts/zion/hardware-configuration.nix
Original file line number Diff line number Diff line change
@@ -1,29 +1,33 @@
# Do not modify this file! It was generated by ‘nixos-generate-config’
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }:

{
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
config,
lib,
pkgs,
modulesPath,
...
}: {
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];

boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" "rtsx_usb_sdmmc" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
boot.initrd.availableKernelModules = ["xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" "rtsx_usb_sdmmc"];
boot.initrd.kernelModules = [];
boot.kernelModules = ["kvm-intel"];
boot.extraModulePackages = [];

fileSystems."/" =
{ device = "/dev/disk/by-uuid/97d8b441-42f5-4609-8c8c-05ec4315a0e8";
fsType = "ext4";
};
fileSystems."/" = {
device = "/dev/disk/by-uuid/97d8b441-42f5-4609-8c8c-05ec4315a0e8";
fsType = "ext4";
};

fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/E1AD-6788";
fsType = "vfat";
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/E1AD-6788";
fsType = "vfat";
};

swapDevices = [ ];
swapDevices = [];

# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's
Expand Down
65 changes: 35 additions & 30 deletions system/services/samba.nix
Original file line number Diff line number Diff line change
@@ -1,33 +1,38 @@
{ config, lib, pkgs, ... }: {
services = {
samba = {
package = pkgs.samba4Full;
enable = true;
openFirewall = true;
shares.testshare = {
# !TODO: get the current user
path = "/home/glwbr/";
writable = "true";
comment = "This is a test!";
};
extraConfig = ''
server smb encrypt = required
# ^^ Note: Breaks `smbclient -L <ip/host> -U%` by default, might require the client to set `client min protocol`?
server min protocol = SMB3_00
'';
};
avahi = {
publish.enable = true;
publish.userServices = true;
# ^^ Needed to allow samba to automatically register mDNS records (without the need for an `extraServiceFile`
#nssmdns4 = true;
enable = true;
openFirewall = true;
};
samba-wsdd = {
# This enables autodiscovery on windows since SMB1 (and thus netbios) support was discontinued
enable = true;
openFirewall = true;
{
config,
lib,
pkgs,
...
}: {
services = {
samba = {
package = pkgs.samba4Full;
enable = true;
openFirewall = true;
shares.testshare = {
# !TODO: get the current user
path = "/home/glwbr/";
writable = "true";
comment = "This is a test!";
};
extraConfig = ''
server smb encrypt = required
# ^^ Note: Breaks `smbclient -L <ip/host> -U%` by default, might require the client to set `client min protocol`?
server min protocol = SMB3_00
'';
};
avahi = {
publish.enable = true;
publish.userServices = true;
# ^^ Needed to allow samba to automatically register mDNS records (without the need for an `extraServiceFile`
#nssmdns4 = true;
enable = true;
openFirewall = true;
};
samba-wsdd = {
# This enables autodiscovery on windows since SMB1 (and thus netbios) support was discontinued
enable = true;
openFirewall = true;
};
};
}

0 comments on commit 1db22c4

Please sign in to comment.