added goober, say hello to goober

This commit is contained in:
chloe 2024-10-20 16:21:47 +02:00
parent 259aa1dd5e
commit 0035f0f1fa
36 changed files with 1708 additions and 269 deletions

View file

@ -29,6 +29,8 @@ in
};
users.users.${username}.initialHashedPassword = "$y$j9T$s4isXqWcg4N8TEPjmj0fD/$zog2cpUwstnvwDnQsFmH3br/WAeD2Uu/L7ePr00cKkA";
environment.variables.EDITOR = "nvim";
services.nginx = {
@ -63,4 +65,5 @@ in
clientID = "";
keyFile = "";
};
};
}

View file

@ -0,0 +1,18 @@
{config, ...}: {
services.znc = {
enable = true;
mutable = false; # Overwrite configuration set by ZNC from the web and chat interfaces.
useLegacyConfig = false; # Turn off services.znc.confOptions and their defaults.
openFirewall = true; # ZNC uses TCP port 5000 by default.
config = {
Listener = {
"Motd" = "welcome to hypervirtual's irc bouncer - using znc";
"SSLProtocols" = "-SSLv2 -SSLv3 -TLSv1 +TLSv1.1 +TLSv1.2"
};
;
};
};
}

View file

@ -0,0 +1,24 @@
{config, ...}: {
services.znc.config.User."computemadness_" = {
Admin = true;
Nick = "computemadness_";
AltNick = "kumputemadness_";
LoadModule = [ "chanserver" "controlpanel" ];
Network = {
libera = {
Server = "irc.libera.chat +6697";
LoadModule = "simple_away";
Chan = {
"#nixos" = {Detached = false;};
}
};
koshkairc = {
Server = "irc.koshka.love +6697";
Chan = {
"#" = {Detached = false;};
"#speakez" = {Detached = false;};
};
};
};
};
}

View file

@ -1,5 +1,131 @@
{ config, ... }:
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page, on
# https://search.nixos.org/options and in the NixOS manual (`nixos-help`).
{ config, lib, pkgs, inputs, ... }:
{
services.flatpak.enable = true;
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
../../features/client/tailscale.nix
../../features/client/sway.nix
./features/default.nix
];
nixpkgs.config.allowUnfree = true;
boot.loader = {
efi.canTouchEfiVariables = true;
grub = {
enable = true;
devices = ["nodev"];
efiSupport = true;
useOSProber = true;
};
};
time.hardwareClockInLocalTime = true;
networking.hostName = "goober"; # Define your hostname.
networking.networkmanager.enable = true; # Easiest to use and most distros use this by default.
# Set your time zone.
time.timeZone = "Europe/Paris";
# Select internationalisation properties.
i18n.defaultLocale = "fr_FR.UTF-8";
console = {
font = "Lat2-Terminus16";
keyMap = "fr";
# useXkbConfig = true; # use xkb.options in tty.
};
# mount compression
fileSystems = {
"/".options = ["compress=zstd"];
"/home".options = ["compress=zstd"];
"/nix".options = ["compress=zstd" "noatime"];
#"/swap".options = ["compress=zstd"];
};
services.btrfs.autoScrub.enable = true;
services.btrfs.autoScrub.interval = "weekly";
nix.settings.experimental-features = ["nix-command" "flakes"];
# Configure keymap in X11
# services.xserver.xkb.layout = "us";
# services.xserver.xkb.options = "eurosign:e,caps:escape";
# Enable CUPS to print documents.
services.printing.enable = true;
# Enable touchpad support (enabled default in most desktopManager).
# services.libinput.enable = true;
# Define a user account. Don't forget to set a password with passwd.
users.users.harry123 = {
isNormalUser = true;
extraGroups = [ "wheel" ]; # Enable sudo for the user.
packages = with pkgs; [
firefox
tailscale
mpv
logisim-evolution
];
};
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = with pkgs; [
wget
dwl
git
tmux
mako
grim
slurp
wl-clipboard
];
# Some programs need SUID wrappers, can be configured further or are
# started in user sessions.
programs.mtr.enable = true;
programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;
};
services.udisks2.enable = true ;
# List services that you want to enable:
# Enable the OpenSSH daemon.
# services.openssh.enable = true;
# Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether.
# networking.firewall.enable = false;
# This option defines the first version of NixOS you have installed on this particular machine,
# and is used to maintain compatibility with application data (e.g. databases) created on older NixOS versions.
#
# Most users should NEVER change this value after the initial install, for any reason,
# even if you've upgraded your system to a new NixOS release.
#
# This value does NOT affect the Nixpkgs version your packages and OS are pulled from,
# so changing it will NOT upgrade your system - see https://nixos.org/manual/nixos/stable/#sec-upgrading for how
# to actually do that.
#
# This value being lower than the current NixOS release does NOT mean your system is
# out of date, out of support, or vulnerable.
#
# Do NOT change this value unless you have manually inspected all the changes it would make to your configuration,
# and migrated your data accordingly.
#
# For more information, see `man configuration.nix` or https://nixos.org/manual/nixos/stable/options#opt-system.stateVersion .
system.stateVersion = "24.05"; # Did you read the comment?
}

View file

@ -0,0 +1,6 @@
{config, ...}: {
imports = [
./software/default.nix
./hardware/default.nix
];
}

View file

@ -0,0 +1,18 @@
{config, pkgs, ...}: {
hardware.bluetooth.enable = true; # enables support for Bluetooth
hardware.bluetooth.powerOnBoot = true; # powers up the default Bluetooth controller on boot
services.blueman.enable = true;
systemd.user.services.mpris-proxy = {
description = "Mpris proxy";
after = [ "network.target" "sound.target" ];
wantedBy = [ "default.target" ];
serviceConfig.ExecStart = "${pkgs.bluez}/bin/mpris-proxy";
};
hardware.bluetooth.settings = {
General = {
Experimental = true;
};
};
}

View file

@ -0,0 +1,7 @@
{config, ...}:
{
imports = [
./bluetooth.nix
./pipewire.nix
];
}

View file

@ -0,0 +1,25 @@
{config, ...}:
{
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
# If you want to use JACK applications, uncomment this
jack.enable = true;
wireplumber.extraConfig."10-bluez" = {
"monitor.bluez.properties" = {
"bluez5.enable-sbc-xq" = true;
"bluez5.enable-msbc" = true;
"bluez5.enable-hw-volume" = true;
"bluez5.roles" = [
"hsp_hs"
"hsp_ag"
"hfp_hf"
"hfp_ag"
];
};
};
};
}

View file

@ -0,0 +1,8 @@
{config, ...}:
{
imports = [
./neovim.nix
./flatpak.nix
./discord.nix
];
}

View file

@ -0,0 +1,9 @@
{config, pkgs, ...}:
{
environment.systemPackages = with pkgs; [
(discord.override {
withOpenASAR = true; # can do this here too
withVencord = true;
})
];
}

View file

@ -0,0 +1,15 @@
{config, ...}: {
services.flatpak.enable = true;
services.flatpak.packages = [
"io.github.zen_browser.zen"
"dev.vencord.Vesktop"
"com.unicornsonlsd.finamp"
];
services.flatpak.update.onActivation = true;
services.flatpak.update.auto = {
enable = true;
onCalendar = "weekly"; # Default value
};
}

View file

@ -0,0 +1,11 @@
{inputs, config, pkgs, ...}: {
environment.systemPackages = with pkgs; [
inputs.neovim-nightly-overlay.packages.${pkgs.system}.default
];
programs.neovim = {
enable = true;
package = inputs.neovim-nightly-overlay.packages.${pkgs.system}.default;
defaultEditor = true;
};
}

View file

@ -0,0 +1,53 @@
# 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")
];
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" "sr_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" "wl" ];
boot.extraModulePackages = [ config.boot.kernelPackages.broadcom_sta ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/4efbf111-4cbb-4e1e-b3ee-dc3fca1f6f4a";
fsType = "btrfs";
options = [ "subvol=root" ];
};
fileSystems."/home" =
{ device = "/dev/disk/by-uuid/4efbf111-4cbb-4e1e-b3ee-dc3fca1f6f4a";
fsType = "btrfs";
options = [ "subvol=home" ];
};
fileSystems."/nix" =
{ device = "/dev/disk/by-uuid/4efbf111-4cbb-4e1e-b3ee-dc3fca1f6f4a";
fsType = "btrfs";
options = [ "subvol=nix" ];
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/6946-B7B0";
fsType = "vfat";
options = [ "fmask=0022" "dmask=0022" ];
};
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
# still possible to use this option, but it's recommended to use it in conjunction
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true;
# networking.interfaces.enp0s20f0u2c4i2.useDHCP = lib.mkDefault true;
# networking.interfaces.enp2s0.useDHCP = lib.mkDefault true;
# networking.interfaces.wlp3s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}