mirror of
https://github.com/youwen5/nixos.git
synced 2024-11-28 11:43:51 -08:00
fix: build successfully on desktop
This commit is contained in:
parent
ff235895de
commit
4cc4dc2c37
12 changed files with 97 additions and 103 deletions
26
flake.nix
26
flake.nix
|
@ -48,17 +48,14 @@
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
modules = [
|
modules = [
|
||||||
./hosts/nixos
|
./hosts/nixos
|
||||||
./modules/nixos/gaming.nix
|
./modules/nixos/gaming
|
||||||
./modules/nixos/audio.nix
|
./modules/nixos/audio
|
||||||
./modules/nixos/networking.nix
|
./modules/nixos/networking
|
||||||
./modules/common/fonts.nix
|
./modules/common/fonts
|
||||||
|
|
||||||
catppuccin.nixosModules.catppuccin
|
catppuccin.nixosModules.catppuccin
|
||||||
|
|
||||||
lix-module.nixosModules.default
|
lix-module.nixosModules.default
|
||||||
|
|
||||||
lanzaboote.nixosModules.lanzaboote
|
lanzaboote.nixosModules.lanzaboote
|
||||||
|
|
||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
{
|
{
|
||||||
home-manager.useGlobalPkgs = true;
|
home-manager.useGlobalPkgs = true;
|
||||||
|
@ -66,11 +63,10 @@
|
||||||
home-manager.backupFileExtension = "backup";
|
home-manager.backupFileExtension = "backup";
|
||||||
home-manager.users.youwen = {
|
home-manager.users.youwen = {
|
||||||
imports = [
|
imports = [
|
||||||
# ./users/youwen/linux/linux-home.nix
|
./users/youwen/linux/desktop
|
||||||
./users/youwen/linux/desktop.nix
|
./users/youwen/linux/packages/x86_64
|
||||||
./users/youwen/linux/programs.nix
|
./users/youwen/linux/programs
|
||||||
./users/youwen/common/core.nix
|
./users/youwen/common
|
||||||
./users/youwen/linux/catppuccin.nix
|
|
||||||
inputs.catppuccin.homeManagerModules.catppuccin
|
inputs.catppuccin.homeManagerModules.catppuccin
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
@ -96,9 +92,9 @@
|
||||||
home-manager.backupFileExtension = "backup";
|
home-manager.backupFileExtension = "backup";
|
||||||
home-manager.users.youwen = {
|
home-manager.users.youwen = {
|
||||||
imports = [
|
imports = [
|
||||||
./users/youwen/common
|
./users/youwen/common
|
||||||
./users/youwen/linux/laptop
|
./users/youwen/linux/laptop
|
||||||
./users/youwen/linux/packages/aarch-64
|
./users/youwen/linux/packages/aarch-64
|
||||||
|
|
||||||
inputs.catppuccin.homeManagerModules.catppuccin
|
inputs.catppuccin.homeManagerModules.catppuccin
|
||||||
];
|
];
|
||||||
|
|
|
@ -13,23 +13,16 @@
|
||||||
boot.loader = {
|
boot.loader = {
|
||||||
efi.canTouchEfiVariables = true;
|
efi.canTouchEfiVariables = true;
|
||||||
timeout = 15;
|
timeout = 15;
|
||||||
|
# Lanzaboote currently replaces the systemd-boot module.
|
||||||
|
# This setting is usually set to true in configuration.nix
|
||||||
|
# generated at installation time. So we force it to false
|
||||||
|
# for now.
|
||||||
systemd-boot = {
|
systemd-boot = {
|
||||||
enable = true;
|
enable = false;
|
||||||
consoleMode = "auto";
|
consoleMode = "auto";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.systemPackages = [
|
|
||||||
# For debugging and troubleshooting Secure Boot.
|
|
||||||
pkgs.sbctl
|
|
||||||
];
|
|
||||||
|
|
||||||
# Lanzaboote currently replaces the systemd-boot module.
|
|
||||||
# This setting is usually set to true in configuration.nix
|
|
||||||
# generated at installation time. So we force it to false
|
|
||||||
# for now.
|
|
||||||
boot.loader.systemd-boot.enable = lib.mkForce false;
|
|
||||||
|
|
||||||
boot.lanzaboote = {
|
boot.lanzaboote = {
|
||||||
enable = true;
|
enable = true;
|
||||||
pkiBundle = "/etc/secureboot";
|
pkiBundle = "/etc/secureboot";
|
||||||
|
|
|
@ -1,3 +1 @@
|
||||||
{
|
{ imports = [ ./core.nix ]; }
|
||||||
imports = [ ./core.nix ];
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,4 +1,10 @@
|
||||||
{
|
{
|
||||||
imports = [ ../theming ../home.nix ../programs ../hyprland/desktop ../waybar/desktop ];
|
imports = [
|
||||||
|
../theming
|
||||||
|
../home.nix
|
||||||
|
../programs
|
||||||
|
../hyprland/desktop
|
||||||
|
../waybar/desktop
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1 @@
|
||||||
{
|
{ imports = [ ../common.nix ./desktop-only.nix ]; }
|
||||||
imports = [ ../common.nix ./desktop-only.nix ];
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,3 +1 @@
|
||||||
{
|
{ imports = [ ../common.nix ./laptop-only.nix ]; }
|
||||||
imports = [ ../common.nix ./laptop-only.nix ];
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
{
|
{
|
||||||
imports = [ ../theming ../home.nix ../programs ../hyprland/laptop ../waybar/laptop ];
|
imports =
|
||||||
|
[ ../theming ../home.nix ../programs ../hyprland/laptop ../waybar/laptop ];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,49 +1,50 @@
|
||||||
pkgs: with pkgs; [
|
pkgs:
|
||||||
neofetch
|
with pkgs; [
|
||||||
|
neofetch
|
||||||
|
|
||||||
# archives
|
# archives
|
||||||
zip
|
zip
|
||||||
xz
|
xz
|
||||||
unzip
|
unzip
|
||||||
p7zip
|
p7zip
|
||||||
|
|
||||||
# utils
|
# utils
|
||||||
nurl # helps fetch git data for nixpkgs
|
nurl # helps fetch git data for nixpkgs
|
||||||
|
|
||||||
# nix related
|
# nix related
|
||||||
#
|
#
|
||||||
# it provides the command `nom` works just like `nix`
|
# it provides the command `nom` works just like `nix`
|
||||||
# with more details log output
|
# with more details log output
|
||||||
nix-output-monitor
|
nix-output-monitor
|
||||||
|
|
||||||
# system tools
|
# system tools
|
||||||
pciutils # lspci
|
pciutils # lspci
|
||||||
usbutils # lsusb
|
usbutils # lsusb
|
||||||
|
|
||||||
# desktop utils
|
# desktop utils
|
||||||
wl-clipboard
|
wl-clipboard
|
||||||
grim
|
grim
|
||||||
slurp
|
slurp
|
||||||
swappy
|
swappy
|
||||||
pavucontrol
|
pavucontrol
|
||||||
swww
|
swww
|
||||||
waypaper
|
waypaper
|
||||||
|
|
||||||
# desktop apps
|
# desktop apps
|
||||||
dolphin
|
dolphin
|
||||||
thunderbird
|
thunderbird
|
||||||
vesktop
|
vesktop
|
||||||
signal-desktop
|
signal-desktop
|
||||||
|
|
||||||
# dev tools
|
# dev tools
|
||||||
nodePackages_latest.pnpm
|
nodePackages_latest.pnpm
|
||||||
rustfmt
|
rustfmt
|
||||||
rust-analyzer
|
rust-analyzer
|
||||||
|
|
||||||
# desktop ricing
|
# desktop ricing
|
||||||
bibata-cursors
|
bibata-cursors
|
||||||
libsForQt5.qtstyleplugin-kvantum
|
libsForQt5.qtstyleplugin-kvantum
|
||||||
libsForQt5.qt5ct
|
libsForQt5.qt5ct
|
||||||
papirus-icon-theme
|
papirus-icon-theme
|
||||||
libsForQt5.qt5ct
|
libsForQt5.qt5ct
|
||||||
]
|
]
|
||||||
|
|
|
@ -1,10 +1,12 @@
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
let createCommon = import ../common-packages.nix;
|
let createCommon = import ../common-packages.nix;
|
||||||
in { home.packages = ((createCommon pkgs) ++ with pkgs; [
|
in {
|
||||||
spotify
|
home.packages = ((createCommon pkgs) ++ (with pkgs; [
|
||||||
bitwarden-desktop
|
spotify
|
||||||
modrinth-app
|
bitwarden-desktop
|
||||||
lutris
|
modrinth-app
|
||||||
wine
|
lutris
|
||||||
]);
|
wine
|
||||||
|
sbctl
|
||||||
|
]));
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }: {
|
||||||
{
|
|
||||||
imports = [ ./catppuccin.nix ];
|
imports = [ ./catppuccin.nix ];
|
||||||
|
|
||||||
gtk = {
|
gtk = {
|
||||||
|
|
|
@ -9,8 +9,10 @@
|
||||||
# width = 1000;
|
# width = 1000;
|
||||||
reload-style-on-change = true;
|
reload-style-on-change = true;
|
||||||
margin = "5px 0px 0px 0px";
|
margin = "5px 0px 0px 0px";
|
||||||
modules-left = [ "hyprland/window" "hyprland/workspaces" "network" "clock" ];
|
modules-left =
|
||||||
modules-right = [ "group/hardware" "backlight" "group/adjustable" "custom/weather" ];
|
[ "hyprland/window" "hyprland/workspaces" "network" "clock" ];
|
||||||
|
modules-right =
|
||||||
|
[ "group/hardware" "backlight" "group/adjustable" "custom/weather" ];
|
||||||
# modules-center = [ "network" "group/hardware" "clock" ];
|
# modules-center = [ "network" "group/hardware" "clock" ];
|
||||||
"hyprland/workspaces" = {
|
"hyprland/workspaces" = {
|
||||||
active-only = false;
|
active-only = false;
|
||||||
|
|
Loading…
Reference in a new issue