-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add flake for user, edit glf flake for expose module.
- Loading branch information
CORAAL
committed
Jan 5, 2025
1 parent
26c9b81
commit ae8587c
Showing
35 changed files
with
748 additions
and
493 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
File renamed without changes
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
|
||
description = "GLF-OS"; | ||
|
||
inputs = { | ||
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11"; | ||
glf.url = "github:CORAAL/Nixos-by-GLF/coraal_flakeInit"; | ||
}; | ||
|
||
outputs = { self, nixpkgs, glf, ... }@inputs: | ||
let | ||
pkgsSettings = system: import nixpkgs { | ||
inherit system; | ||
config.allowUnfree = true; | ||
}; | ||
in { | ||
nixosConfigurations."GLF-OS" = nixpkgs.lib.nixosSystem { | ||
pkgs = pkgsSettings "x86_64-linux"; | ||
modules = [ | ||
./configuration.nix | ||
inputs.glf.nixosModules.default | ||
]; | ||
}; | ||
}; | ||
|
||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ lib, config, pkgs, ... }: | ||
|
||
{ | ||
|
||
options.glf.boot.enable = lib.mkOption { | ||
description = "Enable GLF Boot configurations"; | ||
type = lib.types.bool; | ||
default = true; | ||
}; | ||
|
||
config = lib.mkIf config.glf.boot.enable { | ||
|
||
boot = { | ||
tmp.cleanOnBoot = true; | ||
supportedFilesystems.zfs = lib.mkDefault false; | ||
kernelPackages = lib.mkDefault pkgs.linuxPackages_zen; | ||
kernelParams = if builtins.elem "kvm-amd" config.boot.kernelModules then [ "amd_pstate=active" ] else [ ]; | ||
}; | ||
|
||
}; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,19 @@ | ||
{ | ||
|
||
imports = [ | ||
./version.nix | ||
./nh.nix | ||
./boot.nix | ||
./gnome.nix | ||
./fstrim.nix | ||
./gaming.nix | ||
./firefox.nix | ||
./paquets.nix | ||
./pipewire.nix | ||
./nh.nix | ||
./gnome.nix | ||
./packages.nix | ||
./gaming.nix | ||
./printing.nix | ||
./nvidia.nix | ||
./pipewire.nix | ||
./system.nix | ||
./updateConf.nix | ||
./imprimante.nix | ||
# ./updateConf.nix | ||
./version.nix | ||
]; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ inputs, lib, config, pkgs, ... }: | ||
|
||
{ | ||
|
||
options.glf.firefox.enable = lib.mkOption { | ||
description = "Enable GLF firefox configurations"; | ||
type = lib.types.bool; | ||
default = true; | ||
}; | ||
|
||
config = lib.mkIf config.glf.firefox.enable { | ||
|
||
programs.firefox = { | ||
enable = true; | ||
wrapperConfig.pipewireSupport = true; | ||
languagePacks = [ "fr" "en-US" ]; | ||
preferences = { | ||
"intl.accept_languages" = "fr-fr,en-us,en"; | ||
"intl.locale.requested" = "fr,en-US"; | ||
}; | ||
}; | ||
|
||
}; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ lib, config, ... }: | ||
|
||
{ | ||
|
||
options.glf.fstrim.enable = lib.mkOption { | ||
description = "Enable GLF Fstrim configurations"; | ||
type = lib.types.bool; | ||
default = true; | ||
}; | ||
|
||
config = lib.mkIf config.glf.fstrim.enable { | ||
|
||
services.fstrim = { | ||
enable = true; | ||
interval = "daily"; | ||
}; | ||
|
||
}; | ||
|
||
} |
Oops, something went wrong.