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
Gabriel Arazas
afb86dd59a
config: add some hosts image to packages
2022-11-25 14:51:27 +08:00
Gabriel Arazas
9bd62dba58
config: add hydraJobs
to the outputs
2022-11-21 20:33:58 +08:00
Gabriel Arazas
3a7816a901
chore: reformat codebase
2022-11-19 11:32:29 +08:00
Gabriel Arazas
5ea8fcb0cf
config: add treefmt as formatter tool
2022-11-19 11:32:29 +08:00
Gabriel Arazas
ed893813fe
config: remove system
as part of extraArgs
...
We use nixpkgs with the intended system anyways so we could get away
with getting the system from the imported nixpkgs attrset.
2022-11-17 13:35:19 +08:00
Gabriel Arazas
ebbd0b5220
config: add deploy.nodes
to output
...
Welp, now I'm using NixOS for my servers. One step closer to managing an
entire cluster with this.
2022-11-15 13:12:51 +08:00
Gabriel Arazas
18adca6409
config: add more comments
...
Accumulated over time so time for another commit.
2022-11-06 17:38:51 +08:00
Gabriel Arazas
d14628b36e
config: use flake-provided package
...
We've also removed the overlay because of troubles with building certain
package that is required to be in a specific version. Overlays are very
powerful but very unwieldy for a stable environment at times.
2022-11-05 09:26:43 +08:00
Gabriel Arazas
68bd6f891e
config: add xterm as part of excluded packages
2022-10-27 15:13:30 +08:00
Gabriel Arazas
b9d2b5ee87
flake.nix: clean up some code
2022-09-29 11:35:00 +08:00
Gabriel Arazas
ef2648bf3a
config: add convention for setting profiles conditionally
2022-09-28 19:49:44 +08:00
Gabriel Arazas
1cb8b8c2cd
config: change removed aliases to their non-aliased versions
2022-09-28 19:12:56 +08:00
Gabriel Arazas
90dd0f9c35
config: update
2022-09-25 11:49:19 +08:00
Gabriel Arazas
69414b5a21
config: create dotfiles
as an extraArgs
2022-09-25 11:46:14 +08:00
Gabriel Arazas
beec619819
flake.nix: update default host config
2022-09-19 10:55:31 +08:00
Gabriel Arazas
8a9207fba8
flake.nix: use mkDefault
for default host config
2022-09-01 23:21:39 +08:00
Gabriel Arazas
7ac5991cc4
templates/basic-overlay-flake: init template
2022-09-01 10:01:15 +08:00
Gabriel Arazas
c9ccb53bac
flake.nix: use Nix-built Guix service module
2022-08-27 13:41:12 +08:00
Gabriel Arazas
d70f3b3e69
flake.nix: refactor and remove system
from extraArgs
2022-08-19 17:36:33 +08:00
Gabriel Arazas
acc36dc851
flake.nix: refactor extraArgs
placement
2022-08-17 18:43:48 +08:00
Gabriel Arazas
08160eb827
misc: update and refactor
2022-08-13 08:31:44 +08:00
Gabriel Arazas
9c79c70d3b
flake.nix: update the registry and Nix config
2022-08-10 12:42:12 +08:00
Gabriel Arazas
a6d591f31b
flake.nix: generate Nix paths and registry with the inputs
2022-08-07 13:30:19 +08:00
Gabriel Arazas
3002c765a3
flake: add formatter attribute in the output
2022-08-06 14:57:51 +08:00
Gabriel Arazas
472af7efd1
flake.nix: format the file
2022-08-06 14:00:04 +08:00
Gabriel Arazas
e4d1bf6af6
hosts: update home-manager default configuration
...
I forgot I set the home-manager values only to
`homeManagerConfigurations` in the flake output. It should be added to
the hosts configuration with the `home-manager.sharedModules` attribute.
2022-08-06 13:58:24 +08:00
Gabriel Arazas
cf35320663
flake.nix: add helix-editor flake
2022-08-05 12:45:54 +08:00
Gabriel Arazas
adff4fd67f
flake.nix: update hosts default config
2022-07-28 17:29:58 +08:00
Gabriel Arazas
10131d58be
secrets: replace agenix with sops and sops-nix
2022-07-19 07:11:01 +08:00
Gabriel Arazas
9182306d81
flake.nix: reduce number of inputs from lockfile
...
Though, be sure to check it periodically to see if it's safe to follow
with our own inputs.
2022-07-14 09:10:34 +08:00
Gabriel Arazas
cdbb816eca
flake.nix: add NUR module to default host config
2022-07-14 08:21:09 +08:00
Gabriel Arazas
d599586053
flake.nix: add an overlay of the packages
2022-07-14 08:21:09 +08:00
Gabriel Arazas
6a0c115432
default.nix: support for traditional channels
...
Though, it's limited compared to flakes. I supposed that's better than
nothing.
2022-07-14 08:21:09 +08:00
Gabriel Arazas
cc40cdb110
flake.nix: update several parts of config
2022-07-14 08:03:18 +08:00
Gabriel Arazas
a20af36002
flake.nix: add blocklist for exported modules
...
Even though this will most likely extend under `tasks` attribute. Not to
mention, it is useless outside of my own setup anyways. Better be
accommodating than not, I guess.
2022-07-13 19:15:23 +08:00
Gabriel Arazas
4708d7acc2
profiles/system: refactor to remove inputs
attr
...
This is to reduce burden in case I want to support importing my
config through traditional channels.
2022-07-13 19:10:15 +08:00
Gabriel Arazas
a81ab6f415
flake.nix: update args for homeManagerConfiguration
2022-07-10 19:04:47 +08:00
Gabriel Arazas
0067a7b15e
flake.nix: follow inputs to original nixpkgs
...
All of the inputs are safe to follow the original nixpkgs. This is the
case for Neovim overlay that the lockfile is automatically updated and
the Emacs overlay simply has no lockfile.
2022-07-10 05:40:56 +08:00
Gabriel Arazas
eebaf93938
docs: update READMEs and comments
2022-07-09 14:04:17 +08:00
Gabriel Arazas
30c7ee0203
profiles/agenix: move into default config
2022-07-09 14:01:37 +08:00
Gabriel Arazas
7ad9a62f2c
profiles/users: move as a library function
2022-07-09 14:00:51 +08:00
Gabriel Arazas
40492d55b7
lib: privatize parts of library
...
Some of the functions cater to this specific setup so no need to export
them.
2022-07-09 13:49:51 +08:00
Gabriel Arazas
5a30ebcb02
flake.nix: update rust-overlay
overlay attribute
...
It is deprecated in favor of the newer preferred schema from the recent
Nix updates.
2022-07-09 10:52:54 +08:00
Gabriel Arazas
e235ad949e
flake.nix: fix references to lib
to being an argument
...
It turns out the functions that is being wrapped by `mkHost` and
`mkUser` both accept `lib` as one of the attribute on their respective
functions. It is better to use that instead of chucking it as part of
`extraSpecialArgs` or something similar.
2022-07-09 10:51:06 +08:00
Gabriel Arazas
3d9494d92a
flake.nix: update default NixOS config with home-manager options
2022-07-09 07:08:27 +08:00
Gabriel Arazas
908e0caf50
flake.nix: move flake utilities in the file
...
It doesn't make sense to put them into separate file anymore since there
is always only one location that uses it. The flake utilities have been
changed also with the updated version of the functions from its inputs.
2022-07-09 06:51:16 +08:00
Gabriel Arazas
024102c45c
home-manager/foo-dogsquared: get config into home
...
Now that I have time, I've learnt that Git submodules are not supported
well with flake-based setup. Instead, I'll use my dotfiles repo as one
of the inputs as a non-flake which is exactly what I want. NICE!
2022-07-06 07:46:40 +08:00