Compare commits

...

11 commits

Author SHA1 Message Date
Chandler Swift 1182eafec8
Update gitconfig 2024-09-15 21:58:53 -05:00
Chandler Swift 3fc3bd97f3
Add binfmt config for aarch64
This may be able to be refactored once this PR is merged:

https://github.com/NixOS/nixpkgs/pull/334859

This configuration is based on this config:

182ca2c66f/mod/binfmt.nix

linked from this comment:

https://github.com/NixOS/nixpkgs/issues/160300#issuecomment-2156003171
2024-09-15 21:56:08 -05:00
Chandler Swift 08958c0a78
Manage Firefox with home-manager
I'm not exactly sure how to manage profiles; I wasn't able to get this
to work so I just ended up managing profiles manually.
2024-09-15 21:52:27 -05:00
Chandler Swift 6f10416cdd
Add chandler to cdrom group for CD ripping 2024-09-15 20:55:07 -05:00
Chandler Swift 9d5f932269
Enable Ozone for chromium-based apps 2024-09-15 20:54:47 -05:00
Chandler Swift 534c0da01b
Remove no-longer-used sound.enable flag
https://github.com/NixOS/nixpkgs/pull/326262
2024-09-15 20:53:42 -05:00
Chandler Swift a34bc61fe6
Enable atd, for the at command
2024 VBS:

    echo "aplay /home/chandler/vbs/transition.wav" | at 19:57
2024-08-18 17:56:52 -05:00
Chandler Swift d842379e91
Enable plymouth boot
Currently, doesn't have a GUI for LUKS key entry, and isn't flicker-free, which is potential future direction for improvement.
2024-08-18 17:55:31 -05:00
Chandler Swift 3e1c66d163
Add Discord to oscar 2024-08-05 21:03:33 -05:00
Chandler Swift 07bd6b1e33
Add steam 2024-08-05 20:44:38 -05:00
Chandler Swift c8036f9a55
Add Factorio client to oscar 2024-08-05 20:43:13 -05:00

View file

@ -2,7 +2,7 @@
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{ config, pkgs, ... }:
{ config, pkgs, lib, ... }:
{
imports =
@ -12,6 +12,14 @@
<home-manager/nixos>
];
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
"factorio-alpha"
"steam"
"steam-original"
"steam-run"
"discord"
];
# https://discourse.nixos.org/t/github-strategies-for-configuration-nix/1983/14
nix.nixPath = [
"nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos"
@ -23,6 +31,16 @@
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.plymouth.enable = true;
boot.plymouth.theme = "breeze";
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
boot.binfmt.registrations.aarch64-linux = {
interpreter = "${pkgs.pkgsStatic.qemu-user.override { hostCpuTargets = ["aarch64-linux-user"]; }}/bin/qemu-aarch64";
wrapInterpreterInShell = false;
fixBinary = true;
};
boot.initrd.luks.devices."luks-ca2fdf0b-d385-498c-9f7d-f58368a65fd4".device = "/dev/disk/by-uuid/ca2fdf0b-d385-498c-9f7d-f58368a65fd4";
networking.hostName = "oscar"; # Define your hostname.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
@ -68,6 +86,8 @@
# Enable CUPS to print documents.
services.printing.enable = true;
services.atd.enable = true;
services.hardware.bolt.enable = true;
virtualisation.docker.enable = true;
@ -75,7 +95,6 @@
hardware.bluetooth.enable = true;
# Enable sound with pipewire.
sound.enable = true;
hardware.pulseaudio.enable = false;
security.rtkit.enable = true;
services.pipewire = {
@ -94,13 +113,14 @@
# Enable touchpad support (enabled default in most desktopManager).
# services.xserver.libinput.enable = true;
environment.sessionVariables.NIXOS_OZONE_WL = "1";
# Define a user account. Don't forget to set a password with passwd.
users.users.chandler.isNormalUser = true;
users.users.chandler.description = "Chandler Swift";
users.users.chandler.extraGroups = [ "networkmanager" "wheel" "dialout" ];
users.users.chandler.extraGroups = [ "networkmanager" "wheel" "dialout" "cdrom" ];
home-manager.users.chandler = { pkgs, ... }: {
home.packages = with pkgs; [
firefox
kate
prismlauncher
libreoffice-qt
@ -137,6 +157,8 @@
url."ssh://aur@aur.archlinux.org/".pushInsteadOf = "aur:";
url."ssh://git@github.com/ChandlerSwift/".insteadOf = "gh:";
push.autoSetupRemote = true;
rebase.autosquash = true;
fetch.parallel = 0; # "some reasonable default"
};
ignores = [
"*.kate-swp"
@ -152,6 +174,18 @@
signing.key = null; # "let GnuPG decide what signing key to use depending on commit's author"
};
programs.firefox = {
enable = true;
# profiles = {
# default = {
# id = 0;
# name = "default";
# isDefault = true;
# search.default = "DuckDuckGo";
# };
# };
};
home.stateVersion = "23.11";
};
@ -160,6 +194,8 @@
environment.systemPackages = with pkgs; [
# vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
# wget
discord
factorio
];
# Some programs need SUID wrappers, can be configured further or are
@ -172,6 +208,8 @@
programs.ssh.startAgent = true;
programs.steam.enable = true;
# List services that you want to enable:
services.fprintd.enable = true;