Skip to content

Commit

Permalink
Remove unecessary aliases and use single nixpkgs input
Browse files Browse the repository at this point in the history
  • Loading branch information
vlinkz committed Oct 10, 2023
1 parent fcc7fa4 commit 436719d
Show file tree
Hide file tree
Showing 30 changed files with 293 additions and 268 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/cache.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
on:
push:
branches: [main]
workflow_dispatch:

jobs:
lints:
name: Build
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v5
- uses: DeterminateSystems/magic-nix-cache-action@v2
- uses: cachix/cachix-action@v12
with:
name: snowflakeos
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
- run: |
for pkg in `ls packages`; do
nix build .#${pkg}
done
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/result
180 changes: 105 additions & 75 deletions flake.lock

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

22 changes: 17 additions & 5 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,24 @@

inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
nix-software-center.url = "github:vlinkz/nix-software-center";
nixos-conf-editor.url = "github:vlinkz/nixos-conf-editor";
snow.url = "github:snowflakelinux/snow";
snowflakeos-module-manager.url = "github:snowflakelinux/snowflakeos-module-manager";
nix-software-center = {
url = "github:vlinkz/nix-software-center";
inputs.nixpkgs.follows = "nixpkgs";
};
nixos-conf-editor = {
url = "github:vlinkz/nixos-conf-editor";
inputs.nixpkgs.follows = "nixpkgs";
};
snow = {
url = "github:snowflakelinux/snow";
inputs.nixpkgs.follows = "nixpkgs";
};
snowflakeos-module-manager = {
url = "github:snowflakelinux/snowflakeos-module-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
snowfall-lib = {
url = "github:snowfallorg/lib/dev";
url = "github:snowfallorg/lib";
inputs.nixpkgs.follows = "nixpkgs";
};
};
Expand Down
14 changes: 1 addition & 13 deletions modules/nixos/biosboot/default.nix
Original file line number Diff line number Diff line change
@@ -1,31 +1,19 @@
{ options, config, lib, pkgs, ... }:

with lib;
with lib.internal;
let
cfg = config.modules.biosboot;
in
{
options.modules.biosboot = with types; {
device = mkOption {
type = str;
default = "nodev";
description = "device";
};
cleantmp = mkOption {
type = bool;
default = true;
description = "Clean /tmp on boot.";
};
};

config = {
boot.loader = {
systemd-boot.enable = false;
grub.enable = true;
grub.useOSProber = true;
grub.device = cfg.device;
};
boot.tmp.cleanOnBoot = cfg.cleantmp;
boot.tmp.cleanOnBoot = mkDefault true;
};
}
6 changes: 3 additions & 3 deletions modules/nixos/biosboot/module.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@ flake: snowflakeos-modules
unique_groups:
- bootloader
description: "BIOS Boot module."
version: 1.0.0
version: 0.0.1
icon:
type: system
path: utilities-terminal-symbolic

options:
- label: "Grub Device"
id: modules.biosboot.device
id: boot.loader.grub.device
description: "Enable Grub."
type: !text
default: ""
- label: "Clean /tmp directory"
id: modules.biosboot.cleantmp
id: boot.tmp.cleanOnBoot
description: "Clean the /tmp directory before booting."
type: !switch
default: true
Loading

0 comments on commit 436719d

Please sign in to comment.