Commit Graph

159 Commits

Author SHA1 Message Date
Donovan Glover
feff455ddd
nix: Remove nixpkgs-master
Not needed anymore since waycorner and nwg-dock-hyprland are in
nixos-unstable.
2023-06-10 10:41:17 -04:00
Donovan Glover
48cb1ea542
packages: Use srb2 from fork 2023-06-08 18:30:38 -04:00
Donovan Glover
0bb8eca867
packages: Use hyprland-autoname-workspaces from fork 2023-06-08 18:19:02 -04:00
Donovan Glover
f86dafa900
neovim: Use vim-crystal from nixpkgs/master
Nix flakes makes it easy to mix and match packages from any git
repository, which includes being able to use multiple nixpkgs branches.
2023-06-08 16:51:57 -04:00
Donovan Glover
a5941a1701
meta: Use crystal-flake for crystal development
The current crystal binary in nixpkgs complains about not finding pcre
when you try to compile anything with it, so crystal-flake is necessary
to have a working crystal environment under NixOS.

crystal-flake additionally packages crystalline, which is nice since no
one has been able to successfully create a pull request for nixpkgs yet.

Reference: https://github.com/NixOS/nixpkgs/issues/129002
2023-06-08 15:13:46 -04:00
Donovan Glover
e47b456ff2
chore: Spacing 2023-06-06 10:17:15 -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
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
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
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
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
f00d3538ef
nix: Rename variables file to variables.nix
No need for an "examples" directory.
2023-06-05 12:45:44 -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
6542ff2abb
systemd-boot: Boot the default entry by default
Since I never use previous generations, booting the newest entry by
default seems ideal. In the case that something is broken, it should be
possible to return to the menu by pressing space at boot.
2023-06-04 16:37:01 -04:00
Donovan Glover
734c2c2db2
systemd-boot: Disable editor
Since I don't use this feature, disabling it seems to be the play.
2023-06-04 16:33:17 -04:00
Donovan Glover
f67a664a76
meta: Use tmpfs for /tmp
This should speed up some things.
2023-06-04 12:37:05 -04:00
Donovan Glover
4cdf7d0e04
nix: Simplify
This commit removes some premature modularization to make it easier to
see and manipulate everything at once.
2023-06-04 09:35:40 -04:00
Donovan Glover
a22b9355dd
nix: Use variables
This should make things easier to change and maintain over time, with
the ultimate goal of making it easy to provide example configurations
that can be expanded upon.
2023-06-03 13:51:43 -04:00
Donovan Glover
c9bcd57404
Add rar container
This puts rar in a rootless container with no access to the network of
the host.
2023-05-31 15:15:45 -04:00
Donovan Glover
a7087e2904
Add osu-stable
This works, and without putting wine directly in $PATH, which is kinda
cool.
2023-05-31 10:18:38 -04:00
Donovan Glover
83322580a2
nix: Move up common modules 2023-05-25 16:49:17 -04:00
Donovan Glover
644dffba42
nix: Simplify 2023-05-23 12:27:49 -04:00
Donovan Glover
436d1543df
Add grimblast through flake 2023-05-19 05:40:10 -04:00
Donovan Glover
844df06137
Revert "nix: Simplify"
Looks like this silently broke home-manager, so reverting for now.
2023-05-18 20:30:49 -04:00
Donovan Glover
936a47667a
nix: Simplify 2023-05-18 19:38:18 -04:00
Donovan Glover
f399280ff1
nix: Further categorization 2023-05-18 19:12:30 -04:00
Donovan Glover
e20be890d0
Remove distinction between home-manager files 2023-05-18 11:46:41 -04:00
Donovan Glover
3d8e6f356e
Merge fish module 2023-05-18 09:49:56 -04:00
Donovan Glover
343e0cf6e0
Use separate directories for all modules 2023-05-17 16:57:33 -04:00
Donovan Glover
e09febf522
Add user module 2023-05-17 15:58:08 -04:00
Donovan Glover
afc98ce47e
Remove configuration.nix
Not needed anymore since we know how to use nix modules.
2023-05-17 12:50:55 -04:00
Donovan Glover
a2d6373232
Make home.nix a proper module 2023-05-17 11:51:12 -04:00
Donovan Glover
4a7b603536
nix: Continue modularization 2023-05-17 10:02:36 -04:00
Donovan Glover
a9b7a93fd1
nix: Follow home-manager for stylix 2023-05-16 23:35:52 -04:00
Donovan Glover
1e7f0136f5
nix: Follow nixpkgs for all inputs 2023-05-16 23:07:14 -04:00
Donovan Glover
b6f16a9877
Only import one file for home-manager 2023-05-16 17:22:00 -04:00
Donovan Glover
8b31ad8202
Abstract fcitx5 and rofi into separate files 2023-05-16 15:50:38 -04:00
Donovan Glover
281a3a9198
Run nixfmt 2023-05-13 22:01:48 -04:00
Donovan Glover
2c281b8529
Move remaining home-manager stuff to home.nix 2023-05-11 19:25:09 -04:00
Donovan Glover
9e11cb4278
Simplify modules to home.nix
I *may* abstract this in the future, but for now I have no reason to.
2023-05-11 19:14:59 -04:00
Donovan Glover
25bc5c972b
Add gituser 2023-05-11 17:47:32 -04:00
Donovan Glover
5322fc02b8
nix: Nixify more dotfiles 2023-05-11 07:30:58 -04:00
Donovan Glover
23ddf7de1a
nix: Nixify mpv 2023-05-11 00:05:19 -04:00
Donovan Glover
be51dac62a
nix: Use nixpkgs for stylix 2023-05-10 22:43:11 -04:00
Donovan Glover
55e3c4a813
feat: Add stylix
Stylix is like a maintained version of pywal but configuration changes
are managed by Nix and Home Manager, thus guaranteeing a certain level
of reproducibility with its declarative nature.
2023-05-10 11:32:47 -04:00
Donovan Glover
4df1d91e19
fix(waybar): Use waybar-hyprland from flake
This fixes an issue where wlr/workspaces is considered experimental in
waybar and thus does not work with the current nixpkgs version on NixOS.

References:
- https://github.com/Alexays/Waybar/issues/1766
- https://github.com/hyprwm/Hyprland/discussions/1729
2023-05-09 22:40:06 -04:00
Donovan Glover
e1d740fb63
nix: Abstract hyprland config into separate module
This should make it easy to switch between hyprland and other
environments if wanted.
2023-05-09 14:04:01 -04:00
Donovan Glover
1c99ffd784
nix: Modularize editor
Now I know how to abstract modules into separate files instead of having
one big file for everything.
2023-05-09 11:43:39 -04:00
Donovan Glover
f8e257a89d
nix: Add basic neovim config
This should eventually replace the old .vimrc.
2023-05-09 10:18:39 -04:00
Donovan Glover
5b402f4804
nix: Add home-manager config 2023-05-09 00:45:59 -04:00
Donovan Glover
0230c9b4b0
home-manager: Use master branch 2023-05-08 22:16:27 -04:00
Donovan Glover
d69fe99210
nix: Use nixos-unstable
This fixes an issue where the exact branch wasn't specified before.
2023-05-08 13:40:15 -04:00
Donovan Glover
d654c01f30
nix: Fix nixpkgs url 2023-05-08 13:19:45 -04:00
Donovan Glover
00fc33cad8
nix: Add flake.nix
This may or may not work; I haven't tested it yet.
2023-05-04 13:09:55 -04:00