forked from extern/nix-config
4df1d91e19
This fixes an issue where wlr/workspaces is considered experimental in waybar and thus does not work with the current nixpkgs version on NixOS. References: - https://github.com/Alexays/Waybar/issues/1766 - https://github.com/hyprwm/Hyprland/discussions/1729
52 lines
1.6 KiB
Nix
52 lines
1.6 KiB
Nix
{
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
home-manager.url = "github:nix-community/home-manager/master";
|
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
|
hyprland.url = "github:hyprwm/Hyprland";
|
|
};
|
|
|
|
outputs = { self, nixpkgs, home-manager, hyprland, ... }@attrs: {
|
|
nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
specialArgs = attrs;
|
|
modules = [
|
|
./configuration.nix
|
|
./modules/editor.nix
|
|
./modules/desktop.nix
|
|
hyprland.nixosModules.default
|
|
{
|
|
programs.hyprland.enable = true;
|
|
}
|
|
home-manager.nixosModules.home-manager
|
|
{
|
|
home-manager.useGlobalPkgs = true;
|
|
users.users.user = {
|
|
isNormalUser = true;
|
|
extraGroups = [ "wheel" "networkmanager" ];
|
|
};
|
|
home-manager.users.user = { pkgs, ... }: {
|
|
home.username = "user";
|
|
home.homeDirectory = "/home/user";
|
|
home.packages = [ pkgs.httpie ];
|
|
home.stateVersion = "22.11";
|
|
programs.mpv.enable = true;
|
|
programs.librewolf = {
|
|
enable = true;
|
|
settings = {
|
|
"middlemouse.paste" = false;
|
|
"browser.download.useDownloadDir" = true;
|
|
"ui.use_activity_cursor" = true;
|
|
"browser.tabs.insertAfterCurrent" = true;
|
|
};
|
|
};
|
|
programs.git = { diff-so-fancy = { enable = true; }; };
|
|
programs.lf = { enable = true; };
|
|
services.udiskie.enable = true;
|
|
};
|
|
}
|
|
];
|
|
};
|
|
};
|
|
}
|