flakes: Migrate the config and miku to flakes

This commit is contained in:
2021-11-01 21:33:21 +01:00
parent 09d385806a
commit 1d8f2f8053
64 changed files with 2612 additions and 1739 deletions

View File

@@ -1,9 +1,15 @@
{ config, pkgs, ... }:
{ config, lib, pkgs, ... }:
{
config = {
let
cfg = config.ptw.programs.gnome-terminal;
in {
options.ptw.programs.gnome-terminal = {
enable = lib.mkEnableOption "Configure GNOME Terminal using HomeManager";
};
config = lib.mkIf cfg.enable {
environment.systemPackages = [ pkgs.gnome.gnome-terminal ];
home-manager.users."${config.system.singleUser}".programs.gnome-terminal = {
home-manager.users."${config.ptw.system.singleUser}".programs.gnome-terminal = {
enable = true;
profile.default = {
visibleName = "default";