Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dcsunset/nix-config
Personal common Nix configurations
https://github.com/dcsunset/nix-config
Last synced: 3 days ago
JSON representation
Personal common Nix configurations
- Host: GitHub
- URL: https://github.com/dcsunset/nix-config
- Owner: DCsunset
- License: agpl-3.0
- Created: 2024-01-05T03:52:06.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-11-27T15:05:42.000Z (about 1 month ago)
- Last Synced: 2024-11-27T16:21:30.676Z (about 1 month ago)
- Language: Emacs Lisp
- Size: 213 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nix-config
My person common Nix config.
## Usage
Simply import the module in your home-manager config,
make sure `dc-lib = nur-dcsunset.lib` is added to `extraSpecialArgs` in home-manager modules,
and `nur-dcsunset.overlays.pkgs` is applied to nixpkgs.Example:
```nix
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
nur-dcsunset = {
url = "github:DCsunset/nur-packages";
inputs.nixpkgs.follows = "nixpkgs";
};
dc-nix-config.url = "github:DCsunset/nix-config";
};outputs = { nixpkgs, nur-dcsunset, dc-nix-config, home-manager, ... }: let
// Replace this
user = "USER";
in {
homeConfigurations.${user}= home-manager.lib.homeManagerConfiguration {
pkgs = import nixpkgs {
system = "x86_64";
dc-nix-config.url = "github:DCsunset/nix-config";
};
extraSpecialArgs = {
dc-lib = nur-dcsunset.lib;
};modules = [
dc-nix-config.home
{
home.username = user;
home.homeDirectory = "/home/${user}";
home.stateVersion = "24.11";programs.home-manager.enable = true;
# dc-home options
dc-home.gui.enable = true;
}
];
};
};
}
```