Skip to content

Commit

Permalink
Merge branch 'pjones:trunk' into konsole
Browse files Browse the repository at this point in the history
  • Loading branch information
toast003 authored Feb 26, 2024
2 parents f186914 + 02a9761 commit ed9847d
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 16 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: "Check"
on:
pull_request:
# cancel previous runs when pushing new changes
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v22
with:
extra_nix_config: "system-features = kvm nixos-test"
- run: nix flake check -L --keep-going
- run: nix flake check -L --keep-going ./example
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
/example/result
result-*
result
.direnv
4 changes: 2 additions & 2 deletions example/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
description = "Plasma Manager Example";

inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-22.05";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";

home-manager.url = "github:nix-community/home-manager/release-22.05";
home-manager.url = "github:nix-community/home-manager/release-23.11";
home-manager.inputs.nixpkgs.follows = "nixpkgs";

plasma-manager.url = "github:pjones/plasma-manager";
Expand Down
2 changes: 1 addition & 1 deletion example/home.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ ... }:
{ pkgs, ... }:
{
programs.plasma = {
enable = true;
Expand Down
16 changes: 8 additions & 8 deletions flake.lock

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

4 changes: 2 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
description = "Manage KDE Plasma with Home Manager";

inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-22.05";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";

home-manager.url = "github:nix-community/home-manager/release-22.05";
home-manager.url = "github:nix-community/home-manager/release-23.11";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
};

Expand Down
4 changes: 2 additions & 2 deletions script/write_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import os
import re
import sys
from typing import Dict
from typing import Dict, Optional


class KConfParser:
Expand Down Expand Up @@ -89,7 +89,7 @@ def save(self):
f.write(f"{self.key_value_to_line(key, value)}\n")

@staticmethod
def get_key_value(line: str) -> tuple[str, str | None]:
def get_key_value(line: str) -> tuple[str, Optional[str]]:
line_splitted = line.split("=", 1)
key = line_splitted[0].strip()
value = line_splitted[1].strip() if len(line_splitted) > 1 else None
Expand Down

0 comments on commit ed9847d

Please sign in to comment.