Commit Graph

103 Commits

Author SHA1 Message Date
ee13a88492
lib: update output name for XDG component builders 2024-07-16 14:21:30 +08:00
8138f70d44
lib: init builder for XDG desktop entry 2024-07-14 11:15:06 +08:00
11806b9c4b
lib: init builders subset
Most of it is specifically for NixOS usage but in case that it is
possible for independent desktop sessions entirely made in home-manager
especially in non-NixOS systems, it will be... nice.
2024-07-10 19:19:48 +08:00
7bde39a3a7
lib: initialize env-specific subset for wrapper-manager-fds 2024-07-10 15:50:31 +08:00
9c345c5f4c
lib: improve NixOS-like environment generation 2024-07-08 13:32:01 +08:00
4d32203d4d
lib: add functions for creating NixOS-like environments 2024-07-06 15:25:18 +08:00
e1ed34dc29
docs: add README for custom library 2024-06-21 20:33:22 +08:00
3e7cc9c7db
lib/trivial: move nixpkgs module functions to utils 2024-06-14 23:45:07 +08:00
9e3a95ba24
lib/data: init 2024-06-09 23:03:26 +08:00
03552df4e3
lib: move env-specific subsets into their own directory 2024-05-27 15:21:48 +08:00
802f78cea5
lib/home-manager: fix has{Nixos,Darwin}ConfigAttr 2024-03-08 16:40:49 +08:00
ba6b30ca95
lib: standardize arguments (again)
We'll just copy what we did with Bahaghari project.
2024-03-03 16:39:32 +08:00
bf52b6b5be
flake-parts/setups/nixos: add foodogsquaredUtils to module args
An ugly solution but can't get around much for generating Nix modules with
the modularly set `foodogsquaredLib` so we'll have to make it evaluated before
the NixOS config evaluation.
2024-03-02 18:20:51 +08:00
40352d6a74
lib: standardize the required arguments
Just to make it consistent.
2024-03-01 18:09:47 +08:00
c08289419c
lib/nixos: update to include config 2024-02-28 18:44:27 +08:00
ac036d10a9
modules: fix custom library 2024-02-25 22:27:05 +08:00
5af7ac1c3d
modules: add extra arguments private module
Even easier way to set things up now.
2024-02-25 20:04:29 +08:00
d73daa69f7
lib/nixvim: init 2024-02-25 20:03:41 +08:00
29b7b302e1
lib: set as fixed point 2024-02-25 20:02:41 +08:00
15a43cd1e5
chore: reformat codebase 2024-02-25 18:20:13 +08:00
3822562638
lib/home-manager: update function names 2024-02-14 21:15:15 +08:00
ef48a1d3c4
lib/extras/nixos-set: fix NixOS library set
Whoops...
2024-02-12 17:37:03 +08:00
a4177f9382
flake-parts/setups: set separate namespace for custom library
This at least allows us to make custom environment-specific library sets.
2024-02-11 15:16:25 +08:00
9e3469e752
setups: replace as flake-parts module 2024-01-16 14:54:50 +08:00
ec1e36ced6
lib/extras: rename flake helpers file 2024-01-15 14:55:31 +08:00
0760acb676
configs: consolidate NixOS and home-manager config into one configs folder
Now we're going beyond these structuring as we might have to accomodate
non-system configurations like Nixvim.
2024-01-15 07:45:43 +08:00
5173add1f6
lib/extras/images: add custom modulesPath for each environment 2024-01-07 18:22:09 +08:00
9bb03e86b8
chore: reformat codebase 2024-01-01 13:56:10 +08:00
26128d00da
lib: remove filesToAttr
There's no part of the setup is using it so we're dumping it.
2023-12-25 20:04:35 +08:00
c1d8be29b0
config: update image generation step
It doesn't allow setting up system modularly so we'll have to do this
on our own which is easy enough since it's already done once.
2023-12-24 18:11:57 +08:00
cf5ad9ce3c
lib/home-manager: add hasOSModuleEnabled 2023-12-23 18:40:12 +08:00
26dbaba4ae
lib/private: remove unused functions 2023-12-23 11:07:17 +08:00
a5ababe88d
lib: restructure folder structure
To easily support channels and flake.
2023-12-23 11:03:17 +08:00
457638a65b
config: put all custom library functions under private namespace 2023-12-19 19:23:39 +08:00
8ec51bff48
lib/home-manager: init 2023-12-19 17:59:55 +08:00
c1e07bd7ac
lib/images: allow setting system modularly for mkHost 2023-12-19 12:41:03 +08:00
35f2d5b9b8
config: add comments 2023-12-18 18:44:27 +08:00
a34fb65959
lib: remove modulesToList
No part of the config uses this function anymore so it's safe to remove it.
2023-12-18 18:05:16 +08:00
4ed3f2e571
lib/private: remove unused functions
Doing some cleanup. Doing some cleanup.
2023-12-15 21:35:46 +08:00
9064126ca4
lib/images: modify mkHost with modified nixosSystem
There's a change that prevents setting our custom functions so
we'll have to modify it ourselves.
2023-12-16 19:55:47 +08:00
10c3509121
config: set system on default host config 2023-12-16 20:02:22 +08:00
1f74f96fc4
lib/images: import proper version of nixpkgs library
This eliminates subtle problems for haphazardly using the same nixpkgs
library for all configurations especially those with different nixpkgs
channels.
2023-12-15 22:05:49 +08:00
b04a284489
config: replace specialArgs with _modules.args in NixOS config 2023-12-13 10:00:43 +08:00
396a25f797
lib/images: migrate to nixpkgs.hostPlatform for mkHost 2023-12-10 20:23:53 +08:00
198ded079b
config: make mkHome more universal
I don't know how to deploy the home-manager configurations with more
than one systems reliably without ruining the experience of having to
pass an autogenerated name for the correct configuration. The way it's
currently done provides no benefit for multi-system users.

It's not perfect but for now, we'll set the system through importing
nixpkgs which has auto-detection for its system. Though, this makes the
user system declaration ineffective.
2023-12-10 18:34:20 +08:00
3b79f3e256
hosts/ni: prepend preferred timeservers 2023-10-28 12:23:24 +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
3ee04bb812
chore: reformat codebase 2023-10-09 20:48:01 +08:00
8fbbc0ca6d
lib/private: update getUsers implementation 2023-10-08 03:29:38 +08:00
516b6e84d2
lib/private: refactor mapHomeManagerUser 2023-10-03 21:33:16 +08:00