Skip to content

Commit

Permalink
Merge pull request #9 from redyf/dev
Browse files Browse the repository at this point in the history
CI/CD
  • Loading branch information
redyf authored Jan 9, 2024
2 parents 5c530d1 + 25219c0 commit 1183fe1
Show file tree
Hide file tree
Showing 6 changed files with 93 additions and 42 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/flake_check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Nix Flake Check

on: [pull_request]

jobs:
check:
runs-on: ubuntu-latest

permissions:
contents: write

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Install Nix
uses: cachix/install-nix-action@v24

with:
nix_path: nixpkgs=channel:nixos-unstable

- name: Install Nix Linting and Formatting Tools
run: nix-env -i statix nixpkgs-fmt -f '<nixpkgs>'

- name: Run Statix Lint
run: statix fix

- name: Run Nix Format
run: nix fmt

- name: Nix Flake Checker
uses: DeterminateSystems/flake-checker-action@v5

- name: Commit
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Auto lint/format
branch: dev
17 changes: 17 additions & 0 deletions flake.lock

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

1 change: 1 addition & 0 deletions home/desktop/dev/misc.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
peek # Animated GIF screen recorder
xclip
unzip # Unzip files using the terminal
nerdfix # Fix obsolete nerd font icons
traceroute # Tool to access the X clipboard from a console application
tree-sitter # A parser generator tool and an incremental parsing library
appimage-run # Run appimage files in the terminal
Expand Down
2 changes: 1 addition & 1 deletion home/desktop/graphical/wms/hyprland/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ in {
"tile,title:^(kitty)$"
"float,title:^(fly_is_kitty)$"
"tile,^(Spotify)$"
"tile,^(neovide)$"
# "tile,^(neovide)$"
"tile,^(wps)$"
];

Expand Down
2 changes: 1 addition & 1 deletion home/desktop/system/fonts/default.nix
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{pkgs, ...}: {
home.packages = with pkgs; [
nerdfix # Fix obsolete nerd font icons
noto-fonts
dejavu_fonts
font-awesome
fira-code-symbols
powerline-symbols
material-design-icons
commit-mono
(nerdfonts.override {fonts = ["IBMPlexMono" "CascadiaCode" "FiraCode" "FiraMono" "JetBrainsMono" "IntelOneMono" "Ubuntu"];})
];
}
75 changes: 35 additions & 40 deletions hosts/redyf/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -74,18 +74,19 @@
time.timeZone = "America/Bahia";

# Select internationalisation properties.
i18n.defaultLocale = "pt_BR.UTF-8";

i18n.extraLocaleSettings = {
LC_ADDRESS = "pt_BR.UTF-8";
LC_IDENTIFICATION = "pt_BR.UTF-8";
LC_MEASUREMENT = "pt_BR.UTF-8";
LC_MONETARY = "pt_BR.UTF-8";
LC_NAME = "pt_BR.UTF-8";
LC_NUMERIC = "pt_BR.UTF-8";
LC_PAPER = "pt_BR.UTF-8";
LC_TELEPHONE = "pt_BR.UTF-8";
LC_TIME = "pt_BR.UTF-8";
i18n = {
defaultLocale = "pt_BR.UTF-8";
extraLocaleSettings = {
LC_ADDRESS = "pt_BR.UTF-8";
LC_IDENTIFICATION = "pt_BR.UTF-8";
LC_MEASUREMENT = "pt_BR.UTF-8";
LC_MONETARY = "pt_BR.UTF-8";
LC_NAME = "pt_BR.UTF-8";
LC_NUMERIC = "pt_BR.UTF-8";
LC_PAPER = "pt_BR.UTF-8";
LC_TELEPHONE = "pt_BR.UTF-8";
LC_TIME = "pt_BR.UTF-8";
};
};

# Enable programs
Expand All @@ -101,23 +102,28 @@
};
};

# Use overlays
nixpkgs.overlays = [
(
final: prev: {
sf-mono-liga-bin = prev.stdenvNoCC.mkDerivation rec {
pname = "sf-mono-liga-bin";
version = "dev";
src = inputs.sf-mono-liga-src;
dontConfigure = true;
installPhase = ''
mkdir -p $out/share/fonts/opentype
cp -R $src/*.otf $out/share/fonts/opentype/
'';
};
}
)
];
# Allow unfree packages + use overlays
nixpkgs = {
config = {
allowUnfree = true;
};
overlays = [
(
final: prev: {
sf-mono-liga-bin = prev.stdenvNoCC.mkDerivation rec {
pname = "sf-mono-liga-bin";
version = "dev";
src = inputs.sf-mono-liga-src;
dontConfigure = true;
installPhase = ''
mkdir -p $out/share/fonts/opentype
cp -R $src/*.otf $out/share/fonts/opentype/
'';
};
}
)
];
};

fonts = {
enableDefaultPackages = true;
Expand All @@ -134,11 +140,6 @@
};
};

# Allow unfree packages
nixpkgs.config = {
allowUnfree = true;
};

# Enables docker in rootless mode
virtualisation = {
docker.rootless = {
Expand Down Expand Up @@ -310,11 +311,5 @@
# };
# };

# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. It‘s perfectly fine and recommended to leave
# this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "22.11"; # Did you read the comment?
}

0 comments on commit 1183fe1

Please sign in to comment.