Added desktop config (incomplete)
This commit is contained in:
parent
040c33bfc1
commit
89f570a617
3 changed files with 210 additions and 10 deletions
29
flake.nix
29
flake.nix
|
|
@ -18,15 +18,24 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs, ... }@inputs: {
|
outputs =
|
||||||
# use "nixos", or your hostname as the name of the configuration
|
{ self, nixpkgs, ... }@inputs:
|
||||||
# it's a better practice than "default" shown in the video
|
{
|
||||||
nixosConfigurations.t480 = nixpkgs.lib.nixosSystem {
|
# use "nixos", or your hostname as the name of the configuration
|
||||||
specialArgs = {inherit inputs;};
|
# it's a better practice than "default" shown in the video
|
||||||
modules = [
|
nixosConfigurations.t480 = nixpkgs.lib.nixosSystem {
|
||||||
./hosts/t480/configuration.nix
|
specialArgs = { inherit inputs; };
|
||||||
inputs.home-manager.nixosModules.default
|
modules = [
|
||||||
];
|
./hosts/t480/configuration.nix
|
||||||
|
inputs.home-manager.nixosModules.default
|
||||||
|
];
|
||||||
|
};
|
||||||
|
nixosConfigurations.desktop = nixpkgs.lib.nixosSystem {
|
||||||
|
specialArgs = { inherit inputs; };
|
||||||
|
modules = [
|
||||||
|
./hosts/desktop/configuration.nix
|
||||||
|
inputs.home-manager.nixosModules.default
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
72
hosts/desktop/configuration.nix
Normal file
72
hosts/desktop/configuration.nix
Normal file
|
|
@ -0,0 +1,72 @@
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
inputs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./hardware-configuration.nix
|
||||||
|
inputs.home-manager.nixosModules.default
|
||||||
|
../../modules/nixos/gtkapps.nix
|
||||||
|
../../modules/nixos/gtkbar.nix
|
||||||
|
../../modules/nixos/fonts.nix
|
||||||
|
../../modules/nixos/system-packages.nix
|
||||||
|
../../modules/nixos/user-jack.nix
|
||||||
|
../../modules/nixos/sound.nix
|
||||||
|
];
|
||||||
|
|
||||||
|
boot.loader.systemd-boot.enable = true;
|
||||||
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
|
||||||
|
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||||
|
|
||||||
|
networking.hostName = "jackdesk";
|
||||||
|
networking.networkmanager.enable = true;
|
||||||
|
|
||||||
|
nix.settings.experimental-features = [
|
||||||
|
"nix-command"
|
||||||
|
"flakes"
|
||||||
|
];
|
||||||
|
|
||||||
|
time.timeZone = "America/Los_Angeles";
|
||||||
|
|
||||||
|
# Enable CUPS to print documents.
|
||||||
|
services.printing.enable = true;
|
||||||
|
|
||||||
|
services.dbus.enable = true;
|
||||||
|
|
||||||
|
programs.zsh.enable = true;
|
||||||
|
|
||||||
|
programs.thunar.enable = true;
|
||||||
|
|
||||||
|
programs.dconf.enable = true;
|
||||||
|
|
||||||
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
|
xdg.portal = {
|
||||||
|
enable = true;
|
||||||
|
wlr.enable = true;
|
||||||
|
extraPortals = with pkgs; [
|
||||||
|
xdg-desktop-portal-gtk
|
||||||
|
xdg-desktop-portal-hyprland
|
||||||
|
xdg-desktop-portal-gnome
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
home-manager = {
|
||||||
|
extraSpecialArgs = { inherit inputs; };
|
||||||
|
users = {
|
||||||
|
"jack" = import ./home.nix;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
services.libinput.enable = true;
|
||||||
|
|
||||||
|
services.openssh.enable = true;
|
||||||
|
|
||||||
|
system.stateVersion = "25.05";
|
||||||
|
|
||||||
|
}
|
||||||
119
hosts/desktop/home.nix
Normal file
119
hosts/desktop/home.nix
Normal file
|
|
@ -0,0 +1,119 @@
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
inputs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
|
{
|
||||||
|
|
||||||
|
imports = [
|
||||||
|
inputs.zen-browser.homeModules.twilight
|
||||||
|
../../modules/home-manager/zsh.nix
|
||||||
|
../../modules/home-manager/tmux.nix
|
||||||
|
../../modules/home-manager/hyprland.nix
|
||||||
|
../../modules/home-manager/homepackages.nix
|
||||||
|
../../modules/home-manager/shell-aliases.nix
|
||||||
|
];
|
||||||
|
|
||||||
|
programs.home-manager.enable = true;
|
||||||
|
# Home Manager needs a bit of information about you and the paths it should
|
||||||
|
# manage.
|
||||||
|
home.username = "jack";
|
||||||
|
home.homeDirectory = "/home/jack";
|
||||||
|
|
||||||
|
home.stateVersion = "25.05"; # Please read the comment before changing.
|
||||||
|
|
||||||
|
programs.zen-browser.enable = true;
|
||||||
|
|
||||||
|
# Home Manager is pretty good at managing dotfiles. The primary way to manage
|
||||||
|
# plain files is through 'home.file'.
|
||||||
|
home.file = { };
|
||||||
|
|
||||||
|
nixpkgs = {
|
||||||
|
config = {
|
||||||
|
allowUnfree = true;
|
||||||
|
allowUnfreePredicate = (_: true);
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
gtk = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
theme = {
|
||||||
|
name = "Kanagawa-B";
|
||||||
|
package = pkgs.kanagawa-gtk-theme;
|
||||||
|
};
|
||||||
|
|
||||||
|
iconTheme = {
|
||||||
|
name = "Papirus-Dark";
|
||||||
|
package = pkgs.papirus-icon-theme;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
home.pointerCursor = {
|
||||||
|
gtk.enable = true;
|
||||||
|
x11.enable = true;
|
||||||
|
name = "capitaine-cursors";
|
||||||
|
package = pkgs.capitaine-cursors;
|
||||||
|
size = 32; # optional, adjust as needed
|
||||||
|
};
|
||||||
|
|
||||||
|
xdg.configFile = {
|
||||||
|
"gtk-4.0/assets".source =
|
||||||
|
"${config.gtk.theme.package}/share/themes/${config.gtk.theme.name}/gtk-4.0/assets";
|
||||||
|
"gtk-4.0/gtk.css".source =
|
||||||
|
"${config.gtk.theme.package}/share/themes/${config.gtk.theme.name}/gtk-4.0/gtk.css";
|
||||||
|
"gtk-4.0/gtk-dark.css".source =
|
||||||
|
"${config.gtk.theme.package}/share/themes/${config.gtk.theme.name}/gtk-4.0/gtk-dark.css";
|
||||||
|
};
|
||||||
|
|
||||||
|
programs.ghostty = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
# If you're on a channel/flake that has ghostty packaged:
|
||||||
|
# comment this out if you install ghostty some other way
|
||||||
|
package = pkgs.ghostty;
|
||||||
|
|
||||||
|
settings = {
|
||||||
|
# ----- basic look -----
|
||||||
|
"font-family" = "JetBrainsMono Nerd Font";
|
||||||
|
"font-size" = 14;
|
||||||
|
|
||||||
|
"window-padding-x" = 8;
|
||||||
|
"window-padding-y" = 8;
|
||||||
|
|
||||||
|
# ----- your theme -----
|
||||||
|
# repeated keys like `palette` become a list
|
||||||
|
palette = [
|
||||||
|
"0=#181616"
|
||||||
|
"1=#c4746e"
|
||||||
|
"2=#8a9a7b"
|
||||||
|
"3=#c4b28a"
|
||||||
|
"4=#8ba4b0"
|
||||||
|
"5=#a292a3"
|
||||||
|
"6=#8ea4a2"
|
||||||
|
"7=#bcb093"
|
||||||
|
"8=#a6a69c"
|
||||||
|
"9=#e46876"
|
||||||
|
"10=#87a987"
|
||||||
|
"11=#6c8384"
|
||||||
|
"12=#7fb4ca"
|
||||||
|
"13=#938aa9"
|
||||||
|
"14=#7aa89f"
|
||||||
|
"15=#c5c9c5"
|
||||||
|
];
|
||||||
|
|
||||||
|
background = "#181616";
|
||||||
|
foreground = "#c5c9c5";
|
||||||
|
"cursor-color" = "#c8c093";
|
||||||
|
"selection-background" = "#2d4f67";
|
||||||
|
"selection-foreground" = "#c8c093";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
home.sessionVariables = {
|
||||||
|
EDITOR = "nvim";
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue