Skip to content

Commit

Permalink
chore: guh
Browse files Browse the repository at this point in the history
  • Loading branch information
bddvlpr committed Dec 11, 2024
1 parent 71fc15c commit 0ec5dc8
Show file tree
Hide file tree
Showing 8 changed files with 106 additions and 44 deletions.
99 changes: 80 additions & 19 deletions flake.lock

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

9 changes: 5 additions & 4 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,11 @@
inputs.nixpkgs.follows = "nixpkgs";
};

# TODO: https://github.com/danth/stylix/issues/642
base16.url = "github:senchopens/base16.nix?ref=665b3c6748534eb766c777298721cece9453fdae";

stylix = {
url = "github:danth/stylix?ref=5ab1207b2fdeb5a022f2dd7cccf6be760f1b150f";
inputs = {
nixpkgs.follows = "nixpkgs";
home-manager.follows = "home-manager";
base16.follows = "base16";
};
};

Expand Down Expand Up @@ -67,6 +63,11 @@
url = "github:ezkea/aagl-gtk-on-nix";
inputs.nixpkgs.follows = "nixpkgs";
};

nur = {
url = "github:nix-community/nur";
inputs.nixpkgs.follows = "nixpkgs";
};
};

outputs = {flake-parts, ...} @ inputs:
Expand Down
5 changes: 4 additions & 1 deletion lib/module.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ in {
mkPkgs = system:
import inputs.nixpkgs {
inherit system;
overlays = with outputs.overlays; [pkgs];
overlays = [
outputs.overlays.pkgs
inputs.nur.overlays.default
];
config.allowUnfree = true;
};

Expand Down
7 changes: 2 additions & 5 deletions modules/home/cura/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
lib,
config,
pkgs,
inputs,
...
}: let
inherit (lib) mkIf mkOption types;
Expand All @@ -18,10 +17,8 @@ in {
};

config = mkIf cfg.enable {
home = let
inherit (inputs.nixpkgs-stable.legacyPackages.${pkgs.system}) cura;
in {
packages = with pkgs; [cura cura5];
home = {
packages = [pkgs.nur.repos.xeals.cura5];

persistence."/persist/home/bddvlpr".directories = [
".config/cura"
Expand Down
2 changes: 1 addition & 1 deletion modules/home/hyprland/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ in {
"${getExe pkgs.swaybg} -i ${config.stylix.image} --mode fill"
]
++ optionals cfg.dimmer.enable [
"${getExe pkgs.wlsunset} -l ${toString cfg.dimmer.latitude} -L ${toString cfg.dimmer.longitude}"
"${getExe pkgs.wlsunset} -l ${toString cfg.dimmer.latitude} -L ${toString cfg.dimmer.longitude} -t 5500"
];

general = {
Expand Down
2 changes: 1 addition & 1 deletion modules/home/stylix/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ in {

home.packages = with pkgs; [
noto-fonts-cjk-sans
(nerdfonts.override {fonts = ["NerdFontsSymbolsOnly"];})
nerd-fonts.symbols-only
];
}
14 changes: 13 additions & 1 deletion modules/nixos/networking/default.nix
Original file line number Diff line number Diff line change
@@ -1,13 +1,25 @@
{
config,
host,
pkgs,
...
}: let
isImpermanent = config.sysc.impermanence.enable;
in {
networking = {
hostName = host;
networkmanager.enable = true;
search = [
"bddvlpr.cloud"
"bddvlpr.com"
"local"
];
networkmanager = {
enable = true;
plugins = with pkgs; [
networkmanager-openconnect
networkmanager-openvpn
];
};
};

environment.persistence."/persist" = {
Expand Down
12 changes: 0 additions & 12 deletions pkgs/cura5/default.nix

This file was deleted.

0 comments on commit 0ec5dc8

Please sign in to comment.