Compare commits
3 Commits
c3d670187c
...
307fe7b05d
| Author | SHA1 | Date | |
|---|---|---|---|
|
307fe7b05d
|
|||
|
182b89fbfa
|
|||
|
5d6a561c8a
|
18
flake.nix
18
flake.nix
@@ -8,6 +8,11 @@
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
disko = {
|
||||
url = "github:nix-community/disko/latest";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
stylix = {
|
||||
url = "github:danth/stylix/release-25.05";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
@@ -134,6 +139,19 @@
|
||||
./home/guz-lite/configuration.nix
|
||||
];
|
||||
};
|
||||
"rusty" = nixpkgs.lib.nixosSystem rec {
|
||||
system = "x86_64-linux";
|
||||
specialArgs = {
|
||||
pkgs-unstable = import nixpkgs-unstable {
|
||||
inherit system;
|
||||
config.allowUnfreePredicate = _: true;
|
||||
};
|
||||
inherit inputs self;
|
||||
};
|
||||
modules = [
|
||||
./hosts/rusty/configuration.nix
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
homeConfigurations = forAllSystems ({
|
||||
|
||||
@@ -151,17 +151,23 @@
|
||||
name = "Brave";
|
||||
urls = [{template = "https://search.brave.com/search?q={searchTerms}";}];
|
||||
};
|
||||
nix-packages = {
|
||||
name = "Nix Packages";
|
||||
urls = [{template = "https://search.nixos.org/packages?query={searchTerms}";}];
|
||||
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
|
||||
definedAliases = ["@pkg"];
|
||||
go = {
|
||||
name = "Go Packages";
|
||||
urls = [{template = "https://pkg.go.dev/search?q={searchTerms}";}];
|
||||
icon = pkgs.fetchurl {
|
||||
url = "https://pkg.go.dev/static/shared/logo/go-white.svg";
|
||||
hash = "sha256-oqFYZnPAxESEpY0Qcz5OPiCMTWXyI1nqOEYmsdbGqy4=";
|
||||
};
|
||||
definedAliases = ["@go"];
|
||||
};
|
||||
nix-options = {
|
||||
name = "Nix Options";
|
||||
urls = [{template = "https://search.nixos.org/options?query={searchTerms}";}];
|
||||
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
|
||||
definedAliases = ["@opt"];
|
||||
mdn = {
|
||||
name = "MDN";
|
||||
urls = [{template = "https://developer.mozilla.org/en-US/search?q={searchTerms}";}];
|
||||
icon = pkgs.fetchurl {
|
||||
url = "https://developer.mozilla.org/static/client/mdn-m.70aac857e4a908d0.svg";
|
||||
hash = "sha256-sTAKxjk5b8lUaa9057LOH0H3N54LeXkPF/mOe4gpHDI=";
|
||||
};
|
||||
definedAliases = ["@mdn"];
|
||||
};
|
||||
nix-home-manager = {
|
||||
name = "Home Manager";
|
||||
@@ -175,6 +181,27 @@
|
||||
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
|
||||
definedAliases = ["@lib"];
|
||||
};
|
||||
nix-options = {
|
||||
name = "Nix Options";
|
||||
urls = [{template = "https://search.nixos.org/options?query={searchTerms}";}];
|
||||
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
|
||||
definedAliases = ["@opt"];
|
||||
};
|
||||
nix-packages = {
|
||||
name = "Nix Packages";
|
||||
urls = [{template = "https://search.nixos.org/packages?query={searchTerms}";}];
|
||||
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
|
||||
definedAliases = ["@pkg"];
|
||||
};
|
||||
nix-wiki = {
|
||||
name = "Nix Wiki";
|
||||
urls = [
|
||||
{template = "https://wiki.nixos.org/w/index.php?search={searchTerms}";}
|
||||
{template = "https://nixos.wiki/index.php?search={searchTerms}";}
|
||||
];
|
||||
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
|
||||
definedAliases = ["@wiki"];
|
||||
};
|
||||
};
|
||||
settings = with builtins;
|
||||
mapAttrs (n: v:
|
||||
|
||||
@@ -136,6 +136,7 @@
|
||||
|
||||
# Application Launcher
|
||||
programs.rofi.enable = true;
|
||||
programs.rofi.modes = ["drun" "emoji"];
|
||||
|
||||
# Clipboard
|
||||
services.cliphist.enable = true;
|
||||
|
||||
@@ -89,6 +89,12 @@
|
||||
''))
|
||||
];
|
||||
};
|
||||
# Emoji picker
|
||||
"super-i" = {
|
||||
launch = exec [
|
||||
(lib.getExe (pkgs.rofimoji))
|
||||
];
|
||||
};
|
||||
# Toggle fullscreen
|
||||
"super-f" = {launch = toggleFullscreen "";};
|
||||
# Toggle floating
|
||||
|
||||
58
hosts/rusty/configuration.nix
Normal file
58
hosts/rusty/configuration.nix
Normal file
@@ -0,0 +1,58 @@
|
||||
{
|
||||
lib,
|
||||
inputs,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
../../configuration.nix
|
||||
inputs.disko.nixosModules.disko
|
||||
];
|
||||
|
||||
# Network
|
||||
networking = {
|
||||
hostName = lib.mkForce "rusty";
|
||||
#wireless.enable = lib.mkForce true;
|
||||
};
|
||||
|
||||
disko.devices.disk.main = {
|
||||
device = "/dev/sda"; # This will be overwritten by disko-install
|
||||
type = "disk";
|
||||
content = {
|
||||
type = "table";
|
||||
format = "gpt";
|
||||
partitions = [
|
||||
{
|
||||
name = "ESP";
|
||||
start = "1M";
|
||||
end = "500M";
|
||||
bootable = true;
|
||||
content = {
|
||||
type = "filesystem";
|
||||
format = "vfat";
|
||||
mountpoint = "/boot/efi";
|
||||
mountOptions = ["dmask=0022" "fmask=0022" "nofail"];
|
||||
};
|
||||
}
|
||||
{
|
||||
name = "root";
|
||||
start = "500M";
|
||||
end = "100%";
|
||||
part-type = "primary";
|
||||
bootable = true;
|
||||
content = {
|
||||
type = "filesystem";
|
||||
format = "ext4";
|
||||
mountpoint = "/";
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
boot.loader.efi.canTouchEfiVariables = lib.mkForce false;
|
||||
boot.loader.grub = {
|
||||
efiSupport = true;
|
||||
efiInstallAsRemovable = true;
|
||||
device = "nodev";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user