Commit Graph

243 Commits

Author SHA1 Message Date
08c75b52bf
config: remove Guix overlay flake input
Much of what is needed is now available in nixpkgs.
2023-12-08 12:36:25 +08:00
e45fad294e
config: fix shared config for nixosConfigurations and images 2023-12-08 12:35:46 +08:00
48d2b0f3dd
config: add option for declaring differing home-manager channel in NixOS configs 2023-12-04 18:54:18 +08:00
cc839ad4af
config: enable multiple versions of home-manager
This is in preparation for the deployment enabling NixOS machines to
deploy separate home-manager versions and home-manager configurations
themselves having differing versions for each home-manager user.
2023-12-04 18:51:41 +08:00
1095571983
config: update nixos-stable to nixos-23.11 branch 2023-12-04 18:40:30 +08:00
c25c8ac8b8
config: add nixpkgs-unstable branch 2023-12-04 18:29:37 +08:00
8e122373d7
hosts/ni: revert Guix service config 2023-11-24 11:39:05 +08:00
c74ad8118d
config: add NixOS-WSL for test WSL configuration 2023-11-24 10:11:26 +08:00
112e155aa4
hosts/ni: update Guix service config 2023-11-22 16:04:40 +08:00
7c2a3dcf7e
config: update home-manager config to use nixpkgs.legacyPackages
We can configure most of the nixpkgs option through the `nixpkgs`
attribute anyways.
2023-11-09 09:40:56 +08:00
ea278d3ef9
config: remove duplicate config 2023-11-08 20:46:12 +08:00
a90e123fbb
config: make nixpkgs properly follow nixos-unstable branch 2023-11-08 20:34:06 +08:00
051e7fb3c4
config: remove inputs extraArgs
It isn't exactly used much and also it is not really meant to be used in
that way even though it is still Nix data.
2023-11-07 08:21:48 +08:00
16fa8cb64f
config: replace command-not-found with nix-index 2023-11-04 23:22:54 +08:00
b916de5ded
config: add nix-index-database for pre-compiled indices
It always crashes in my desktop whenever I try to create one.
2023-11-04 14:58:02 +08:00
a8def0527e
config: append default timeservers
They're becoming slow lately so we'll have to replace it.
2023-10-28 11:53:40 +08:00
009a59e10b
config: set default value for system state version 2023-10-19 00:16:21 +08:00
1a9960a0f3
flake.nix: move the imported modules into the shared config
This makes it easier to think about the default shared configurations.
2023-10-16 23:01:38 +08:00
9d9d5e240f
config: disable user-dirs generation for homeConfigurations 2023-10-02 18:15:50 +08:00
8e91973c70
config: add comments 2023-09-28 18:33:00 +08:00
b5928cbb2e
overlays/ffmpeg-foodogsquared: init 2023-09-25 18:14:56 +08:00
578bb94828
flake.nix: remove unnecessary with statements 2023-09-17 13:53:19 +08:00
6a1178f969
config: add comments 2023-09-11 10:14:39 +08:00
9dcda51904
chore: reformat codebase 2023-09-08 10:00:33 +08:00
52d85eb573
config: update Nix settings 2023-09-08 10:00:33 +08:00
f60d28ba2a
config: fix images export 2023-08-04 10:25:05 +08:00
e9ff0dc7fa
config: refactor image and user listing 2023-08-04 10:03:38 +08:00
21e157d328
config: revise file retrieval for NixOS and home-manager configs 2023-08-03 22:58:55 +08:00
b30eb78170
flake.nix: update nixpkgs for packages output
The custom Firefox addons is not exported anyways so we don't need to
import with the overlays.
2023-08-03 18:11:34 +08:00
cae874e52f
templates/local-ruby-nix: init 2023-08-03 15:44:11 +08:00
6d58d6a14e
config: update default home-manager config 2023-08-02 15:20:26 +08:00
2622101910
config: share Nix settings for NixOS and home-manager 2023-08-02 14:51:10 +08:00
d4fac02340
config: update declarative users procedure 2023-08-02 10:12:29 +08:00
6bde240991
config: update internal check variable
I forgot to update it. Whoops...
2023-08-02 10:11:37 +08:00
b97cc4415a
flake.nix: update list of caches for flake config 2023-07-30 14:17:04 +08:00
1978c18760
config: add platforms to system lists 2023-07-30 14:16:40 +08:00
f282aa2066
config: make platforms as a list for users and images
The `images` output attribute is now similar to packages as an attribute
set of packages with their platforms as the first level.
2023-07-30 07:11:53 +08:00
b06a0dcce6
config: update home-manager configs for non-NixOS systems 2023-07-29 10:47:34 +08:00
152b7248c5
config: add sops-nix home-manager module 2023-07-24 17:45:51 +08:00
305c54996f
lib/images: change mkUser to mkHome 2023-07-24 15:22:19 +08:00
4edd63f411
flake.nix: remove rust-overlay flake
It is better suited for individual projects and the devshell uses the
versions from nixpkgs anyways.
2023-07-24 13:09:30 +08:00
76c9589de8
config: use Nix unstable as the default Nix package 2023-07-23 10:32:17 +08:00
28faf41a1c
chore: reformat codebase 2023-07-19 17:27:33 +08:00
3c60989da4
config: add foodogsquared's binary cache
YAY! It's usable again. :D
2023-07-19 15:35:55 +08:00
f98ccd1745
flake.nix: remove nix-ld flake
Also using the module from nixpkgs.
2023-07-16 18:13:13 +08:00
84fb02fb28
firefox-addons: remove package
Only remove the package from the user package set and only available as
an overlay. For now, it is done to make building my custom packages
easier in the CI pipeline.
2023-07-14 22:13:09 +08:00
9d7584bc82
config: fix nixpkgs import for mkImage
This should fix for image configurations that also make use of the
imported overlays.
2023-07-14 19:58:15 +08:00
92a2f81a2b
lib/private: replace nixpkgs-channel to pkgs
The nixpkgs import should be easier to control from the flake
definition.
2023-07-14 13:19:09 +08:00
06704f5ab6
flake: separate images to images attribute
This also allows for downstream users to import my flake now (if there's
any).
2023-07-14 13:17:05 +08:00
d524444ae0
modules: manually import the modules
This allows for an easier separation of the private modules compared to
the old `importModules` function. It is also easier to use.
2023-07-14 13:14:14 +08:00
a43c5024a8
docs/site: initialize the project site 2023-07-08 19:41:30 +08:00
ea68dbbf54
firefox-addons: init list of addons
This is generated from mozilla-addons-to-nix from rycee. It is also how
they build their own list of Firefox addons in the NUR repo.
2023-07-06 11:05:15 +08:00
c3bec31b86
chore: reformat codebase 2023-07-05 16:42:15 +08:00
654f531b8d
config: remove ssh service alias 2023-07-05 16:40:33 +08:00
ef0d3d92cd
config: fix deploy function with correct system
Also added some more configuration options for home-manager deploy
options.
2023-07-01 12:30:36 +08:00
6c7939e7da
config: include disko as part of the flake
This could be used for bootstrapping with nixos-anywhere tool
apparently.
2023-06-30 12:55:40 +08:00
e95927c83b
config: filter NixOS configuration
With images that are only exported as ISO (or even without one) are
included as part of NixOS configurations.

The idea with this attribute seems to be closer for deploying and
installing them with `nixos-install` which most of them aren't. This
might be reverted at some point. It's not clear to me yet.
2023-06-29 13:51:21 +08:00
a91a9fe110
config: improve home-manager user creation
Now with configurable home-manager channel! Also, I've improved some
usage of the metadata to be used from `users.toml`.
2023-06-29 13:50:26 +08:00
3ad1c9022b
config: update naming for NixOS host images 2023-06-29 09:49:18 +08:00
87e01e119c
config: create declarative home-manager user management 2023-06-23 15:43:26 +08:00
4e428bf8e4
config: update the image output extra modules 2023-06-23 11:47:06 +08:00
9ee20751e7
config: remove NixOS module from nixos-generators
It is only meant for generation and not for deployment. Learnt that the
hard way.
2023-06-23 00:28:48 +08:00
9f2452ec6e
config: add deploy subtable for declarative images
It accepts keys used as arguments for deployment settings with
deploy-rs. This should make deployment a little bit easier for me
instead of manually creating a deploy entry every time.
2023-06-23 00:26:04 +08:00
241e2080f2
config: make configurable nixpkgs channel for images
Now we can finally easily declare the nixpkgs channel for individual
images. This is nice once I've expanded the images for other purposes
such as physical hosts (for homelabbing).

Unfortunately, this is where I realized that stable channels are not
exactly "Debian-stable" and the best way to handle security is to have
an update cadence that is relatively quick.
2023-06-22 11:01:41 +08:00
f033756d6f
config: modularize image creation functions
Additionally, I have also made a declarative version of the project
cluster with a neat little file at `images.toml`. This is way better for
individually referring to hosts from the host directory compared to the
old way.
2023-06-20 19:57:00 +08:00
23e00d0472
config: remove foo-dogsquared's binary cache
It is pretty outdated and the CI didn't able to build the packages for
some time now (that I'm lazy to fix). Not to mention, some of them are
being upstreamed to nixpkgs so the need to use this is low. Also, it
causes the build to have some errors.
2023-06-19 12:26:25 +08:00
159ac36a11
config: add NUR home-manager module for user config 2023-06-08 12:14:52 +08:00
e48fc588ef
flake.nix: update overlay attributes for flake inputs 2023-06-08 12:14:28 +08:00
717d15a9fc
flake.nix: update nixpkgs-stable to 23.05 branch 2023-06-06 13:52:39 +08:00
2a7665670c
flake.nix: make inputs follow own nixpkgs temporarily 2023-05-31 15:57:00 +08:00
e5f66b3076
config: add 'repl-flake' to experimental features 2023-05-31 15:57:00 +08:00
1b013b2246
flake.nix: update flake inputs 2023-05-27 13:53:52 +08:00
d9d63dd90a
templates/sample-nixos-template: init 2023-05-25 11:15:28 +08:00
d70ee020f7
flake.nix: update home-manager inputs 2023-04-22 14:10:41 +08:00
a8a7f60a7c
config: remove Helix Cachix Nix cache 2023-04-22 14:10:30 +08:00
732acd886c
config: update attributes 2023-04-22 14:10:03 +08:00
862ad97c87
flake.nix: update neovim-nightly-overlay nixpkgs to own nixpkgs 2023-04-22 14:09:29 +08:00
6496fa363d
users/foo-dogsquared: replace dotfile flake input with modules/mutable-files 2023-03-13 23:46:24 +08:00
c1bb25833c
flake.nix: update homeManagerModules to homeModules
Just to make the flake consistent. Plus it seem to be the attribute name
for some of the configurations out there anyways.
2023-03-03 17:19:52 +08:00
fac3cd408f
flake.nix: update home-manager output attribute to homeConfigurations
Now, it is supported by standalone `home-manager` tool.
2023-02-20 19:02:37 +08:00
86afc41f28
flake.nix: add comments 2023-02-05 16:27:14 +08:00
25709b4208 config: remove nix-alien flake input
The latest update failed and that reminded me I mostly use steam-run now
which is more reliable and becoming my go-to tool for running unpatched
binaries in NixOS.
2023-01-29 10:11:14 +08:00
d6d461a098 flake.nix: update override value on intended hostname
It pretty much causes every host to have the name the default hostname
which I forgot the default value has a stronger override value.
2023-01-18 17:47:45 +08:00
92c69f9161 flake.nix: update flake inputs
- Added stable branch for nixpkgs. This is for the preparation of
  facilitating creating hosts that is more maintainable with stable
  branches (like servers, for example).

- Update nixpkgs URL for Neovim overlay. The workaround is based from
  the following link at
  https://github.com/nix-community/neovim-nightly-overlay/issues/164#issuecomment-1377562202
2023-01-17 21:34:54 +08:00
4c34a87366 chore: reformat codebase 2023-01-07 16:06:34 +08:00
9541ebeaf9 hosts/plover: remove image format 2023-01-04 19:54:49 +08:00
789bb9b7db config: remove insecure packages
The insecure packages are not required anywhere at this point and I
don't want to make it stale.
2022-12-31 19:15:40 +08:00
Gabriel Arazas
e8a1dc2fd9 config: update more comments 2022-12-10 18:47:41 +08:00
Gabriel Arazas
ee17bccd5b config: properly configure automatically imported nodes 2022-12-06 15:55:23 +08:00
Gabriel Arazas
f90379aa4d config: reduce Hydra jobs to only build packages
All of the hosts with image format are basically packaged anyways and it
also adds unnecessary time to output checks.
2022-12-06 15:55:23 +08:00
Gabriel Arazas
72bc80c70b config: add qtwebkit to insecure package permit list 2022-12-01 08:48:13 +08:00
Gabriel Arazas
acfc617e10 config: fix and improve upon importNodes 2022-12-01 08:21:04 +08:00
Gabriel Arazas
9a0079a7fc config: fix image format module condition 2022-12-01 08:20:18 +08:00
Gabriel Arazas
9a07eedb14 config: update comments and module descriptions 2022-11-30 08:40:49 +08:00
Gabriel Arazas
d8b28ce617 config: add home-manager configurations deploy nodes 2022-11-30 08:37:37 +08:00
Gabriel Arazas
fa2509b578 config: refactor with host image format set 2022-11-30 08:36:37 +08:00
Gabriel Arazas
997a0ee9aa config: update list of overlays 2022-11-30 08:36:37 +08:00
Gabriel Arazas
38d8542875 config: update image formats for more hosts 2022-11-29 15:58:33 +08:00
Gabriel Arazas
cee69d59a0 config: consider default host config for system images
There are some parts of the config when imported with image modules
where it will set them with often default overrides. It is best to let
them override with our host config especially with the more important
options such as anything networking-related.
2022-11-25 21:28:11 +08:00
Gabriel Arazas
181de0406b config: update comments 2022-11-25 14:51:27 +08:00