init test

This commit is contained in:
bckelley
2026-08-14 12:44:07 -04:00
commit 34e86c6585
8 changed files with 271 additions and 0 deletions
Submodule
+1
Submodule config/hypr added at 0c5a13e35b
Submodule
+1
Submodule config/waybar added at ed6e62abf5
+90
View File
@@ -0,0 +1,90 @@
{ config, lib, pkgs, ... }:
{
imports =
[
./hardware-configuration.nix
];
boot.loader.grub.enable = true;
boot.loader.grub.device = "/dev/vda";
boot.loader.grub.useOSProber = true;
networking.hostName = "spencer"; # Define your hostname.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
networking.networkmanager.enable = true;
time.timeZone = "America/Grenada";
services.getty.autologinUser = "bckelley";
programs.hyprland = {
enable = true;
xwayland.enable = true;
withUWSM = true;
};
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";
};
services.printing.enable = true;
services.pulseaudio.enable = false;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
environment.systemPackages = with pkgs; [];
users.users."bckelley" = {
isNormalUser = true;
description = "bckelley";
extraGroups = [ "networkmanager" "wheel" ];
packages = with pkgs; [
git
tree
nushell
lazygit
fastfetch
hyfetch
vscodium
micro
kitty
waybar
hyprpaper
];
};
environment.shells = with pkgs; [ bash fish nushell ];
users.defaultUserShell = pkgs.bash;
programs.fish.enable = true;
programs.bash.enable = true;
programs.firefox.enable = true;
nixpkgs.config.allowUnfree = true;
# services.openssh.enable = true;
# Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether.
# networking.firewall.enable = false;
nix.settings.experimental-features = [ "nix-command" "flakes" ];
system.stateVersion = "26.05"; # Did you read the comment?
}
Generated
+49
View File
@@ -0,0 +1,49 @@
{
"nodes": {
"home-manager": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1785119570,
"narHash": "sha256-Rgs2xKnGLFWQscxUaXX07oyZeuMDOHEbqDOsgliLFGM=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "d4fd24667c8cbef124bb70a20380cab75ec8474d",
"type": "github"
},
"original": {
"owner": "nix-community",
"ref": "release-26.05",
"repo": "home-manager",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1786535285,
"narHash": "sha256-rG5HKMAgAhMgydvKGtco6rqTxRq4EDZQCx9USLvVqYw=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "9f78f44a87948854445dae0b6bf82b2e87e4efb5",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-26.05",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"home-manager": "home-manager",
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}
+33
View File
@@ -0,0 +1,33 @@
{
description = "VM Flake";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-26.05";
home-manager.url = "github:nix-community/home-manager/release-26.05";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = { nixpkgs, home-manager, ... }:
let
lib = nixpkgs.lib;
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
in {
nixosConfigurations = {
spencer = lib.nixosSystem {
inherit system;
modules = [
./configuration.nix
home-manager.nixosModules.home-manager {
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
users.bckelley = import ./home.nix;
# backupFileExtension = "backup";
};
}
];
};
};
};
}
+24
View File
@@ -0,0 +1,24 @@
# 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 + "/profiles/qemu-guest.nix")
];
boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "virtio_pci" "sr_mod" "virtio_blk" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/6bcc6b0e-c62a-478d-bbb8-3584f77c756c";
fsType = "ext4";
};
swapDevices = [ ];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
}
+38
View File
@@ -0,0 +1,38 @@
{ config, pkgs, ... }:
let
myAliases = {
ll = "ls -l";
la = "ls -la";
".." = "cd ..";
"..." = "cd ../..";
"...." = "cd ../../..";
};
in
{
imports = [
./sh.nix
];
home.username = "bckelley";
home.homeDirectory = "/home/bckelley";
home.file.".config/hypr".source = ./config/hypr;
home.file.".config/waybar".source = ./config/waybar;
programs.bash = {
enable = false;
shellAliases = myAliases;
initExtra = ''
export PS1='\[\e[38;5;76m\]\u\[\e[0m\] in \[\e[38;5;32m\]\w\[\e[0m\] \\$ '
'';
profileExtra = ''
if [ -z "$WAYLAND_DISPLAY" ] && [ "$XDG_VTNR" = 1 ]; then
exec uwsm start -S hyprland-uwsm.desktop
fi
exec start-hyprland
'';
};
programs.home-manager.enable = true;
home.stateVersion = "26.05"; # Please read the comment before changing.
}
+35
View File
@@ -0,0 +1,35 @@
{ config, pkgs, ... }:
let
myAliases = {
ll = "ls -l";
la = "ls -la";
".." = "cd ..";
"..." = "cd ../..";
"...." = "cd ../../..";
};
in
{
programs.bash = {
enable = false;
shellAliases = myAliases;
initExtra = ''
export PS1='\[\e[38;5;76m\]\u\[\e[0m\] in \[\e[38;5;32m\]\w\[\e[0m\] \\$ '
'';
profileExtra = ''
if [ -z "$WAYLAND_DISPLAY" ] && [ "$XDG_VTNR" = 1 ]; then
exec uwsm start -S hyprland-uwsm.desktop
fi
exec start-hyprland
'';
};
programs.fish = {
enable = false;
shellAliases = myAliases;
};
#programs.nushell = {
# enable = true;
# shellAliases = myAliases;
#};
}