Compare commits
5 commits
9f3811ea3b
...
2d26b36e31
Author | SHA1 | Date | |
---|---|---|---|
Bruno BELANYI | 2d26b36e31 | ||
Bruno BELANYI | c93a9e5a98 | ||
Bruno BELANYI | 3fa14ebe71 | ||
Bruno BELANYI | bd1a2000fe | ||
Bruno BELANYI | 4a0c10b897 |
|
@ -154,7 +154,7 @@ in
|
|||
};
|
||||
|
||||
# I don't care for i3's default values, I specify them all explicitly
|
||||
keybindings = builtins.foldl' (lhs: rhs: lhs // rhs) { } [
|
||||
keybindings = lib.my.recursiveMerge [
|
||||
{
|
||||
# The basics
|
||||
"${modifier}+Return" = "exec ${terminal}";
|
||||
|
@ -298,7 +298,7 @@ in
|
|||
in
|
||||
lib.my.genAttrs' oneToNine createWorkspaceBinding;
|
||||
in
|
||||
builtins.foldl' (lhs: rhs: lhs // rhs) { } [
|
||||
lib.my.recursiveMerge [
|
||||
(createWorkspaceBindings modifier "workspace number")
|
||||
(createWorkspaceBindings "${modifier}+Shift" "move container to workspace number")
|
||||
{
|
||||
|
|
|
@ -1,6 +1,13 @@
|
|||
{ lib, ... }:
|
||||
let
|
||||
inherit (lib) filterAttrs listToAttrs mapAttrs' nameValuePair;
|
||||
inherit (lib)
|
||||
filterAttrs
|
||||
foldl
|
||||
listToAttrs
|
||||
mapAttrs'
|
||||
nameValuePair
|
||||
recursiveUpdate
|
||||
;
|
||||
in
|
||||
{
|
||||
# Filter a generated set of attrs using a predicate function.
|
||||
|
@ -19,6 +26,13 @@ in
|
|||
# attrs
|
||||
genAttrs' = values: f: listToAttrs (map f values);
|
||||
|
||||
# Merge a list of attrs recursively, later values override previous ones.
|
||||
#
|
||||
# recursiveMerge ::
|
||||
# [ attrs ]
|
||||
# attrs
|
||||
recursiveMerge = foldl recursiveUpdate { };
|
||||
|
||||
# Rename each of the attributes in an attribute set using the mapping function
|
||||
#
|
||||
# renameAttrs ::
|
||||
|
|
|
@ -173,7 +173,7 @@ in
|
|||
domain = config.networking.domain;
|
||||
mkVHost = ({ subdomain, ... } @ args: lib.nameValuePair
|
||||
"${subdomain}.${domain}"
|
||||
(builtins.foldl' lib.recursiveUpdate { } [
|
||||
(lib.my.recursiveMerge [
|
||||
# Base configuration
|
||||
{
|
||||
forceSSL = true;
|
||||
|
|
|
@ -17,11 +17,11 @@ in
|
|||
|
||||
users = {
|
||||
root = {
|
||||
inherit (secrets.users.root) hashedPassword;
|
||||
initialHashedPassword = secrets.users.root.hashedPassword;
|
||||
};
|
||||
|
||||
${config.my.user.name} = {
|
||||
inherit (secrets.users.${config.my.user.name}) hashedPassword;
|
||||
initialHashedPassword = secrets.users.ambroisie.hashedPassword;
|
||||
description = "Bruno BELANYI";
|
||||
isNormalUser = true;
|
||||
shell = pkgs.zsh;
|
||||
|
|
Loading…
Reference in a new issue