Skip to content

Instantly share code, notes, and snippets.

View rycee's full-sized avatar

Robert Helgesson rycee

View GitHub Profile
afew
alacritty
alot
astroid
autorandr
bash
bat
beets
blueman-applet
broot
home.packages = with pkgs; [
(haskellPackages.ghcWithPackages (hpkgs: [
hpkgs.pretty-show
hpkgs.random
hpkgs.text
hpkgs.turtle
]))
];
{
# …
services.xserver = {
enable = true;
layout = "us";
displayManager.lightdm.enable = true;
displayManager.job.logToJournal = false;
# displayManager.job.logToFile = lib.mkForce false;
monitorSection = ''
{ config, lib, ... }:
with lib;
let
cfg = config.services.nixBinaryCacheCache;
nginxCfg = config.services.nginx;
{
# …
services.dunst = {
enable = true;
settings = {
global = {
browser = "${config.programs.firefox.package}/bin/firefox -new-tab";
dmenu = "${pkgs.rofi}/bin/rofi -dmenu";
follow = "mouse";
{ pkgs ? import <nixpkgs> {} }:
let
stdenv = pkgs.stdenv;
deps = with pkgs; [
zlib.out
xlibs.libSM.out
# More packages go here...
{ config, pkgs, lib, ... }:
let
secrets = import ./secrets.nix;
in
{
home.packages = [
diff --git a/modules/home-environment.nix b/modules/home-environment.nix
index 212e1c6..4f52b5a 100644
--- a/modules/home-environment.nix
+++ b/modules/home-environment.nix
@@ -92,6 +92,8 @@ let
homeFilePattern = "-home-manager-files/";
+ safeBaseNameOf = f: replaceStrings [ " " ] [ "_" ] (baseNameOf f);
+
{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.programs.openssh;
keyPairType = types.submodule (
{ name, config, ... }: {
@rycee
rycee / home-configuration.nix.5
Last active March 8, 2024 18:30
home-configuration.nix(5)
CONFIGURATION.NIX(5) NixOS Reference Pages CONFIGURATION.NIX(5)
NAME
configuration.nix - NixOS system configuration specification
DESCRIPTION
The file /etc/nixos/configuration.nix contains the declarative
specification of your NixOS system configuration. The command