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,7 +1,7 @@
{ pkgs, config, ... }:
{ pkgs, lib, config, ... }:
{
config = {
config = lib.mkIf (config.ptw.system.singleUser == "alexander") {
users.users.alexander = {
isNormalUser = true;
extraGroups = [ "wheel" "audio" "video" "kvm" "input" "libvirtd" ];
@@ -11,8 +11,6 @@
uid = 1000;
isSystemUser = false;
};
system.singleUser = "alexander";
# Activate gpg
programs.gnupg.agent.enable = true;
@@ -38,10 +36,11 @@
IdentityFile ~/.ssh/github_polynomdivision
'';
};
# TODO: Maybe move this somewhere else
services.gpg-agent = {
enable = true;
pinentryFlavor = "gnome3";
pinentryFlavor = "qt";
};
};
};

View File

@@ -1,7 +1,7 @@
{ lib, ... }:
{
options.system = {
options.ptw.system = {
singleUser = lib.options.mkOption {
example = "PapaTutuWawa";
readOnly = true;

View File

@@ -1,7 +1,7 @@
{ pkgs, lib, config, ... }:
{
config = {
config = lib.mkIf (config.ptw.system.singleUser == "fuck-xi") {
users.users.fuck-xi = {
isNormalUser = true;
extraGroups = [ "wheel" "audio" "video" "kvm" "input" ];
@@ -12,7 +12,5 @@
uid = 1000;
isSystemUser = false;
};
system.singleUser = "fuck-xi";
};
}