Commit Graph

171 Commits

Author SHA1 Message Date
Donovan Glover
83a82ab655
chore: Expand single item lists and attribute sets
These aren't collapsed by nix fmt anymore.
2024-08-27 13:05:29 -04:00
Donovan Glover
fd35cd9db0
flake: Add rycee/firefox-addons
Makes it possible to install firefox addons with home-manager.
2024-08-15 23:36:09 -04:00
Donovan Glover
63797c4259
flake: Switch to home-manager fork for librewolf support
I originally wanted to avoid maintaining my own forks of flake inputs to
simplify usage with the actual upstream if wanted, however the lack of
flakes supporting patches means that it's actually *easier* to maintain
my own repositories with the changes I want.

The main advantage of this is not having to wait for upstream. This also
means that I'm able to easily control which things I want to update and
when.
2024-08-13 14:36:14 -04:00
Donovan Glover
6c34cce882
treewide(nix): Remove duplicate attribute name usage
Found thanks to nixd showing different colors for these.
2024-08-10 20:55:46 -04:00
Donovan Glover
817629fb0a
chore: Update to latest nixos-unstable release 2024-08-03 19:44:23 -04:00
Donovan Glover
0803c83f2c
flake: Switch formatter from nixpkgs-fmt to nixfmt-rfc-style
Welcome to the new era.

Hopefully the last formatter change for a while.
2024-08-03 15:26:02 -04:00
Donovan Glover
8ece3e2812
treewide: Format remaining files with nixfmt-rfc-style 2024-08-03 14:49:00 -04:00
Donovan Glover
55fbafa129
meta: Move base16-nvim config into stylix 2024-08-03 12:17:40 -04:00
Donovan Glover
f73e302f2e
chore: Fix nixd / statix errors
I'm okay with editing hardware-configuration.nix now that I understand
how it works.
2024-08-03 01:52:47 -04:00
Donovan Glover
3f10f44bb9
Revert "chore: Update to latest nixos-unstable release"
pass and qutebrowser depend on pykeepass and I'd rather not remove them
at this time. See: https://github.com/NixOS/nixpkgs/pull/331310
2024-08-01 13:45:44 -04:00
Donovan Glover
acca42a7cf
chore: Update to latest nixos-unstable release
Hopefully this doesn't break anything.

Removed old packages and overlays now upstreamed.
2024-08-01 13:34:54 -04:00
Donovan Glover
307acd1777
flake: Update phosh to 0.40.0
Will switch back to the upstream branch when the new phosh version
gets merged into master.
2024-07-25 15:52:28 -04:00
Donovan Glover
ce67ffbf73
meta: Rename homeManagerModules attribute to homeModules
This fixes an issue where previously homeManagerModules would be an
unknown flake output. Note that this change is a part of Nix 2.22.3
but not Nix 2.23.3.
2024-07-18 19:43:11 -04:00
Donovan Glover
7fe0596d90
phone: Only disable systemd-boot on aarch64
This is necessary since the boot process is handled by mobile-nixos.

Note that the implementation here should allow us to move aarch64
differences out of the flake.nix and simplify nixosConfigurations
again long-term.
2024-07-18 17:50:19 -04:00
Donovan Glover
2de95cbfaf
Revert "nix: Use flake-programs-sqlite for command-not-found"
Would rather not deal with an additional flake input here to keep things
simple.
2024-07-18 14:32:14 -04:00
Donovan Glover
f1ee89ddc8
nix: Use flake-programs-sqlite for command-not-found
This was my attempt at using flake-programs-sqlite, which worked, but
requires an additional flake input in order to function properly.
2024-07-18 14:29:39 -04:00
Donovan Glover
ad58ee22a6
stylix: Update to latest commit
Dropping the Kvantum fork for now to focus on staying up to date with
the recent Stylix developments.
2024-07-05 15:39:12 -04:00
Donovan Glover
299a5e0bd6
Revert "meta: Add attempt at using gnome-mobile" 2024-06-27 23:02:38 -04:00
Donovan Glover
961c2f1b62
meta: Add attempt at using gnome-mobile
This was my attempt at using GNOME Mobile. It works inside the x86_64
virtual machine but fails when reaching "Started Display Manager" on the
actual device.
2024-06-27 22:56:41 -04:00
Donovan Glover
d5f8261627
flake: Switch to mobile-nixos fork to fix call volume
We should be able to fix more things in the fork later.
2024-06-27 18:45:41 -04:00
Donovan Glover
742ab4508c
flake: Update to latest nixos-unstable release
Also has the latest version of hyprland.
2024-06-24 21:03:20 -04:00
Donovan Glover
b80f3f2340
meta: Use standard hosts directory
This makes sense now that we have multiple hosts in the same flake.
2024-06-20 21:34:57 -04:00
Donovan Glover
08f0823b61
flake: Remove unnecessary aarch64 tests value
Might fix the ci.
2024-06-20 17:29:20 -04:00
Donovan Glover
707a7e40b6
flake: Only run tests with x86_64-linux
Should fix an issue where aarch64 was failing.
2024-06-20 16:15:55 -04:00
Donovan Glover
11e2304a7f
flake: Include nix-config in phone config args
Fixes infinite recursion issues from self.
2024-06-18 23:58:59 -04:00
Donovan Glover
dd58dff955
flake: Add package support for aarch64 2024-06-16 12:22:07 -04:00
Donovan Glover
c93a5203b7
flake: Add formatting support for aarch64 2024-06-16 12:21:19 -04:00
Donovan Glover
22894d86c4
flake: Add missing bootloader for phone vm
This fixes an issue where `nix flake check` would previously fail.
2024-06-15 13:18:26 -04:00
Donovan Glover
ad506d827e
flake: Merge phone flake with nix-config
This makes sense to avoid having to cd into the phone directory before
being able to do anything.

Note that this time we aren't trying to combine the phone config with
the existing nix modules to keep things simple.
2024-06-15 12:48:40 -04:00
Donovan Glover
0384654ee4
flake: Don't dynamically declare nixosConfigurations
This makes it easier to add hosts that have multiple nixosConfigurations
due to compiling for different architectures.
2024-06-15 12:41:14 -04:00
Donovan Glover
a629f92827
meta: Revert combining mobile-nixos flake
This was causing a lot of issues unfortunately presumably due to things
not working with the aarch64 PinePhone system. Random errors like
"expected string 'D'" were common and I'd rather use a separate flake to
make things easier to debug and keep evaluation times to a minimum.
2024-06-15 10:47:03 -04:00
Donovan Glover
8ceb1bf511
flake: Properly handle mobile-nixos module import
This was necessary to avoid issues with conditional imports.
2024-06-14 13:18:45 -04:00
Donovan Glover
b972766cc5
nix: Merge phone flake with nix-config
This is a part of having multiple nixosSystems for the same nix flake.
2024-06-13 18:42:13 -04:00
Donovan Glover
2470a8df50
nixpkgs: Update hyprland from v0.41.0 to v0.41.1 2024-06-13 13:19:23 -04:00
Donovan Glover
f2c8af31e8
home-manager: Follow nixos-unstable
Fixes an issue where mpv stuff broke in a recent update.
2024-06-13 05:16:46 -04:00
Donovan Glover
b42540808b
meta: Patch latest nixos-unstable release with hyprland v0.41.0
This shouldn't cause too many issues.
2024-06-13 05:15:51 -04:00
Donovan Glover
96b3752117
hyprland: Lock version to v0.39.1-patched
Note that using a separate fork is necessary since overlaying flakes
seems to be non-trivial here.

Also note that previously the nixpkgs hyprland was being started from
greetd. This fixes that.
2024-06-12 14:50:44 -04:00
Donovan Glover
1e16aaa3ae
stylix: Lock kvantum fork to commit with 24.05 attributes
Fixes an issue where the build would previously show a warning about
`qt.platformTheme` being renamed to `qt.platformTheme.name`.
2024-06-01 21:18:33 -04:00
Donovan Glover
576b9bf2ba
home-manager: Lock version to 24.05
We'll be staying on the 24.05 release for the time being since we
haven't updated nixos-unstable to 24.11 yet.
2024-06-01 14:19:38 -04:00
Donovan Glover
ac327da932
flake.nix: Add back outputs for checks
Should pass in the ci this time.
2024-05-12 22:03:19 -04:00
Donovan Glover
765d6df369
flake.nix: Remove checks from outputs for now
Might fix the ci running out of space.
2024-04-29 18:18:28 -04:00
Donovan Glover
b2db08e968
flake.nix: Switch back to kvantum stylix fork 2024-04-22 23:56:40 -04:00
Donovan Glover
7f60479a90
chore: Run nix fmt
Also removed an unnecessary variable and added syntax highlighting.
2024-04-17 13:54:37 -04:00
Donovan Glover
5f25e19d3f
flake.nix: Dynamically import nixosConfigurations 2024-04-08 10:58:32 -04:00
Donovan Glover
30e0239cf7
flake.nix: Dynamically import tests
Makes it possible to add new test files to the tests directory and have
everything instantly working.
2024-04-08 10:33:18 -04:00
Donovan Glover
46f778107b
chore: Improve formatting 2024-04-05 22:51:24 -04:00
Donovan Glover
51273df2c8
meta: Move nixosConfiguration logic to separate file
Makes it easier to reason about the flake-specific stuff inside
the flake.
2024-04-05 19:21:20 -04:00
Donovan Glover
7a8fdd7259
chore: Improve formatting 2024-04-05 19:01:41 -04:00
Donovan Glover
22e31ff60b
chore: Format with nixpkgs-fmt
Note that we will continue to use nixpkgs-fmt for the time being here
since nixfmt-rfc-style breaks string syntax highlighting and comments
like `/* this */` get turned into `# this`.

The conversion from lisp-like formatting to something else in flake.nix
is a bit unfortunate, but I'd rather have a singular style for the
entire code base to make things easier.
2024-04-05 11:40:23 -04:00
Donovan Glover
59f557a3e5
feat: Pass nix-config as self to avoid infinite recursion
This change makes it possible to use this nix-config in all the
different ways imaginable (containers, bare metal, tests, and as a
separate flake input) *without* running into infinite recursion
issues with self.

It does this by using a trick similar to JavaScript in which
`var self = this;`, thus enabling the usage of "this" (or self, in
Nix's case) where it wouldn't otherwise be possible.

Note that this *only* works if the input for this repository is named
nix-config. This makes it impractical to combine with multiple
configurations that employ the same strategy.
2024-04-05 10:20:06 -04:00