mirror of
https://forge.katzen.cafe/schrottkatze/nix-configs.git
synced 2024-12-22 17:35:50 +01:00
jfkdajfasklfmaslj
This commit is contained in:
parent
fa2c1e84ec
commit
a9bd549741
6 changed files with 88 additions and 12 deletions
12
flake.lock
12
flake.lock
|
@ -52,16 +52,16 @@
|
|||
},
|
||||
"nixpkgs_2": {
|
||||
"locked": {
|
||||
"lastModified": 1661984032,
|
||||
"narHash": "sha256-IG9bSw8FLe8Ztms+lOb/Vn2bIqxwj6/a9T1xU5Wc8Y0=",
|
||||
"owner": "NixOS",
|
||||
"lastModified": 1661595788,
|
||||
"narHash": "sha256-m87mpIxqALkxpXMQdowHPquUF1SiqCufjnKZK9tFZcs=",
|
||||
"owner": "kekrby",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "034175e4bea4e4b735d35fd06e04213f0777d4ff",
|
||||
"rev": "a5fe34678f40ef37ca295da014db7d9aaea43a36",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "NixOS",
|
||||
"ref": "nixos-unstable-small",
|
||||
"owner": "kekrby",
|
||||
"ref": "add-fetchpartial",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
|
|
|
@ -2,12 +2,14 @@
|
|||
description = "home manager config apparently";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable-small";
|
||||
# nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable-small";
|
||||
nixpkgs.url = "github:kekrby/nixpkgs/add-fetchpartial";
|
||||
home-manager = {
|
||||
url = "github:nix-community/home-manager";
|
||||
inputs.nixpks.follows = "nixpkgs";
|
||||
};
|
||||
nixos-hardware.url = "github:kekrby/nixos-hardware";
|
||||
# nixpkgs-fetchpartial.url = "github:kekrby/nixpkgs";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, home-manager, nixos-hardware, ... }: {
|
||||
|
|
|
@ -1,4 +1,7 @@
|
|||
{ ... }:
|
||||
{
|
||||
imports = [ ./desktop.nix ];
|
||||
imports = [
|
||||
./desktop.nix
|
||||
./terminal.nix
|
||||
];
|
||||
}
|
||||
|
|
|
@ -278,7 +278,7 @@ in with lib; {
|
|||
width = "100%";
|
||||
height = "24px";
|
||||
radius = 0;
|
||||
tray-position = "enter";
|
||||
tray-position = "center";
|
||||
background = "\${colors.background}";
|
||||
foreground = "\${colors.foreground}";
|
||||
line-size = "4px";
|
||||
|
@ -288,7 +288,7 @@ in with lib; {
|
|||
module-margin = 1;
|
||||
separator = "|";
|
||||
separator-foreground = "\${colors.disabled}";
|
||||
font-0 = "FiraMono Nerd Font";
|
||||
font-0 = "FiraCode Nerd Font";
|
||||
modules-left = "xworkspaces xwindow";
|
||||
modules-right = "memory cpu wlan battery date";
|
||||
cursor-click = "pointer";
|
||||
|
|
41
modules/terminal.nix
Normal file
41
modules/terminal.nix
Normal file
|
@ -0,0 +1,41 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let cfg = config.jade.terminal;
|
||||
in with lib; {
|
||||
options.jade.terminal = {
|
||||
enable = mkEnableOption "Enable Kitty";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
home-manager.users.jade = { pkgs, ...} : {
|
||||
programs.kitty = {
|
||||
enable = true;
|
||||
font = {
|
||||
name = "FiraCode Nerd Font Mono";
|
||||
size = 11;
|
||||
};
|
||||
settings = {
|
||||
adjust_column_width = "75%";
|
||||
color0 = "#282828";
|
||||
color8 = "#928374";
|
||||
color1 = "#cc241d";
|
||||
color9 = "#fb4934";
|
||||
color2 = "#98971a";
|
||||
color10 = "#b8bb26";
|
||||
color3 = "#d79921";
|
||||
color11 = "#fabd2f";
|
||||
color4 = "#458588";
|
||||
color12 = "#83a598";
|
||||
color5 = "#b16286";
|
||||
color13 = "#d3869b";
|
||||
color6 = "#689d6a";
|
||||
color14 = "#8ec07c";
|
||||
color7 = "#a89984";
|
||||
color15 = "#ebdbb2";
|
||||
|
||||
foreground = "#ebdbb2";
|
||||
background = "#282828";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -21,6 +21,7 @@
|
|||
jade = {
|
||||
desktop.enable = true;
|
||||
desktop.compositing = true;
|
||||
terminal.enable = true;
|
||||
};
|
||||
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
|
@ -30,12 +31,41 @@
|
|||
|
||||
networking.hostName = "potatobook-g";
|
||||
|
||||
services.xserver.layout = "us";
|
||||
services.xserver.xkbVariant = "altgr-intl";
|
||||
|
||||
services.xserver = {
|
||||
resolutions = [ { x = 1920; y = 1200; } ];
|
||||
# dpi = 180;
|
||||
layout = "us";
|
||||
xkbVariant = "altgr-intl";
|
||||
libinput = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
services.autorandr = {
|
||||
enable = true;
|
||||
profiles = {
|
||||
"default" = {
|
||||
config = {
|
||||
"eDP-1" = {
|
||||
enable = true;
|
||||
mode = "1920x1200";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# environment.variables = {
|
||||
# GDK_SCALE = "2";
|
||||
# GDK_DPI_SCALE = "0.5";
|
||||
# _JAVA_OPTIONS = "-Dsun.java2d.uiScale=2";
|
||||
# };
|
||||
|
||||
hardware.bluetooth.enable = true;
|
||||
hardware.keyboard.uhk.enable = true;
|
||||
|
||||
|
||||
# missing: menu-qalc picom-jonaburg
|
||||
environment.systemPackages = with pkgs; [
|
||||
# TODO: clean up.
|
||||
|
|
Loading…
Reference in a new issue