mirror of
https://github.com/nmasur/dotfiles
synced 2025-02-21 19:12:02 +00:00
more tweaks to overlays
This commit is contained in:
parent
798bac75e8
commit
2425c76a84
@ -259,7 +259,6 @@
|
|||||||
(import ./overlays/tree-sitter.nix inputs)
|
(import ./overlays/tree-sitter.nix inputs)
|
||||||
(import ./overlays/mpv-scripts.nix inputs)
|
(import ./overlays/mpv-scripts.nix inputs)
|
||||||
(import ./overlays/nextcloud-apps.nix inputs)
|
(import ./overlays/nextcloud-apps.nix inputs)
|
||||||
(import ./overlays/betterlockscreen.nix)
|
|
||||||
];
|
];
|
||||||
|
|
||||||
# System types to support.
|
# System types to support.
|
||||||
@ -275,8 +274,7 @@
|
|||||||
|
|
||||||
# { system -> pkgs }
|
# { system -> pkgs }
|
||||||
pkgsBySystem = forAllSystems (system: import nixpkgs { inherit system overlays; });
|
pkgsBySystem = forAllSystems (system: import nixpkgs { inherit system overlays; });
|
||||||
|
# stablePkgsBySystem = forAllSystems (system: import nixpkgs { inherit system overlays; });
|
||||||
hosts = import ./hosts;
|
|
||||||
|
|
||||||
buildHome =
|
buildHome =
|
||||||
{ pkgs, modules }:
|
{ pkgs, modules }:
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
# The Flame
|
# The Flame
|
||||||
# System configuration for an Oracle free server
|
# System configuration for an Oracle free server
|
||||||
|
|
||||||
# See [readme](../README.md) to explain how this file works.
|
|
||||||
|
|
||||||
# How to install:
|
# How to install:
|
||||||
# https://blog.korfuri.fr/posts/2022/08/nixos-on-an-oracle-free-tier-ampere-machine/
|
# https://blog.korfuri.fr/posts/2022/08/nixos-on-an-oracle-free-tier-ampere-machine/
|
||||||
# These days, probably use nixos-anywhere instead.
|
# These days, probably use nixos-anywhere instead.
|
||||||
@ -21,25 +19,10 @@ inputs.nixpkgs.lib.nixosSystem rec {
|
|||||||
pkgs-caddy = import inputs.nixpkgs-caddy { inherit system; };
|
pkgs-caddy = import inputs.nixpkgs-caddy { inherit system; };
|
||||||
};
|
};
|
||||||
modules = [
|
modules = [
|
||||||
globals
|
|
||||||
inputs.home-manager.nixosModules.home-manager
|
|
||||||
../../modules/common
|
|
||||||
../../modules/nixos
|
|
||||||
{
|
{
|
||||||
nixpkgs.overlays = overlays;
|
|
||||||
|
|
||||||
# Hardware
|
# Hardware
|
||||||
server = true;
|
|
||||||
networking.hostName = "flame";
|
networking.hostName = "flame";
|
||||||
|
|
||||||
# Not sure what's necessary but too afraid to remove anything
|
|
||||||
imports = [ (inputs.nixpkgs + "/nixos/modules/profiles/qemu-guest.nix") ];
|
|
||||||
boot.initrd.availableKernelModules = [
|
|
||||||
"xhci_pci"
|
|
||||||
"virtio_pci"
|
|
||||||
"usbhid"
|
|
||||||
];
|
|
||||||
|
|
||||||
# File systems must be declared in order to boot
|
# File systems must be declared in order to boot
|
||||||
|
|
||||||
# This is the root filesystem containing NixOS
|
# This is the root filesystem containing NixOS
|
||||||
@ -57,9 +40,6 @@ inputs.nixpkgs.lib.nixosSystem rec {
|
|||||||
|
|
||||||
# Theming
|
# Theming
|
||||||
|
|
||||||
# Server doesn't require GUI
|
|
||||||
gui.enable = false;
|
|
||||||
|
|
||||||
# Still require colors for programs like Neovim, K9S
|
# Still require colors for programs like Neovim, K9S
|
||||||
theme = {
|
theme = {
|
||||||
colors = (import ../../colorscheme/gruvbox-dark).dark;
|
colors = (import ../../colorscheme/gruvbox-dark).dark;
|
||||||
|
12
overlays/unstable.nix
Normal file
12
overlays/unstable.nix
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
# Include unstable packages
|
||||||
|
# Adapted from https://github.com/PsychoLlama/dotfiles/blob/dd41f8c60fdc85868dbd7d88cf933348b497dcf0/lib/overlays/latest-packages.nix
|
||||||
|
|
||||||
|
inputs: _final: prev: {
|
||||||
|
# Provides `pkgs.unstable`.
|
||||||
|
unstable = import inputs.nixpkgs {
|
||||||
|
inherit (prev) system config;
|
||||||
|
overlays = [
|
||||||
|
# inputs.self.overlays.vim-plugins
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
@ -7,11 +7,16 @@
|
|||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.services.betterlockscreen;
|
cfg = config.services.betterlockscreen;
|
||||||
|
# Disable Dunst so that it's not attempting to reach a non-existent dunst service
|
||||||
|
betterlockscreen = pkgs.betterlockscreen.override { withDunst = cfg.dunst.enable; };
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
||||||
options.services.betterlockscreen.enable = lib.mkEnableOption "Betterlockscreen X server display lock";
|
options.services.betterlockscreen = {
|
||||||
|
enable = lib.mkEnableOption "Betterlockscreen X server display lock";
|
||||||
|
dunst.enable = lib.mkEnableOption "Dunst integration";
|
||||||
|
};
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
|
|
||||||
@ -28,8 +33,8 @@ in
|
|||||||
Type = "simple";
|
Type = "simple";
|
||||||
Environment = "DISPLAY=:0";
|
Environment = "DISPLAY=:0";
|
||||||
TimeoutSec = "infinity";
|
TimeoutSec = "infinity";
|
||||||
ExecStart = "${lib.getExe pkgs.betterlockscreen} --lock --display 1 --blur 0.5 --span";
|
ExecStart = "${lib.getExe betterlockscreen} --lock --display 1 --blur 0.5 --span";
|
||||||
ExecStartPost = "${pkgs.coreutils-full}/bin/sleep 1";
|
ExecStartPost = "${lib.getExe' pkgs.coreutils-full "sleep"} 1";
|
||||||
};
|
};
|
||||||
wantedBy = [
|
wantedBy = [
|
||||||
"sleep.target"
|
"sleep.target"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user