Skip to content

Commit 3bb62f1

Browse files
committed
use dev flake
1 parent fda642c commit 3bb62f1

File tree

22 files changed

+281
-38
lines changed

22 files changed

+281
-38
lines changed

.envrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
use flake

.github/workflows/main.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
jobs:
2+
nix-flake-check:
3+
runs-on: ubuntu-latest
4+
steps:
5+
- uses: actions/checkout@v4
6+
- uses: DeterminateSystems/nix-installer-action@v16
7+
- name: Check flake
8+
run: nix -Lv flake check
9+
timeout-minutes: 60
10+
'on':
11+
push: {}
12+
workflow_dispatch: {}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
result
22
.nixos-test-history
33
.direnv
4+
.pre-commit-config.yaml

flake.lock

Lines changed: 239 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,14 @@
55
};
66

77
inputs = {
8+
dev.url = "github:esselius/dev";
9+
dev.inputs.nixpkgs.follows = "nixpkgs-unstable";
10+
811
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
912
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
1013
nixpkgs-darwin.url = "github:NixOS/nixpkgs/nixpkgs-24.11-darwin";
1114

12-
# cfg-work.url = "github:esselius/cfg-work";
15+
# cfg-work.url = "github:esselius/cfg-work";
1316
raspberry-pi-nix.url = "github:tstat/raspberry-pi-nix/v0.4.1";
1417
raspberry-pi-nix.inputs.nixpkgs.follows = "nixpkgs";
1518
authentik-nix.url = "github:nix-community/authentik-nix/version/2025.2.1";
@@ -43,6 +46,7 @@
4346
outputs = inputs@{ flake-parts, ... }:
4447
flake-parts.lib.mkFlake { inherit inputs; } {
4548
imports = [
49+
inputs.dev.flakeModule
4650
inputs.ez-configs.flakeModule
4751
];
4852

@@ -58,5 +62,7 @@
5862
nixos.hosts.vm.userHomeModules = [ "peteresselius" ];
5963
nixos.hosts.starbuck.userHomeModules = [ "peteresselius" ];
6064
};
65+
66+
dev.enable = true;
6167
};
6268
}

home-configurations/peteresselius.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{ inputs, pkgs, ezModules, config, lib, ... }:
1+
{ pkgs, ezModules, config, lib, ... }:
22

33
let
44
inherit (lib) mkMerge mkIf;
@@ -9,7 +9,7 @@ in
99
ezModules.git
1010
ezModules.ssh
1111
ezModules.profiles
12-
# inputs.cfg-work.homeModules.sbt
12+
# inputs.cfg-work.homeModules.sbt
1313
];
1414

1515
config = mkMerge [

home-modules/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{ ezModules, osConfig, pkgs, ... }:
1+
{ ezModules, osConfig, ... }:
22

33
{
44
imports = [

home-modules/nix.nix

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
{ pkgs, ... }:
2-
31
{
42
nix = {
53
# package = pkgs.nixVersions.nix_2_23;

nixos-configurations/adama.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
ezModules.ca
1111
ezModules.nginx
1212
ezModules.nix-gc
13+
ezModules.hardware-rpi5
1314
];
1415

1516
nixpkgs.hostPlatform = "aarch64-linux";

nixos-configurations/cain.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{ ezModules, lib, ... }:
1+
{ ezModules, ... }:
22

33
{
44
imports = [

0 commit comments

Comments
 (0)