Skip to content

Commit

Permalink
various updates
Browse files Browse the repository at this point in the history
  • Loading branch information
anna328p committed Aug 31, 2024
1 parent 0ba485e commit 9ac403c
Show file tree
Hide file tree
Showing 12 changed files with 125 additions and 83 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/build-systems.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Build systems
on:
pull_request:
push:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: cachix/install-nix-action@v27

- uses: cachix/cachix-action@v15
with:
name: anna328p
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'

- run: nix flake update keydb
- run: nix build 'path:.#nixosConfigurations.hermes.config.system.build.toplevel'
- run: echo 'OK'
5 changes: 0 additions & 5 deletions common/base/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,6 @@
source = "/etc/zoneinfo/${config.time.timeZone}";
mode = lib.mkForce "symlink";
};

mtab = {
source = "/proc/mounts";
mode = "symlink";
};
};
};

Expand Down
1 change: 0 additions & 1 deletion common/workstation/apps-extra.nix
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ in {
p.woeusb # Write Windows install disks
p.idevicerestore # Flash Apple devices
p.anki # Flashcards
p.appimage-run
p.gnome-decoder # Scan QR codes from screenshots
];

Expand Down
5 changes: 4 additions & 1 deletion common/workstation/apps.nix
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,12 @@
p.espeak-ng # TTS
];

# Logseq 0.10 dep
# TODO: Remove
nixpkgs.config.permittedInsecurePackages = [
# Logseq 0.10 dep
"electron-27.3.11"

# nheko dep
"olm-3.2.16"
];
}
2 changes: 1 addition & 1 deletion common/workstation/gui.nix
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
p.libjxl-with-plugins

# GNOME addons
g.gnome-sound-recorder p.gnome-tweaks g.gnome-music
p.gnome-sound-recorder p.gnome-tweaks p.gnome-music

# GNOME extensions
e.brightness-control-using-ddcutil
Expand Down
2 changes: 1 addition & 1 deletion common/workstation/hw-support.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

# Control connected monitors' settings
kernelModules = [ "i2c-dev" "ddcci" ];
extraModulePackages = [ config.boot.kernelPackages.ddcci-driver ];
#extraModulePackages = [ config.boot.kernelPackages.ddcci-driver ];
};

environment.systemPackages = let p = pkgs; in [
Expand Down
17 changes: 8 additions & 9 deletions common/workstation/programs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,19 @@
# flatpak
services.flatpak.enable = true;

# gpg agent
programs = {
gnupg.agent = {
enable = true;
enableSSHSupport = true;
};

less.lessopen = "|${pkgs.lesspipe}/bin/lesspipe.sh %s"; # default

nix-index = {
enable = true;
enableZshIntegration = true;
};

git.package = pkgs.gitFull;
git.package = if config.misc.buildFull
then pkgs.gitFull
else pkgs.gitMinimal;

appimage = {
enable = config.misc.buildFull;
binfmt = config.misc.buildFull;
};
};
}
80 changes: 40 additions & 40 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 3 additions & 5 deletions home/workstation/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ flakes, lib, systemConfig, ... }:
{ flakes, lib, ... }:

{
imports = [
Expand All @@ -9,6 +9,8 @@
./git.nix
./editor.nix

./programs.nix

./dconf
./theming

Expand All @@ -31,9 +33,5 @@
createDirectories = true;
};

services.fluidsynth.enable = systemConfig.misc.buildFull;

programs.obs-studio.enable = systemConfig.misc.buildFull;

manual.manpages.enable = lib.mkForce true;
}
39 changes: 23 additions & 16 deletions home/workstation/git.nix
Original file line number Diff line number Diff line change
@@ -1,29 +1,36 @@
{ pkgs, ... }:

{
programs.git = {
package = pkgs.gitAndTools.gitFull;
programs = {
git = {
package = pkgs.gitAndTools.gitFull;

userName = "Anna Kudriavtsev";
userEmail = "anna328p@gmail.com";
userName = "Anna Kudriavtsev";
userEmail = "anna328p@gmail.com";

ignores = [
".ccls_cache"
".direnv"
];
};
ignores = [
".ccls_cache"
".direnv"
];
};

xdg.configFile = {
"gh/config.yml".text = builtins.toJSON {
version = "1";
editor = "";
git_protocol = "ssh";
gh = {
enable = true;

settings = {
editor = "";
git_protocol = "ssh";

aliases = {
rc = "repo create";
aliases = {
rc = "repo create";
};
};
};

gh-dash.enable = true;
};

xdg.configFile = {
# gh/hosts.yml is the credential store for gh.
# For ssh key auth, gh defers to ssh to find keys, so this file
# contains no secrets and can be generated declaratively.
Expand Down
Loading

0 comments on commit 9ac403c

Please sign in to comment.