U6GSJX5ZG4O7R3XO4CA7G62TTDE22HRZ2LL7EQKLQSYCHCAA3CQQC
PS2VFJMZVN77RHZFVUVD2DA3MZNMXYPHT6XRHW2EUTZRGLAXF4YQC
A4YNQVE34SZHRGN2HGBT2M5L7ROU4D5HFHTYUSVZHKTXD2PLM5VQC
DBKTB5YP5SZ2XB4DNPHSR33PEBYOMBR4RADZGJ6H7TZQQ42BYM5AC
GKN6O4IDWX2GY56HZDYCSMWVKV2VDRB76TWZL4Q63A6EFVCAGKKAC
4PEXC6EE4FNTPUYT64XDSOD6X5IVDY3Y2QDKYTSHEBOYS4JATQTQC
EWSZ2QIQQBG2EOVAU2IDFXQXE7D3PNFX3HE5LV2YPXEZONHM4MTQC
WBQMAQLSGL2ZMUGJAJHTHF2DWAYL3LQO56VM7PMGNHSLHUNGZPJQC
WCNLUVUGDQ55KUE5TTZAJHVPQ5EOG5SPNUMDNMAZ7ENAQV7D4XYQC
# FIXME
# FIXME
# TODO this file is super rough and very specific
# FIXME
# FIXME
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, lib, ... }:
users.users.chris = {
isNormalUser = true;
extraGroups = [ "wheel" "networkmanager" ];
shell = pkgs.zsh;
};
environment.systemPackages = with pkgs; [
git
nix-prefetch-scripts
neovim
networkmanagerapplet
which
];
boot.initrd.luks.devices.root.device = primaryDisk;
networking.hostName = computerName;
# Set your time zone.
time.timeZone = "America/Chicago";
# The global useDHCP flag is deprecated, therefore explicitly set to false here.
# Per-interface useDHCP will be mandatory in the future, so this generated config
# replicates the default behaviour.
networking.useDHCP = false;
# Select internationalisation properties.
i18n.defaultLocale = "en_US.UTF-8";
console = {
font = "Lat2-Terminus16";
keyMap = "us";
};
# #############
# Enable sound.
# #############
#
# these are disabled in favor of PipeWire
# https://nixos.wiki/wiki/PipeWire
# #######################################
sound.enable = false;
hardware.pulseaudio.enable = false;
# #######################################
security.rtkit.enable = true; # rtkit is optional but recommended
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;
# use the example session manager (no others are packaged yet so this is enabled by default,
# no need to redefine it in your config for now)
# media-session.enable = true;
#
media-session.config.bluez-monitor.rules = [
{
# Matches all cards
matches = [{ "device.name" = "~bluez_card.*"; }];
actions = {
"update-props" = {
"bluez5.reconnect-profiles" = [ "hfp_hf" "hsp_hs" "a2dp_sink" ];
# mSBC is not expected to work on all headset + adapter combinations.
"bluez5.msbc-support" = true;
# SBC-XQ is not expected to work on all headset + adapter combinations.
"bluez5.sbc-xq-support" = true;
};
};
}
{
matches = [
# Matches all sources
{ "node.name" = "~bluez_input.*"; }
# Matches all outputs
{ "node.name" = "~bluez_output.*"; }
];
actions = {
"node.pause-on-idle" = false;
};
}
];
};
hardware.bluetooth.enable = true;
hardware.bluetooth.hsphfpd.enable = true;
# Enable CUPS to print documents.
# services.printing.enable = true;
programs.sway.enable = true;
services.blueman.enable = true;
services.openssh.enable = true;
services.greetd = {
enable = true;
settings = {
default_session = {
command = "${lib.makeBinPath [pkgs.greetd.tuigreet] }/tuigreet --time --cmd sway";
user = "greeter";
};
};
};
{ config, pkgs, lib, ... }:
let
groups = [
"networkmanager"
"wheel"
];
in
{
users.users = {
chris = {
isNormalUser = true;
extraGroups = groups;
shell = pkgs.zsh;
};
chris-focus = {
isNormalUser = true;
extraGroups = groups;
shell = pkgs.zsh;
};
};
}
# FIXME
# FIXME
# TODO this file is super rough and very specific
# FIXME
# FIXME
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
# decrypt the root volume
boot.initrd.luks.devices = {
root = {
device = "/dev/sda2";
preLVM = true;
};
};
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
networking.hostName = "thelio-nixos";
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
time.timeZone = "America/Chicago";
# The global useDHCP flag is deprecated, therefore explicitly set to false here.
# Per-interface useDHCP will be mandatory in the future, so this generated config
# replicates the default behaviour.
networking.useDHCP = false;
networking.wireless.interfaces = [ "wlp6s0" ];
# Configure network proxy if necessary
# networking.proxy.default = "http://user:password@proxy:port/";
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
# Select internationalization properties.
i18n.defaultLocale = "en_US.UTF-8";
console = {
font = "Lat2-Terminus16";
keyMap = "us";
};
# Enable CUPS to print documents.
# services.printing.enable = true;
# #############
# Enable sound.
# #############
#
# these are disabled in favor of PipeWire
# https://nixos.wiki/wiki/PipeWire
# #######################################
sound.enable = false;
hardware.pulseaudio.enable = false;
# #######################################
security.rtkit.enable = true; # rtkit is optional but recommended
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;
# use the example session manager (no others are packaged yet so this is enabled by default,
# no need to redefine it in your config for now)
# media-session.enable = true;
#
media-session.config.bluez-monitor.rules = [
{
# Matches all cards
matches = [{ "device.name" = "~bluez_card.*"; }];
actions = {
"update-props" = {
"bluez5.reconnect-profiles" = [ "hfp_hf" "hsp_hs" "a2dp_sink" ];
# mSBC is not expected to work on all headset + adapter combinations.
"bluez5.msbc-support" = true;
# SBC-XQ is not expected to work on all headset + adapter combinations.
"bluez5.sbc-xq-support" = true;
};
};
}
{
matches = [
# Matches all sources
{ "node.name" = "~bluez_input.*"; }
# Matches all outputs
{ "node.name" = "~bluez_output.*"; }
];
actions = {
"node.pause-on-idle" = false;
};
}
];
};
hardware.bluetooth.enable = true;
hardware.bluetooth.hsphfpd.enable = true;
users.users.chris = {
isNormalUser = true;
extraGroups = [ "wheel" ];
shell = pkgs.zsh;
};
environment.systemPackages = with pkgs; [
git
nix-prefetch-scripts
neovim
which
];
programs.sway.enable = true;
hardware.opengl = {
enable = true;
extraPackages = with pkgs; [ amdvlk rocm-opencl-icd ];
driSupport = true;
};
system.autoUpgrade = {
enable = true;
allowReboot = true;
};
services.blueman.enable = true;
services.openssh.enable = true;
services.greetd = {
enable = true;
settings = {
default_session = {
command = "${lib.makeBinPath [pkgs.greetd.tuigreet] }/tuigreet --time --cmd sway";
user = "greeter";
};
};
};
{ config, pkgs, lib, ... }:
{
# #############
# Enable sound.
# #############
#
# these are disabled in favor of PipeWire
# https://nixos.wiki/wiki/PipeWire
# #######################################
sound.enable = false;
hardware.pulseaudio.enable = false;
# #######################################
security.rtkit.enable = true; # rtkit is optional but recommended
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;
# use the example session manager (no others are packaged yet so this is enabled by default,
# no need to redefine it in your config for now)
# media-session.enable = true;
#
media-session.config.bluez-monitor.rules = [
{
# Matches all cards
matches = [{ "device.name" = "~bluez_card.*"; }];
actions = {
"update-props" = {
"bluez5.reconnect-profiles" = [ "hfp_hf" "hsp_hs" "a2dp_sink" ];
# mSBC is not expected to work on all headset + adapter combinations.
"bluez5.msbc-support" = true;
# SBC-XQ is not expected to work on all headset + adapter combinations.
"bluez5.sbc-xq-support" = true;
};
};
}
{
matches = [
# Matches all sources
{ "node.name" = "~bluez_input.*"; }
# Matches all outputs
{ "node.name" = "~bluez_output.*"; }
];
actions = {
"node.pause-on-idle" = false;
};
}
];
};
# bluetooth config is related to sound right? 😀👍
hardware.bluetooth.enable = true;
hardware.bluetooth.hsphfpd.enable = true;
services.blueman.enable = true;
}
{ config, pkgs, lib, ... }:
{
virtualisation.podman.enable = true;
environment.systemPackages = with pkgs; [
podman-compose
];
}
{ config, pkgs, lib, ... }:
{
networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
# The global useDHCP flag is deprecated, therefore explicitly set to false here.
# Per-interface useDHCP will be mandatory in the future, so this generated config
# replicates the default behaviour.
networking.useDHCP = false;
}
{ config, pkgs, lib, ... }:
{
# puts systemd init logs on tty1
# so that tuigreet and systemd logs don't clobber each other
boot.kernelParams = [
"console=tty1"
];
services.greetd = {
vt = 2; # on tty 2 cause systemd logs are on tty 1
enable = true;
settings = {
default_session = {
command = "${lib.makeBinPath [pkgs.greetd.tuigreet] }/tuigreet --time --cmd sway";
user = "greeter";
};
};
};
}
{ config, pkgs, lib, ... }:
{
nix.binaryCaches = [ "https://cache.nixos.org/" ];
time.timeZone = "America/Chicago";
hardware.opengl = {
enable = true;
extraPackages = with pkgs; [ amdvlk rocm-opencl-icd ];
driSupport = true;
};
system.autoUpgrade = {
enable = true;
allowReboot = true;
};
services.openssh.enable = true;
# Enable CUPS to print documents.
services.printing.enable = true;
# Select internationalization properties.
i18n.defaultLocale = "en_US.UTF-8";
console = {
font = "Lat2-Terminus16";
keyMap = "us";
};
environment.systemPackages = with pkgs; [
git
nix-prefetch-scripts
neovim
which
];
programs.sway = {
enable = true;
wrapperFeatures.gtk = true;
};
# decrypt the root volume
boot.initrd.luks.devices.root.preLVM = true;
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
}