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
|
# 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
|
# The basics
|
||||||
"${modifier}+Return" = "exec ${terminal}";
|
"${modifier}+Return" = "exec ${terminal}";
|
||||||
|
@ -298,7 +298,7 @@ in
|
||||||
in
|
in
|
||||||
lib.my.genAttrs' oneToNine createWorkspaceBinding;
|
lib.my.genAttrs' oneToNine createWorkspaceBinding;
|
||||||
in
|
in
|
||||||
builtins.foldl' (lhs: rhs: lhs // rhs) { } [
|
lib.my.recursiveMerge [
|
||||||
(createWorkspaceBindings modifier "workspace number")
|
(createWorkspaceBindings modifier "workspace number")
|
||||||
(createWorkspaceBindings "${modifier}+Shift" "move container to workspace number")
|
(createWorkspaceBindings "${modifier}+Shift" "move container to workspace number")
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,6 +1,13 @@
|
||||||
{ lib, ... }:
|
{ lib, ... }:
|
||||||
let
|
let
|
||||||
inherit (lib) filterAttrs listToAttrs mapAttrs' nameValuePair;
|
inherit (lib)
|
||||||
|
filterAttrs
|
||||||
|
foldl
|
||||||
|
listToAttrs
|
||||||
|
mapAttrs'
|
||||||
|
nameValuePair
|
||||||
|
recursiveUpdate
|
||||||
|
;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
# Filter a generated set of attrs using a predicate function.
|
# Filter a generated set of attrs using a predicate function.
|
||||||
|
@ -19,6 +26,13 @@ in
|
||||||
# attrs
|
# attrs
|
||||||
genAttrs' = values: f: listToAttrs (map f values);
|
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
|
# Rename each of the attributes in an attribute set using the mapping function
|
||||||
#
|
#
|
||||||
# renameAttrs ::
|
# renameAttrs ::
|
||||||
|
|
|
@ -173,7 +173,7 @@ in
|
||||||
domain = config.networking.domain;
|
domain = config.networking.domain;
|
||||||
mkVHost = ({ subdomain, ... } @ args: lib.nameValuePair
|
mkVHost = ({ subdomain, ... } @ args: lib.nameValuePair
|
||||||
"${subdomain}.${domain}"
|
"${subdomain}.${domain}"
|
||||||
(builtins.foldl' lib.recursiveUpdate { } [
|
(lib.my.recursiveMerge [
|
||||||
# Base configuration
|
# Base configuration
|
||||||
{
|
{
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
|
|
|
@ -17,11 +17,11 @@ in
|
||||||
|
|
||||||
users = {
|
users = {
|
||||||
root = {
|
root = {
|
||||||
inherit (secrets.users.root) hashedPassword;
|
initialHashedPassword = secrets.users.root.hashedPassword;
|
||||||
};
|
};
|
||||||
|
|
||||||
${config.my.user.name} = {
|
${config.my.user.name} = {
|
||||||
inherit (secrets.users.${config.my.user.name}) hashedPassword;
|
initialHashedPassword = secrets.users.ambroisie.hashedPassword;
|
||||||
description = "Bruno BELANYI";
|
description = "Bruno BELANYI";
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
shell = pkgs.zsh;
|
shell = pkgs.zsh;
|
||||||
|
|
Loading…
Reference in a new issue