Payas Relekar
73be53cdb5
This allows easy config of few applications/services - git - htop - fzf - neovim * syncthing is not enabled yet. During previous experimentation it did not work, so need to look more into it
92 lines
2.4 KiB
Nix
92 lines
2.4 KiB
Nix
{
|
|
description = "NixOS configuration (flake edition)";
|
|
|
|
inputs = {
|
|
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
nixpkgs = {
|
|
url = "github:numtide/nixpkgs-unfree";
|
|
inputs.nixpkgs.follows = "nixpkgs-unstable";
|
|
};
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
emacs-overlay = {
|
|
url = "github:nix-community/emacs-overlay";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
agenix = {
|
|
url = "github:ryantm/agenix";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
|
|
};
|
|
|
|
outputs = { self, nixpkgs, home-manager, emacs-overlay, agenix, nixos-hardware, ... }: {
|
|
nixosConfigurations = {
|
|
|
|
# The Workhorse
|
|
enterprise = nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
modules = [
|
|
|
|
# Overlays
|
|
{ nixpkgs.overlays = [ emacs-overlay.overlay ]; }
|
|
|
|
# Common
|
|
./cachix.nix
|
|
|
|
# Modules and module config
|
|
./modules/nix.nix
|
|
./modules/common.nix
|
|
./modules/fish.nix
|
|
agenix.nixosModules.age
|
|
./modules/agenix.nix
|
|
|
|
# Host-specific config
|
|
./hosts/enterprise/sound.nix
|
|
./hosts/enterprise/backup.nix
|
|
./hosts/enterprise/nvidia.nix
|
|
./hosts/enterprise/configuration.nix
|
|
|
|
# User-specific config : Home-manager
|
|
home-manager.nixosModules.home-manager
|
|
{
|
|
home-manager.useGlobalPkgs = true;
|
|
home-manager.useUserPackages = true;
|
|
home-manager.users.payas = import ./hosts/enterprise/home.nix;
|
|
}
|
|
|
|
];
|
|
};
|
|
|
|
# My Pi
|
|
bebop = nixpkgs.lib.nixosSystem {
|
|
system = "aarch64-linux";
|
|
modules = [
|
|
|
|
# Common
|
|
./cachix.nix
|
|
|
|
# Modules and module config
|
|
./modules/nix.nix
|
|
./modules/common.nix
|
|
./modules/fish.nix
|
|
|
|
# Host-specific config
|
|
nixos-hardware.nixosModules.raspberry-pi-4
|
|
./hosts/bebop/configuration.nix
|
|
|
|
# User-specific config : Home-manager
|
|
home-manager.nixosModules.home-manager
|
|
{
|
|
home-manager.useGlobalPkgs = true;
|
|
home-manager.useUserPackages = true;
|
|
home-manager.users.payas = import ./hosts/bebop/home.nix;
|
|
}
|
|
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|