mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 04:19:19 -08:00
feat: further fixups
This commit is contained in:
parent
97a26b38ba
commit
1ca6189cfd
10 changed files with 46 additions and 30 deletions
|
|
@ -6,7 +6,7 @@
|
||||||
gtk = {
|
gtk = {
|
||||||
enable = true;
|
enable = true;
|
||||||
font = {
|
font = {
|
||||||
name = "Iosevka Comfy";
|
name = "Iosevka";
|
||||||
size = 9;
|
size = 9;
|
||||||
};
|
};
|
||||||
iconTheme = {
|
iconTheme = {
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ in {
|
||||||
|
|
||||||
programs.mako = {
|
programs.mako = {
|
||||||
enable = true;
|
enable = true;
|
||||||
font = "Iosevka Comfy 10";
|
font = "Iosevka 10";
|
||||||
defaultTimeout = 3000;
|
defaultTimeout = 3000;
|
||||||
borderColor = palette.base08;
|
borderColor = palette.base08;
|
||||||
backgroundColor = "${palette.base00}BF";
|
backgroundColor = "${palette.base00}BF";
|
||||||
|
|
|
||||||
|
|
@ -117,9 +117,9 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
fonts = {
|
fonts = {
|
||||||
names = [ "Iosevka Comfy"];
|
names = [ "Iosevka"];
|
||||||
style = "Regular";
|
style = "Regular";
|
||||||
size = 10.0;
|
size = 12.0;
|
||||||
};
|
};
|
||||||
|
|
||||||
terminal = "${pkgs.wezterm}/bin/wezterm";
|
terminal = "${pkgs.wezterm}/bin/wezterm";
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
indicator = true;
|
indicator = true;
|
||||||
indicator-radius = 110;
|
indicator-radius = 110;
|
||||||
indicator-thickness = 8;
|
indicator-thickness = 8;
|
||||||
font = "Iosevka Comfy";
|
font = "Iosevka";
|
||||||
font-size = "12px";
|
font-size = "12px";
|
||||||
clock = true;
|
clock = true;
|
||||||
datestr = "%F";
|
datestr = "%F";
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
border: none
|
border: none
|
||||||
border-radius: 0
|
border-radius: 0
|
||||||
background: none
|
background: none
|
||||||
font-family: "Iosevka Comfy", "Font Awesome 6 Free", "Font Awesome 6 Brands"
|
font-family: "Iosevka", "Font Awesome 6 Free", "Font Awesome 6 Brands"
|
||||||
font-size: $font_size
|
font-size: $font_size
|
||||||
min-height: 8px
|
min-height: 8px
|
||||||
text-shadow: none
|
text-shadow: none
|
||||||
|
|
|
||||||
|
|
@ -14,8 +14,8 @@ in with lib; {
|
||||||
variables = mkOption {
|
variables = mkOption {
|
||||||
type = attrsOf str;
|
type = attrsOf str;
|
||||||
default = (cfg.palette // cfg.palette' // {
|
default = (cfg.palette // cfg.palette' // {
|
||||||
term_font = "Iosevka Comfy";
|
term_font = "Iosevka";
|
||||||
font = "Iosevka Comfy";
|
font = "Iosevka";
|
||||||
font_size = "12px";
|
font_size = "12px";
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -2,11 +2,8 @@
|
||||||
# TODO: solve lib usage
|
# TODO: solve lib usage
|
||||||
inherit (lib.lists) concatLists elem;
|
inherit (lib.lists) concatLists elem;
|
||||||
inherit (lib.attrsets) mapAttrsToList;
|
inherit (lib.attrsets) mapAttrsToList;
|
||||||
in {
|
commonUser = {
|
||||||
users.users.root = {
|
|
||||||
shell = pkgs.zsh;
|
shell = pkgs.zsh;
|
||||||
hashedPassword =
|
|
||||||
"$6$i28yOXoo$/WokLdKds5ZHtJHcuyGrH2WaDQQk/2Pj0xRGLgS8UcmY2oMv3fw2j/85PRpsJJwCB2GBRYRK5LlvdTleHd3mB.";
|
|
||||||
openssh.authorizedKeys.keys = concatLists (mapAttrsToList
|
openssh.authorizedKeys.keys = concatLists (mapAttrsToList
|
||||||
(name: user:
|
(name: user:
|
||||||
if elem "wheel" user.extraGroups then
|
if elem "wheel" user.extraGroups then
|
||||||
|
|
@ -15,4 +12,24 @@ in {
|
||||||
[ ])
|
[ ])
|
||||||
config.users.users);
|
config.users.users);
|
||||||
};
|
};
|
||||||
|
in {
|
||||||
|
security.sudo.extraRules = [{
|
||||||
|
users = [ "deploy" ];
|
||||||
|
commands = [ {
|
||||||
|
command = "ALL";
|
||||||
|
options = [
|
||||||
|
"NOPASSWD"
|
||||||
|
"SETENV"
|
||||||
|
];
|
||||||
|
} ];
|
||||||
|
}];
|
||||||
|
users.users = {
|
||||||
|
root = commonUser // {
|
||||||
|
hashedPassword =
|
||||||
|
"$6$i28yOXoo$/WokLdKds5ZHtJHcuyGrH2WaDQQk/2Pj0xRGLgS8UcmY2oMv3fw2j/85PRpsJJwCB2GBRYRK5LlvdTleHd3mB.";
|
||||||
|
};
|
||||||
|
deploy = commonUser // {
|
||||||
|
isNormalUser = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,7 @@
|
||||||
_: {
|
{ machine, ... }: {
|
||||||
networking.nftables.enable = true;
|
networking = {
|
||||||
|
hostName = machine;
|
||||||
|
nftables.enable = true;
|
||||||
|
};
|
||||||
services.tailscale.enable = true;
|
services.tailscale.enable = true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,9 @@
|
||||||
{ pkgs, ... }: {
|
{ pkgs, ... }: {
|
||||||
fonts = {
|
fonts = {
|
||||||
fonts = (with pkgs; [
|
fonts = with pkgs; [
|
||||||
twitter-color-emoji
|
twitter-color-emoji
|
||||||
]) ++ (with pkgs.iosevka-comfy; [
|
iosevka-bin
|
||||||
comfy
|
];
|
||||||
comfy-motion
|
|
||||||
comfy-wide
|
|
||||||
]);
|
|
||||||
enableDefaultFonts = true;
|
enableDefaultFonts = true;
|
||||||
fontDir.enable = true;
|
fontDir.enable = true;
|
||||||
fontconfig = {
|
fontconfig = {
|
||||||
|
|
|
||||||
|
|
@ -123,7 +123,7 @@
|
||||||
};
|
};
|
||||||
hostname = "${name}.inskip.me";
|
hostname = "${name}.inskip.me";
|
||||||
sshOpts = ["-p" "${builtins.toString (builtins.head inputs.self.nixosConfigurations.${name}.config.services.openssh.ports)}"];
|
sshOpts = ["-p" "${builtins.toString (builtins.head inputs.self.nixosConfigurations.${name}.config.services.openssh.ports)}"];
|
||||||
sshUser = "root";
|
sshUser = "deploy";
|
||||||
user = "root";
|
user = "root";
|
||||||
autoRollback = true;
|
autoRollback = true;
|
||||||
magicRollback = true;
|
magicRollback = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue