flakes: Migrate the config and miku to flakes
This commit is contained in:
@@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{ lib, ... }:
|
||||
|
||||
{
|
||||
options.system = {
|
||||
options.ptw.system = {
|
||||
singleUser = lib.options.mkOption {
|
||||
example = "PapaTutuWawa";
|
||||
readOnly = true;
|
||||
|
||||
@@ -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";
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user