1
0
forked from extern/nix-config
Commit Graph

2173 Commits

Author SHA1 Message Date
Donovan Glover
505e35edcd
containers: Use more detailed common config
All containers can inherit a lot of the same settings since the main
feature is separating applications from the host and each other.
2023-06-22 12:19:03 -04:00
Donovan Glover
c6e3513a5d
meta: Use packages module
May or may not separate or split this later.
2023-06-22 12:09:26 -04:00
Donovan Glover
ce4bd8f10f
chore: Update packages 2023-06-22 11:57:03 -04:00
Donovan Glover
2f5a3f184a
containers(gui): Remove unused packages 2023-06-22 11:55:52 -04:00
Donovan Glover
1eb77fd467
modules: Add system 2023-06-22 11:54:12 -04:00
Donovan Glover
0aaba9a591
meta: Remove variables from containers
Modules solve the variable problem in a nicer way.
2023-06-22 11:44:35 -04:00
Donovan Glover
7316153e37
chore: Formatting 2023-06-22 11:30:32 -04:00
Donovan Glover
8ffb196c0b
meta: Don't use variables
The previous commit didn't actually work, and I shouldn't need to
change the variables often, so it's much simpler to not have them.

In the event that I do need to change something, rg and sd should get
the job done well.
2023-06-22 11:10:17 -04:00
Donovan Glover
2f056d1e72
meta: Migrate to config.variables 2023-06-22 10:42:23 -04:00
Donovan Glover
2ea920c0c0
xdg-user-dirs: Use config.variables.username
Note that I may change this to simply config.username in the future
depending on how many variables I actually need.
2023-06-22 10:20:58 -04:00
Donovan Glover
99d2913b41
nix: Remove one-off variables
Don't use variables for things that only get defined in one place.
2023-06-22 10:17:49 -04:00
Donovan Glover
4d8ce87fb1
meta: Import hardware
Which hardware can be determined from the default.nix at a later date if
needed.
2023-06-22 10:16:38 -04:00
Donovan Glover
2d808e6162
nix: Begin migration to options
No need to import a variables file since all modules have access to the
options defined in all other modules.
2023-06-22 10:10:55 -04:00
Donovan Glover
afd6cce13c
meta: Remove nix-gaming
No longer needed since I understand how to implement this myself now.
2023-06-22 09:53:29 -04:00
Donovan Glover
1dcf95a7eb
pipewire: Inline low latency module
This removes the nix-gaming dependency to achieve low latency.
2023-06-22 09:51:15 -04:00
Donovan Glover
6d5365f2b3
packages: Remove osu-stable
Not needed anymore since I'd rather manage my own osu! files.
2023-06-22 09:43:29 -04:00
Donovan Glover
59eb54e1e5
nix: Remove nix-gaming cache
No longer needed since I plan to just use the wine from nixpkgs.
2023-06-22 09:32:35 -04:00
Donovan Glover
7b79bbae70
meta: Remove old osu container
No longer needed since I no longer intend to use nix-gaming. May add
another container later without it.
2023-06-22 09:27:44 -04:00
Donovan Glover
4aa7392350
chore: Update flake inputs 2023-06-22 09:18:39 -04:00
Donovan Glover
7a5ceee759
meta: Remove hypr-contrib
Not needed anymore since grimblast is now in my personal nixpkgs branch.
2023-06-22 09:17:03 -04:00
Donovan Glover
0c0d455a6a
flake.nix: Remove variables
This configuration is specifically intended for x86_64-linux and likely
wouldn't work on aarch64-linux. Additionally, the configuration name may
be different than the hostname if desired.
2023-06-22 08:37:59 -04:00
Donovan Glover
3a6cd7e60d
treefmt: Exclude hardware directory 2023-06-22 08:00:13 -04:00
Donovan Glover
ae1af336ba
hyprland: Allow resizing osu! windows
It seems like all wine windows may be broken, although there doesn't
seem to be an easy way to allow the resizing of all wine windows without
affecting other windows. In practice this *shouldn't* matter much,
however.
2023-06-22 07:58:23 -04:00
Donovan Glover
3230a5ec1e
meta: Use hardware directory for hardware configs
This makes it easier to auto-complete home/ and hardware/ with tab,
versus having to type 3 letters to auto-complete hosts/.
2023-06-22 07:57:00 -04:00
Donovan Glover
217e7b0f06
hardware-configuration: Undo formatting
To make life simpler, not modifying the hardware-configuration.nix in
any way makes it easier to see git diffs.
2023-06-22 07:46:54 -04:00
Donovan Glover
4083348a3b
meta: Move up hardware-configuration import 2023-06-22 07:42:53 -04:00
Donovan Glover
79f4ae0296
tests: Add tests for containers and specializations 2023-06-22 07:26:19 -04:00
Donovan Glover
92f057929a
meta: Flatten tests directory 2023-06-22 07:25:13 -04:00
Donovan Glover
82739571c6
waybar: Change color if fullscreen 2023-06-22 07:18:02 -04:00
Donovan Glover
3283aebbd8
modules: Add wine
Useful to remember why I set this option.
2023-06-22 07:17:01 -04:00
Donovan Glover
355e58c76e
hyprland: Disable autoreload
Not needed since autoreload doesn't work anyway with home-manager.
2023-06-22 07:15:47 -04:00
Donovan Glover
71b23e9bf3
modules: Add cdemu
NixOS makes this so easy.
2023-06-22 06:55:54 -04:00
Donovan Glover
0fd8411d36
meta: Use default.nix
Makes things simpler.
2023-06-22 05:36:48 -04:00
Donovan Glover
7fb0c15255
networking: Remove allowedTCPPorts
Not needed for now, although a good reference for the future.
2023-06-21 11:43:09 -04:00
Donovan Glover
a75c20db5b
containers(wine): Switch to wineWowPackages.stagingFull
wineWowPackages.stagingFull has better compatibility than waylandFull
and runs more applications without black screens. The difference between
stagingFull and wine-ge is that wine-ge doesn't crash when encountering
an error like ELFCLASS64 and usually opens windows larger and
fullscreen-like.

The reason stagingFull is preferred over wine-ge in this case is that
stagingFull is a part of nixpkgs and doesn't suffer from a black screen
bug when a hidden menu pushes the content in the window viewport down.

Additionally, although wine-ge avoids crashes in more cases, this
results in applications running that may or may not fully work, and
sometimes results in black screens where there should be graphics
instead.
2023-06-21 11:39:57 -04:00
Donovan Glover
e0f1521899
containers(wine): Use wine-ge
This was a different wine version that let me achieve better
compatibility with Unity3D programs. Although it doesn't crash when
encountering a ELFCLASS64 error, for example, it does have other issues
like a black screen flash when opening a hidden menu (the kind that
become available with the alt key on a keyboard).
2023-06-21 11:23:17 -04:00
Donovan Glover
ba686839ec
meta: Remove vmware
Now that I have figured out how to get all the Windows applications I
previously used working under Wine (including those that didn't work in
the virtual machine after trying to manually install dependencies) there
is no reason for me to use vmware.

Using NixOS for Windows applications allows them to be used with
systemd-nspawn containers, thus achieving things like isolation, private
networks, impermanence, and more. All of this without having to maintain
a separate operating system install.
2023-06-21 03:44:42 -04:00
Donovan Glover
b05eecbdbf
neovim: Add pkg-config
Some programs require this in order to compile successfully.
2023-06-21 03:37:07 -04:00
Donovan Glover
43186c630e
locale: Fix import 2023-06-21 03:32:56 -04:00
Donovan Glover
d226c85639
meta: Move remaining sessionVariables to fish 2023-06-21 03:32:35 -04:00
Donovan Glover
741f40ce56
networking: Remove forwardPorts
No ports need to be forwarded right now, however this is a good example
for when ports need to be forwarded from a container to the host in the
future.
2023-06-21 03:31:33 -04:00
Donovan Glover
0cd00a7734
chore: Formatting 2023-06-21 03:09:22 -04:00
Donovan Glover
2b415d3bd4
flake.nix: Inputs before outputs 2023-06-21 02:41:44 -04:00
Donovan Glover
5694bbc450
nix: Modularize locale and timezone 2023-06-21 02:35:43 -04:00
Donovan Glover
7760a7028b
containers(dev): Add htop
Might make htop available to all containers in the future.
2023-06-20 18:52:13 -04:00
Donovan Glover
db22c24905
containers(dev): Add nix
Useful for running nix shells.
2023-06-20 18:51:51 -04:00
Donovan Glover
5b21e36969
packages: Add poppler_utils
Useful for converting images in pdfs to actual images.
2023-06-20 18:43:57 -04:00
Donovan Glover
aa15dc00ee
containers: Use separate default.nix 2023-06-20 18:42:56 -04:00
Donovan Glover
da70c0293b
overlays(waybar): Use latest commit
Adds support for https://github.com/Alexays/Waybar/issues/2211
2023-06-20 14:50:22 -04:00
Donovan Glover
ac801ad5bf
fish: Add abbreviation for git branch --delete 2023-06-20 12:04:28 -04:00