Compare commits
2 Commits
37879cd9e7
...
b1df12ae65
Author | SHA1 | Date | |
---|---|---|---|
b1df12ae65 | |||
5912338271 |
15
flake.nix
15
flake.nix
@ -86,6 +86,21 @@
|
||||
};
|
||||
modules = [ ./host/Eclipse/configuration.nix ];
|
||||
};
|
||||
|
||||
Impreza = nixpkgs.lib.nixosSystem {
|
||||
specialArgs = {
|
||||
pkgs-stable = import nixpkgs-stable {
|
||||
inherit system;
|
||||
config.allowUnfree = true;
|
||||
};
|
||||
pkgs-fixed = import nixpkgs-fixed {
|
||||
inherit system;
|
||||
config.allowUnfree = true;
|
||||
};
|
||||
inherit inputs system;
|
||||
};
|
||||
modules = [ ./host/Impreza/configuration.nix ];
|
||||
};
|
||||
};
|
||||
|
||||
devShells."${system}".default = let
|
||||
|
27
host/Impreza/configuration.nix
Normal file
27
host/Impreza/configuration.nix
Normal file
@ -0,0 +1,27 @@
|
||||
{ config, pkgs, pkgs-stable, pkgs-fixed, lib, inputs, ...}: {
|
||||
imports = [
|
||||
./secrets/secrets.nix
|
||||
./modules/grub.nix
|
||||
|
||||
(import ../modules/common.nix {
|
||||
inherit lib;
|
||||
inherit inputs;
|
||||
hostname = "Impreza";
|
||||
})
|
||||
|
||||
(import ../../user/common.nix {
|
||||
inherit config;
|
||||
inherit pkgs;
|
||||
inherit pkgs-stable;
|
||||
inherit pkgs-fixed;
|
||||
inherit lib;
|
||||
inherit inputs;
|
||||
name = "chest";
|
||||
})
|
||||
];
|
||||
|
||||
nixpkgs.config.allowBroken = true;
|
||||
programs.gamemode.enable = true;
|
||||
hardware.bluetooth.enable = true;
|
||||
host.laptop = true;
|
||||
}
|
44
host/Impreza/hardware-configuration.nix
Normal file
44
host/Impreza/hardware-configuration.nix
Normal file
@ -0,0 +1,44 @@
|
||||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||
# and may be overwritten by future invocations. Please make changes
|
||||
# to /etc/nixos/configuration.nix instead.
|
||||
{ config, lib, pkgs, modulesPath, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "usb_storage" "usbhid" "sd_mod" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-intel" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/disk/by-uuid/31247de4-e9c0-4690-8bce-8380377b6872";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/boot" =
|
||||
{ device = "/dev/disk/by-uuid/328A-299C";
|
||||
fsType = "vfat";
|
||||
options = [ "fmask=0022" "dmask=0022" ];
|
||||
};
|
||||
|
||||
fileSystems."/mnt/Windows" =
|
||||
{ device = "/dev/disk/by-uuid/84E48B00E48AF428";
|
||||
fsType = "ntfs";
|
||||
options = [ "umask=0022" "gid=100" "uid=1000" "nofail" ];
|
||||
};
|
||||
|
||||
swapDevices = [ ];
|
||||
|
||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||
# still possible to use this option, but it's recommended to use it in conjunction
|
||||
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
||||
networking.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.wlp0s20f3.useDHCP = lib.mkDefault true;
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
13
host/Impreza/modules/grub.nix
Normal file
13
host/Impreza/modules/grub.nix
Normal file
@ -0,0 +1,13 @@
|
||||
{ pkgs, ... }: let
|
||||
theme = pkgs.fetchFromGitHub {
|
||||
owner = "OliveThePuffin";
|
||||
repo = "yorha-grub-theme";
|
||||
rev = "4d9cd37baf56c4f5510cc4ff61be278f11077c81";
|
||||
hash = "sha256-XVzYDwJM7Q9DvdF4ZOqayjiYpasUeMhAWWcXtnhJ0WQ=";
|
||||
};
|
||||
in {
|
||||
boot.loader.grub = {
|
||||
gfxmodeEfi = "1920x1080";
|
||||
theme = "${theme}/yorha-1920x1080";
|
||||
};
|
||||
}
|
1
host/Impreza/secrets
Symbolic link
1
host/Impreza/secrets
Symbolic link
@ -0,0 +1 @@
|
||||
../Eclipse/secrets
|
@ -12,7 +12,6 @@
|
||||
./user/wofi.nix
|
||||
./user/mako.nix
|
||||
./user/ghostty.nix
|
||||
./user/packages/art.nix
|
||||
./user/packages/desktop.nix
|
||||
./user/packages/coding.nix
|
||||
./user/packages/utils.nix
|
||||
|
2
modules/user/packages/drvs/ags/.gitignore
vendored
Normal file
2
modules/user/packages/drvs/ags/.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
accent.css
|
||||
colors.scss
|
@ -3,17 +3,23 @@
|
||||
|
||||
$radius: 10px;
|
||||
|
||||
%item {
|
||||
* {
|
||||
all: unset;
|
||||
}
|
||||
|
||||
%item {
|
||||
background: $bg;
|
||||
border-radius: $radius;
|
||||
padding: 4px;
|
||||
padding: 6px 8px;
|
||||
|
||||
& + &, .item + & { margin-left: 4px; }
|
||||
& + &, .item + &, & + .item { margin-left: 4px; }
|
||||
|
||||
label { margin: 0 8px; }
|
||||
icon + label { margin-left: 4px; }
|
||||
}
|
||||
|
||||
.item + .item { margin-left: 4px; }
|
||||
|
||||
|
||||
window.Bar {
|
||||
border: none;
|
||||
box-shadow: none;
|
||||
@ -28,8 +34,6 @@ window.Bar {
|
||||
|
||||
.Workspaces {
|
||||
button {
|
||||
all: unset;
|
||||
|
||||
&:hover label {
|
||||
background: $surface0;
|
||||
color: $accent;
|
||||
@ -59,12 +63,12 @@ window.Bar {
|
||||
.Layout.en { color: $accent; }
|
||||
|
||||
.SysTray button {
|
||||
all: unset;
|
||||
padding: 8px;
|
||||
padding: 4px;
|
||||
border-radius: inherit;
|
||||
|
||||
&:hover {
|
||||
background: $surface0;
|
||||
border-radius: 4px;
|
||||
}
|
||||
}
|
||||
|
||||
@ -82,16 +86,17 @@ window.Bar {
|
||||
}
|
||||
}
|
||||
|
||||
.Battery label {
|
||||
padding-left: 0;
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
.Time { padding: 0 8px; }
|
||||
|
||||
.AudioSlider icon { margin-left: 8px; }
|
||||
|
||||
.Workspaces, .Wifi, .Layout, .Media, .SysTray, .AudioSlider, .Battery, .Time {
|
||||
@extend %item;
|
||||
}
|
||||
|
||||
.Wifi, .AudioSlider {
|
||||
&, button {
|
||||
&:hover { background-color: $surface0; }
|
||||
&:active {
|
||||
background-color: $accent;
|
||||
color: $bg;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -6,7 +6,9 @@ export default function Wifi() {
|
||||
const network = Network.get_default()
|
||||
const wifi = bind(network, "wifi")
|
||||
|
||||
return <box visible={wifi.as(Boolean)}>
|
||||
return <box
|
||||
visible={wifi.as(Boolean)}
|
||||
className="item">
|
||||
{wifi.as(wifi => wifi && (
|
||||
<button
|
||||
className="Wifi"
|
||||
|
@ -23,7 +23,7 @@
|
||||
|
||||
cursor = {
|
||||
name = "catppuccin-mocha-peach-cursors";
|
||||
size = 24;
|
||||
size = 16;
|
||||
package = pkgs.catppuccin-cursors.mochaPeach;
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user