Commit Graph

1902 Commits

Author SHA1 Message Date
Donovan Glover
393e2cb241
nix: Use nix-daemon to optimize store
This *shouldn't* have a negative impact on performance, and avoids
having to remember to optimize the store periodically.
2023-06-06 08:16:27 -04:00
Donovan Glover
41571e4354
variables: Add locale 2023-06-06 08:14:52 -04:00
Donovan Glover
c59387bb1f
neovim: Close tree with QuitPre
This fixes an issue where neovim would automatically close when opening
it with a directory.
2023-06-06 07:50:37 -04:00
Donovan Glover
02dd4540e5
neovim: Focus tree when empty buffer 2023-06-06 07:40:16 -04:00
Donovan Glover
cf6064e500
neovim: Toggle tree with <leader>a
To switch between the tree and the file being edited, use <leader>;
2023-06-06 07:27:32 -04:00
Donovan Glover
f0867c039e
neovim: Open tree by default 2023-06-06 07:27:04 -04:00
Donovan Glover
c588b3a0d8
neovim: Close tree if only buffer 2023-06-06 07:18:59 -04:00
Donovan Glover
3878a636d9
nix: Remove unused argument 2023-06-06 07:14:46 -04:00
Donovan Glover
198ed44737
src: Add stateVersion to variables 2023-06-06 05:15:41 -04:00
Donovan Glover
0eadd3469b
meta: Use separate directories for each overlay 2023-06-06 05:03:29 -04:00
Donovan Glover
fc8b241f6e
packages: Use waybar from nixpkgs 2023-06-06 04:44:30 -04:00
Donovan Glover
e907fe26a3
chore: Update flake inputs 2023-06-06 04:43:23 -04:00
Donovan Glover
7265e57c9d
alejandra: Use overlay to remove ads 2023-06-05 23:24:24 -04:00
Donovan Glover
7e38c259fa
meta: Replace joshuto package with overlay
This actually took *forever*, but now that I know how to write nixpkgs
overlays, any future ones I write should be relatively straight-forward.
2023-06-05 23:07:36 -04:00
Donovan Glover
a0dae2344d
nix: Use hosts directory
This may be useful if I want to try NixOS on another host in the future.
2023-06-05 21:23:28 -04:00
Donovan Glover
5cd582cdac
meta: Use src directory
There's something cool about having a separate main.nix for your NixOS
configuration.
2023-06-05 21:16:20 -04:00
Donovan Glover
2ee8217d0b
editorconfig: Follow rust style guide 2023-06-05 20:51:31 -04:00
Donovan Glover
3119b789f8
nix: Format with alejandra
Alejandra is written in Rust, has more tests than nixfmt, and handles
non-trivial code examples in Nix better.
2023-06-05 20:50:10 -04:00
Donovan Glover
1077200205
flake.nix: Add alejandra to outputs.formatter
Now it's possible to format with alejandra with `nix fmt`.
2023-06-05 20:23:08 -04:00
Donovan Glover
fe099cad69
meta: Switch from nixfmt to alejandra
Alejandra should produce formatted code that is more consistent and
more reliable.
2023-06-05 20:20:21 -04:00
Donovan Glover
3b6ab3f265
flake.nix: Put outputs before inputs
This makes it easier to see the main logic of the application at a
glance.
2023-06-05 19:26:52 -04:00
Donovan Glover
a48575f176
chore: Spacing 2023-06-05 19:18:46 -04:00
Donovan Glover
b9f22a6ab0
kitty: Revert cell height increase
Unfortunately (or fortunately), every line matters when reading and
writing software. Because of this, increasing the cell height results in
more negative consequences than positive.
2023-06-05 19:16:40 -04:00
Donovan Glover
21eb2ab9ac
meta: Begin using variables in main configuration
This overall makes it easier to keep track of options we might want to
change (and might be defined in multiple places) without having to worry
about where those places actually are.
2023-06-05 19:01:45 -04:00
Donovan Glover
46c1c99ab6
nix: Simplify nix options
Writing nix twice here actually makes things easier to read, and should
be preferred over expansion which results in more lines of code.
2023-06-05 18:55:27 -04:00
Donovan Glover
499c80b3e6
variables: Add timezone
The point of the variables file is to make it easy to change common
configuration without having to worry about editing the other files.
2023-06-05 18:52:26 -04:00
Donovan Glover
56c20d9d8e
meta: Only capitalize variables part
This should make creating and using variables less annoying.
2023-06-05 18:51:37 -04:00
Donovan Glover
24756ad683
meta: Capitalize variables
This should make it easier to identify and search for variables.
2023-06-05 18:48:56 -04:00
Donovan Glover
aef8eaa16a
systemd-boot: Limit generations to 10
Now there won't be hundreds of generations in the boot menu.
2023-06-05 17:49:29 -04:00
Donovan Glover
ef0796dc42
nix: Add repl-flake to experimental-features
This enables us to browse all the variables in a system configuration
based on nix flakes with `nix repl .`
2023-06-05 16:11:58 -04:00
Donovan Glover
79adca57ef
packages: Add hyprland-autorename-workspaces
Note that the behavior of 1.0.0 is different than older versions,
however it doesn't appear to randomly stop working like before.
2023-06-05 14:57:04 -04:00
Donovan Glover
de11edb07c
flake.nix: Remove unused argument 2023-06-05 13:33:08 -04:00
Donovan Glover
814058fc13
nix: Add missing hardware-configuration.nix 2023-06-05 13:09:51 -04:00
Donovan Glover
6d1861e3e7
nix: Remove duplicate option 2023-06-05 13:04:20 -04:00
Donovan Glover
d254910993
nix: Remove old imports 2023-06-05 13:03:38 -04:00
Donovan Glover
57856917aa
nix: Move desktop modules to modules
This concludes the unification of modules. Future work could include
combining modules that are unlikely to be used separately.
2023-06-05 12:52:32 -04:00
Donovan Glover
f00d3538ef
nix: Rename variables file to variables.nix
No need for an "examples" directory.
2023-06-05 12:45:44 -04:00
Donovan Glover
89c9727de6
hyprland: Use the previous background by default
If no background is set, then making the background a solid color could
be ideal.
2023-06-05 12:42:12 -04:00
Donovan Glover
dc84c859e5
nix: Use naming convention for hardware-configuration
Although I could just integrate this directly in configuration.nix since
everything is a module, having a separate hardware-configuration.nix
makes it easier to integrate with other devices that may output
different configurations.
2023-06-05 12:38:17 -04:00
Donovan Glover
5fb6b65d24
nix: Merge host modules 2023-06-05 12:34:23 -04:00
Donovan Glover
757902868f
nix: Merge dev with common 2023-06-05 12:16:21 -04:00
Donovan Glover
30ccf622f7
nix: Merge user module 2023-06-05 12:12:12 -04:00
Donovan Glover
d97aa7fa1e
nix: Continue simplifying file structure 2023-06-05 12:11:07 -04:00
Donovan Glover
84af6079e4
nix: Abstract logic outside of flake
Now flake.nix does *not* need to be edited when adjusting the
configuration unless actual changes need to be done to the inputs.
2023-06-05 12:00:18 -04:00
Donovan Glover
343076f942
meta: Move terminal files to modules
Since all of these files do roughly the same thing (that is, configure
the system in a specific way that a separate file seems necessary), this
should reduce the overall complexity of the project tree.
2023-06-05 11:44:37 -04:00
Donovan Glover
1ad4e2d4af
meta: Rename applications to modules
This is my attempt at putting all modules in one directory to avoid
having to remember whether a module was a part of applications/,
desktop/, or terminal/.
2023-06-05 11:37:06 -04:00
Donovan Glover
de1fec4c76
hyprland: Don't use hyprland opacity with kitty
This avoids duplicating the opacity of kitty and hyprland if, for
example, we wanted global translucency.
2023-06-05 10:11:26 -04:00
Donovan Glover
f24734817f
udisks2: Mount on media
This makes sense since the system is a single user one.
2023-06-05 09:58:35 -04:00
Donovan Glover
199743d852
chore: Spacing 2023-06-04 21:27:03 -04:00
Donovan Glover
8c9ff827a2
virtualization: Restrict network
Note that I haven't figured out how to properly configure the networking
for the VM yet.
2023-06-04 21:19:45 -04:00