adding desktop config

This commit is contained in:
chrisbell committed 2026-10-03 10:46:08 -05:00
commit 3a345929b9
21 files changed
+1131

No files matched your search

+88
View File
@@ -0,0 +1,88 @@
{ config, pkgs, inputs, ... }:
{
imports =
[
./hardware-configuration.nix
inputs.home-manager.nixosModules.default
../../modules/nixos/bspwm.nix
../../modules/nixos/quadro-m1000m.nix
];
# Nix options
nix.settings = {
experimental-features = ["nix-command" "flakes"];
};
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
# Use latest kernel.
boot.kernelPackages = pkgs.linuxPackages_latest;
networking.hostName = "p50"; # Define your hostname.
# Enable networking
networking.networkmanager.enable = true;
# Set your time zone.
time.timeZone = "America/Chicago";
# Select internationalisation properties.
i18n.defaultLocale = "en_US.UTF-8";
i18n.extraLocaleSettings = {
LC_ADDRESS = "en_US.UTF-8";
LC_IDENTIFICATION = "en_US.UTF-8";
LC_MEASUREMENT = "en_US.UTF-8";
LC_MONETARY = "en_US.UTF-8";
LC_NAME = "en_US.UTF-8";
LC_NUMERIC = "en_US.UTF-8";
LC_PAPER = "en_US.UTF-8";
LC_TELEPHONE = "en_US.UTF-8";
LC_TIME = "en_US.UTF-8";
};
# Configure keymap in X11
services.xserver.xkb = {
layout = "us";
variant = "";
};
# Define a user account. Don't forget to set a password with ‘passwd’.
users.users."chris" = {
isNormalUser = true;
description = "chris";
extraGroups = [ "networkmanager" "wheel" ];
packages = with pkgs; [];
};
home-manager = {
useUserPackages = true;
extraSpecialArgs = { inherit inputs; };
users."chris" = import ./home.nix;
};
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
environment.systemPackages = with pkgs; [
vim
wget
helix
nixd
git
fastfetch
btop
];
# Enable the OpenSSH daemon.
services.openssh.enable = true;
# networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ];
system.stateVersion = "26.05"; # Did you read the comment?
}
+31
View File
@@ -0,0 +1,31 @@
# 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" "nvme" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/e313b664-984e-4f55-ad80-388aa39457fc";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/96F9-3011";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
};
swapDevices = [ ];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}
+24
View File
@@ -0,0 +1,24 @@
{ config, pkgs, ... }:
{
home.username = "chris";
home.homeDirectory = "/home/chris";
home.stateVersion = "26.05"; # Please read the comment before changing.
programs.home-manager.enable = true;
imports = [
../../modules/home-manager/defaults.nix
../../modules/home-manager/sxhkd.nix
../../modules/home-manager/terminals/alacritty.nix
../../modules/home-manager/browsers/ugc.nix
../../modules/home-manager/bspwm.nix
../../modules/home-manager/polybar.nix
# ../../modules/home-manager/editors/helix.nix
];
my.defaults = {
terminal = "alacritty";
editor = "hx";
browser = "chromium";
};
}